2025-04-28 17:49:15,652 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 17:49:15,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 17:49:30,664 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 17:49:30,665 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 17:49:30,665 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 17:49:30,665 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 17:49:30,665 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 17:49:30,673 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 17:49:30,674 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 17:49:30,674 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 17:49:30,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 17:49:30,675 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 17:49:30,675 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 17:49:30,675 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 17:49:30,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 17:49:30,676 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 17:49:30,676 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 17:49:30,676 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 17:49:30,676 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 17:49:30,676 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 17:49:30,677 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 17:49:30,677 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 17:49:30,677 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 17:49:30,677 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 17:49:30,677 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 17:49:30,677 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 17:50:15,647 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 17:50:15,650 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 17:50:15,652 - sqlalchemy.engine.Engine - INFO - [cached since 1625s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 16, 50, 15, 647629))
2025-04-28 17:50:15,655 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 17:50:15,710 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 17:50:15,711 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 17:50:15,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 17:50:15,712 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 17:50:15,713 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 17:50:15,719 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 17:50:30,718 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 17:50:30,719 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 17:50:30,719 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 17:50:30,720 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 17:50:30,720 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 17:50:30,721 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 17:50:30,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 17:50:30,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 17:50:30,723 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 17:50:30,724 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 17:50:30,724 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 17:50:30,724 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 17:50:30,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 17:50:30,726 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 17:50:30,726 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 17:50:30,727 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 17:50:30,727 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 17:50:30,728 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 17:50:30,728 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 17:50:30,728 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 17:50:30,729 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 17:50:30,730 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 17:50:30,731 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 17:50:30,731 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 17:51:15,651 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 17:51:15,655 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 17:51:15,656 - sqlalchemy.engine.Engine - INFO - [cached since 1685s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 16, 51, 15, 650063))
2025-04-28 17:51:15,660 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 17:51:15,729 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 17:51:15,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 17:51:15,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 17:51:15,732 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 17:51:15,732 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 17:51:15,743 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 17:51:30,742 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 17:51:30,742 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 17:51:30,743 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 17:51:30,743 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 17:51:30,743 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 17:51:30,743 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 17:51:30,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 17:51:30,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 17:51:30,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 17:51:30,744 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 17:51:30,744 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 17:51:30,745 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 17:51:30,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 17:51:30,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 17:51:30,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 17:51:30,745 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 17:51:30,745 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 17:51:30,746 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 17:51:30,746 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 17:51:30,746 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 17:51:30,746 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 17:51:30,746 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 17:51:30,746 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 17:51:30,746 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 17:52:15,663 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 17:52:15,664 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 17:52:15,664 - sqlalchemy.engine.Engine - INFO - [cached since 1745s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 16, 52, 15, 662284))
2025-04-28 17:52:15,666 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 17:52:15,772 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 17:52:15,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 17:52:15,774 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 17:52:15,774 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 17:52:15,775 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 17:52:15,781 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 17:52:30,801 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 17:52:30,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 17:52:30,803 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 17:52:30,803 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 17:52:30,803 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 17:52:30,805 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 17:52:30,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 17:52:30,806 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 17:52:30,806 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 17:52:30,807 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 17:52:30,807 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 17:52:30,809 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 17:52:30,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 17:52:30,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 17:52:30,811 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 17:52:30,813 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 17:52:30,817 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 17:52:30,817 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 17:52:30,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 17:52:30,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 17:52:30,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 17:52:30,818 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 17:52:30,819 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 17:52:30,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 17:53:15,683 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 17:53:15,685 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 17:53:15,688 - sqlalchemy.engine.Engine - INFO - [cached since 1805s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 16, 53, 15, 682867))
2025-04-28 17:53:15,691 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 17:53:15,808 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 17:53:15,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 17:53:15,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 17:53:15,809 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 17:53:15,810 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 17:53:15,817 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 17:53:30,826 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 17:53:30,827 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 17:53:30,829 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 17:53:30,829 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 17:53:30,831 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 17:53:30,833 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 17:53:30,836 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 17:53:30,836 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 17:53:30,839 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 17:53:30,839 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 17:53:30,840 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 17:53:30,842 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 17:53:30,843 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 17:53:30,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 17:53:30,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 17:53:30,845 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 17:53:30,846 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 17:53:30,846 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 17:53:30,846 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 17:53:30,847 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 17:53:30,847 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 17:53:30,847 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 17:53:30,847 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 17:53:30,848 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 17:54:15,700 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 17:54:15,701 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 17:54:15,703 - sqlalchemy.engine.Engine - INFO - [cached since 1865s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 16, 54, 15, 699777))
2025-04-28 17:54:15,705 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 17:54:15,856 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 17:54:15,857 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 17:54:15,857 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 17:54:15,857 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 17:54:15,857 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 17:54:15,864 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 17:54:30,881 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 17:54:30,883 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 17:54:30,884 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 17:54:30,885 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 17:54:30,887 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 17:54:30,890 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 17:54:30,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 17:54:30,894 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 17:54:30,895 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 17:54:30,895 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 17:54:30,896 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 17:54:30,896 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 17:54:30,897 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 17:54:30,898 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 17:54:30,898 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 17:54:30,898 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 17:54:30,898 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 17:54:30,898 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 17:54:30,899 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 17:54:30,899 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 17:54:30,900 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 17:54:30,900 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 17:54:30,900 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 17:54:30,900 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 17:55:15,727 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 17:55:15,728 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 17:55:15,728 - sqlalchemy.engine.Engine - INFO - [cached since 1925s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 16, 55, 15, 727496))
2025-04-28 17:55:15,732 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 17:55:15,898 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 17:55:15,899 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 17:55:15,899 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 17:55:15,899 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 17:55:15,899 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 17:55:15,908 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 17:55:30,915 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 17:55:30,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 17:55:30,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 17:55:30,915 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 17:55:30,915 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 17:55:30,916 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 17:55:30,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 17:55:30,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 17:55:30,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 17:55:30,916 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 17:55:30,916 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 17:55:30,916 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 17:55:30,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 17:55:30,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 17:55:30,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 17:55:30,916 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 17:55:30,916 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 17:55:30,916 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 17:55:30,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 17:55:30,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 17:55:30,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 17:55:30,916 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 17:55:30,916 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 17:55:30,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 17:56:15,722 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 17:56:15,723 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 17:56:15,726 - sqlalchemy.engine.Engine - INFO - [cached since 1985s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 16, 56, 15, 722067))
2025-04-28 17:56:15,730 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 17:56:15,940 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 17:56:15,940 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 17:56:15,940 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 17:56:15,940 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 17:56:15,942 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 17:56:15,946 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 17:56:30,954 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 17:56:30,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 17:56:30,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 17:56:30,957 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 17:56:30,957 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 17:56:30,957 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 17:56:30,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 17:56:30,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 17:56:30,958 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 17:56:30,958 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 17:56:30,958 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 17:56:30,958 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 17:56:30,959 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 17:56:30,959 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 17:56:30,960 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 17:56:30,961 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 17:56:30,962 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 17:56:30,963 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 17:56:30,965 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 17:56:30,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 17:56:30,969 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 17:56:30,970 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 17:56:30,970 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 17:56:30,971 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 17:57:15,748 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 17:57:15,749 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 17:57:15,750 - sqlalchemy.engine.Engine - INFO - [cached since 2045s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 16, 57, 15, 748270))
2025-04-28 17:57:15,752 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 17:57:15,966 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 17:57:15,966 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 17:57:15,968 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 17:57:15,969 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 17:57:15,970 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 17:57:15,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 17:57:30,977 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 17:57:30,978 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 17:57:30,978 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 17:57:30,978 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 17:57:30,978 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 17:57:30,978 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 17:57:30,978 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 17:57:30,979 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 17:57:30,979 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 17:57:30,979 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 17:57:30,979 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 17:57:30,979 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 17:57:30,980 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 17:57:30,980 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 17:57:30,980 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 17:57:30,980 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 17:57:30,980 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 17:57:30,981 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 17:57:30,981 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 17:57:30,981 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 17:57:30,981 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 17:57:30,982 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 17:57:30,982 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 17:57:30,982 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 17:58:15,780 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 17:58:15,781 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 17:58:15,781 - sqlalchemy.engine.Engine - INFO - [cached since 2105s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 16, 58, 15, 779969))
2025-04-28 17:58:15,785 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 17:58:15,981 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 17:58:15,982 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 17:58:15,982 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 17:58:15,983 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 17:58:15,983 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 17:58:15,991 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 17:58:31,006 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 17:58:31,006 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 17:58:31,006 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 17:58:31,006 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 17:58:31,007 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 17:58:31,007 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 17:58:31,007 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 17:58:31,007 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 17:58:31,007 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 17:58:31,007 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 17:58:31,008 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 17:58:31,008 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 17:58:31,008 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 17:58:31,009 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 17:58:31,009 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 17:58:31,009 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 17:58:31,009 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 17:58:31,010 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 17:58:31,010 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 17:58:31,010 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 17:58:31,010 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 17:58:31,010 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 17:58:31,010 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 17:58:31,010 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 17:59:15,802 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 17:59:15,805 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 17:59:15,807 - sqlalchemy.engine.Engine - INFO - [cached since 2165s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 16, 59, 15, 801249))
2025-04-28 17:59:15,810 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 17:59:16,020 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 17:59:16,021 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 17:59:16,021 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 17:59:16,023 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 17:59:16,026 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 17:59:16,031 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 17:59:31,049 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 17:59:31,050 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 17:59:31,051 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 17:59:31,053 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 17:59:31,054 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 17:59:31,056 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 17:59:31,059 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 17:59:31,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 17:59:31,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 17:59:31,062 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 17:59:31,063 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 17:59:31,064 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 17:59:31,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 17:59:31,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 17:59:31,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 17:59:31,070 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 17:59:31,070 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 17:59:31,070 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 17:59:31,071 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 17:59:31,072 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 17:59:31,072 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 17:59:31,072 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 17:59:31,072 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 17:59:31,072 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:00:15,799 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:00:15,803 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:00:15,806 - sqlalchemy.engine.Engine - INFO - [cached since 2225s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 0, 15, 799021))
2025-04-28 18:00:15,810 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:00:16,077 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:00:16,078 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:00:16,078 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:00:16,078 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:00:16,078 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:00:16,085 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:00:31,106 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:00:31,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:00:31,110 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:00:31,110 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:00:31,111 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:00:31,111 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:00:31,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:00:31,113 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:00:31,113 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:00:31,114 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:00:31,115 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:00:31,117 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:00:31,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:00:31,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:00:31,121 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:00:31,121 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:00:31,121 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:00:31,121 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:00:31,121 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:00:31,121 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:00:31,121 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:00:31,121 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:00:31,123 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:00:31,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:01:15,832 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:01:15,835 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:01:15,835 - sqlalchemy.engine.Engine - INFO - [cached since 2285s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 1, 15, 831231))
2025-04-28 18:01:15,837 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:01:16,142 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:01:16,144 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:01:16,145 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:01:16,146 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:01:16,147 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:01:16,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:01:31,164 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:01:31,165 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:01:31,165 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:01:31,166 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:01:31,167 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:01:31,167 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:01:31,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:01:31,168 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:01:31,170 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:01:31,170 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:01:31,170 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:01:31,170 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:01:31,170 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:01:31,171 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:01:31,171 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:01:31,171 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:01:31,172 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:01:31,172 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:01:31,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:01:31,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:01:31,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:01:31,174 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:01:31,174 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:01:31,175 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:02:15,851 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:02:15,852 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:02:15,855 - sqlalchemy.engine.Engine - INFO - [cached since 2345s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 2, 15, 850109))
2025-04-28 18:02:15,858 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:02:16,176 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:02:16,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:02:16,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:02:16,179 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:02:16,179 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:02:16,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:02:31,187 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:02:31,188 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:02:31,189 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:02:31,191 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:02:31,191 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:02:31,193 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:02:31,194 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:02:31,195 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:02:31,195 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:02:31,196 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:02:31,197 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:02:31,198 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:02:31,200 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:02:31,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:02:31,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:02:31,203 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:02:31,206 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:02:31,206 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:02:31,208 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:02:31,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:02:31,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:02:31,209 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:02:31,210 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:02:31,210 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:03:15,882 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:03:15,882 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:03:15,883 - sqlalchemy.engine.Engine - INFO - [cached since 2405s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 3, 15, 881616))
2025-04-28 18:03:15,883 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:03:16,235 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:03:16,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:03:16,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:03:16,236 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:03:16,236 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:03:16,242 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:03:31,234 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:03:31,238 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:03:31,238 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:03:31,240 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:03:31,242 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:03:31,244 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:03:31,248 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:03:31,249 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:03:31,249 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:03:31,250 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:03:31,252 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:03:31,253 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:03:31,257 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:03:31,258 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:03:31,259 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:03:31,260 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:03:31,260 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:03:31,260 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:03:31,262 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:03:31,263 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:03:31,263 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:03:31,263 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:03:31,263 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:03:31,264 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:04:15,891 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:04:15,894 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:04:15,898 - sqlalchemy.engine.Engine - INFO - [cached since 2466s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 4, 15, 891047))
2025-04-28 18:04:15,901 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:04:16,045 - app - INFO - 应用程序关闭中...
2025-04-28 18:04:16,045 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:04:16,045 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:04:16,045 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:04:16,045 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:04:16,045 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:04:16,046 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:04:16,046 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:04:16,046 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:04:16,046 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:04:16,046 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:04:16,046 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:04:16,046 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:04:16,047 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:04:16,047 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:04:16,047 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:04:16,047 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-28 18:04:16,047 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:04:16,047 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:04:16,047 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-28 18:04:16,047 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:04:16,047 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:04:16,047 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-28 18:04:16,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:04:16,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:04:16,048 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-28 18:04:16,049 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:04:16,049 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:04:16,049 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:04:16,049 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:04:16,050 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:04:16,052 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:04:16,052 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:04:17,375 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:04:17,433 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:04:17,437 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:04:17,500 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:04:17,546 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:04:17,587 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:04:17,604 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:04:17,605 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:04:17,607 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:04:17,609 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:04:17,611 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:04:17,613 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:04:17,617 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:04:17,619 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:04:17,620 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:04:17,622 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:04:17,624 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:04:17,626 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:04:17,627 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:04:17,629 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:04:17,632 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:04:17,637 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:04:17,639 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:04:17,646 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:04:17,646 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:04:17,652 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:04:17,653 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:04:17,654 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:04:17,654 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:04:17,656 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:04:17,657 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:04:17,658 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:04:17,660 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:04:17,661 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:04:17,665 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:04:17,669 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:04:17,671 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:04:18,017 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:04:18,018 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:04:18,018 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:04:18,018 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:04:18,019 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:04:18,019 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:04:18,019 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:04:18,019 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:04:18,020 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:04:18,020 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:04:18,020 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:04:18,020 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:04:18,020 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:04:18,022 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:04:18,022 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:04:18,022 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:04:18,023 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:04:18,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:04:18,024 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:04:18,025 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:04:18,027 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:04:18,028 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:04:18,028 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:04:18,029 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:04:18,029 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:04:18,030 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:04:18,030 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:04:18,031 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:04:18,042 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:04:18,043 - sqlalchemy.engine.Engine - INFO - [generated in 0.00131s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:04:18,049 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:04:18,051 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:04:18,055 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:04:18,057 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:04:18,058 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:04:18,059 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:04:18,063 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:04:18,065 - sqlalchemy.engine.Engine - INFO - [generated in 0.00301s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:04:18,088 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:04:18,089 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:04:18,089 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:04:18,090 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:04:18,090 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:04:18,090 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:04:18,091 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:04:18,092 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:04:18,092 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 4, 18, 59240))
2025-04-28 18:04:18,094 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:05:18,027 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:05:18,031 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:05:18,031 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:05:18,032 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:05:18,033 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:05:18,035 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:05:18,040 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:05:18,042 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:05:18,042 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:05:18,043 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:05:18,043 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:05:18,044 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:05:18,045 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:05:18,045 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:05:18,045 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:05:18,045 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:05:18,045 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:05:18,046 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:05:18,046 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:05:18,046 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:05:18,046 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:05:18,046 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:05:18,047 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:05:18,047 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:05:18,047 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:05:18,047 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:05:18,047 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:05:18,048 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:05:18,048 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:05:18,056 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:05:18,089 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:05:18,090 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:05:18,091 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 5, 18, 89135))
2025-04-28 18:05:18,092 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:06:18,063 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:06:18,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:06:18,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:06:18,068 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:06:18,070 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:06:18,071 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:06:18,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:06:18,076 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:06:18,077 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:06:18,078 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:06:18,079 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:06:18,079 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:06:18,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:06:18,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:06:18,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:06:18,081 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:06:18,083 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:06:18,085 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:06:18,087 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:06:18,087 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:06:18,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:06:18,091 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:06:18,096 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:06:18,097 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:06:18,101 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:06:18,104 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:06:18,107 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 6, 18, 80465))
2025-04-28 18:06:18,110 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:06:18,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:06:18,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:06:18,112 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:06:18,112 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:06:18,118 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:06:18,123 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:06:43,597 - app - INFO - 应用程序关闭中...
2025-04-28 18:06:43,598 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:06:43,599 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:06:43,601 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:06:43,602 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:06:43,602 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:06:43,604 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:06:43,605 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:06:43,608 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:06:43,610 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:06:43,611 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:06:43,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:06:43,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:06:43,613 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:06:43,614 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:06:43,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:06:43,617 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:06:43,619 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:06:43,621 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:06:43,624 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:06:43,626 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:06:43,627 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:06:43,628 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:06:43,628 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:06:43,628 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:06:43,629 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:06:43,629 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:06:43,629 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:06:43,630 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:06:43,630 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:06:43,630 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:06:43,631 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:06:43,631 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:06:46,897 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:06:46,955 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:06:46,956 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:06:47,633 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:06:47,690 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:06:47,692 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:06:47,751 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:06:47,804 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:06:47,835 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:06:47,855 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:06:47,855 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:06:47,856 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:06:47,859 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:06:47,861 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:06:47,865 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:06:47,868 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:06:47,868 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:06:47,870 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:06:47,871 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:06:47,873 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:06:47,875 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:06:47,877 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:06:47,880 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:06:47,883 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:06:47,885 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:06:47,885 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:06:47,890 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:06:47,891 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:06:47,892 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:06:47,893 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:06:47,896 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:06:47,898 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:06:47,899 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:06:47,901 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:06:47,905 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:06:47,907 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:06:47,910 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:06:47,914 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:06:47,917 - sqlalchemy.engine.Engine - INFO - 
CREATE TABLE vwed_taskdef (
	id VARCHAR(255) NOT NULL COMMENT '任务定义唯一标识', 
	label VARCHAR(255) COMMENT '任务名称标签', 
	created_by VARCHAR(255) COMMENT '创建用户ID', 
	version INTEGER COMMENT '任务版本号', 
	detail LONGTEXT COMMENT '任务详细定义（JSON格式，包含输入参数、根块配置等）', 
	template_name VARCHAR(255) COMMENT '所使用的模板名称', 
	period INTEGER NOT NULL COMMENT '周期时间（毫秒）', 
	periodic_task INTEGER NOT NULL COMMENT '是否为周期任务', 
	status INTEGER COMMENT '任务状态', 
	if_enable INTEGER NOT NULL COMMENT '是否启用', 
	delay INTEGER NOT NULL COMMENT '延迟时间（毫秒）', 
	release_sites BIT(1) COMMENT '释放站点', 
	remark VARCHAR(255) COMMENT '备注', 
	tenant_id VARCHAR(255) NOT NULL COMMENT '租户ID，用于多租户隔离', 
	map_id VARCHAR(255) NOT NULL COMMENT '地图ID', 
	user_token VARCHAR(500) COMMENT '用户token值，每次请求需要用到的认证信息', 
	created_at DATETIME(6) COMMENT '创建时间', 
	updated_at DATETIME(6) COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)ENGINE=InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_general_ci


2025-04-28 18:06:47,920 - sqlalchemy.engine.Engine - INFO - [no key 0.00287s] {}
2025-04-28 18:06:47,962 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-28 18:06:47,968 - data.session - ERROR - 数据库初始化失败: sequence item 1: expected str instance, list found
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\data\session.py", line 145, in init_database
    Base.metadata.create_all(bind=engine)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\schema.py", line 5907, in create_all
    bind._run_ddl_visitor(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 3249, in _run_ddl_visitor
    conn._run_ddl_visitor(visitorcallable, element, **kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 2456, in _run_ddl_visitor
    visitorcallable(self.dialect, self, **kwargs).traverse_single(element)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\visitors.py", line 664, in traverse_single
    return meth(obj, **kw)
           ^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 978, in visit_metadata
    self.traverse_single(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\visitors.py", line 664, in traverse_single
    return meth(obj, **kw)
           ^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 1016, in visit_table
    )._invoke_with(self.connection)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 314, in _invoke_with
    return bind.execute(self)
           ^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1416, in execute
    return meth(
           ^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 180, in _execute_on_connection
    return connection._execute_ddl(
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1524, in _execute_ddl
    compiled = ddl.compile(
               ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\elements.py", line 308, in compile
    return self._compiler(dialect, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 69, in _compiler
    return dialect.ddl_compiler(dialect, self, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\compiler.py", line 870, in __init__
    self.string = self.process(self.statement, **compile_kwargs)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\compiler.py", line 915, in process
    return obj._compiler_dispatch(self, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\visitors.py", line 141, in _compiler_dispatch
    return meth(self, **kw)  # type: ignore  # noqa: E501
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\compiler.py", line 6691, in visit_create_table
    text += "\n)%s\n\n" % self.post_create_table(table)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\base.py", line 2001, in post_create_table
    table_opts.append(joiner.join((opt, arg)))
                      ^^^^^^^^^^^^^^^^^^^^^^^
TypeError: sequence item 1: expected str instance, list found
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\lifespan\on.py", line 86, in main
    await app(scope, self.receive, self.send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 29, in __call__
    return await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\applications.py", line 112, in __call__
    await self.middleware_stack(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\errors.py", line 152, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\base.py", line 100, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\cors.py", line 77, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\exceptions.py", line 48, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 714, in __call__
    await self.middleware_stack(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 723, in app
    await self.lifespan(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 692, in lifespan
    async with self.lifespan_context(app) as maybe_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "D:\jsw_code\project\VWED_task\app.py", line 37, in lifespan
    init_database()
  File "D:\jsw_code\project\VWED_task\data\session.py", line 149, in init_database
    logger.error(f"数据库初始化失败: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:06:47,978 - data.session - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\data\session.py", line 145, in init_database
    Base.metadata.create_all(bind=engine)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\schema.py", line 5907, in create_all
    bind._run_ddl_visitor(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 3249, in _run_ddl_visitor
    conn._run_ddl_visitor(visitorcallable, element, **kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 2456, in _run_ddl_visitor
    visitorcallable(self.dialect, self, **kwargs).traverse_single(element)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\visitors.py", line 664, in traverse_single
    return meth(obj, **kw)
           ^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 978, in visit_metadata
    self.traverse_single(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\visitors.py", line 664, in traverse_single
    return meth(obj, **kw)
           ^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 1016, in visit_table
    )._invoke_with(self.connection)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 314, in _invoke_with
    return bind.execute(self)
           ^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1416, in execute
    return meth(
           ^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 180, in _execute_on_connection
    return connection._execute_ddl(
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1524, in _execute_ddl
    compiled = ddl.compile(
               ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\elements.py", line 308, in compile
    return self._compiler(dialect, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 69, in _compiler
    return dialect.ddl_compiler(dialect, self, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\compiler.py", line 870, in __init__
    self.string = self.process(self.statement, **compile_kwargs)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\compiler.py", line 915, in process
    return obj._compiler_dispatch(self, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\visitors.py", line 141, in _compiler_dispatch
    return meth(self, **kw)  # type: ignore  # noqa: E501
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\compiler.py", line 6691, in visit_create_table
    text += "\n)%s\n\n" % self.post_create_table(table)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\base.py", line 2001, in post_create_table
    table_opts.append(joiner.join((opt, arg)))
                      ^^^^^^^^^^^^^^^^^^^^^^^
TypeError: sequence item 1: expected str instance, list found
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\data\session.py", line 145, in init_database
    Base.metadata.create_all(bind=engine)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\schema.py", line 5907, in create_all
    bind._run_ddl_visitor(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 3249, in _run_ddl_visitor
    conn._run_ddl_visitor(visitorcallable, element, **kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 2456, in _run_ddl_visitor
    visitorcallable(self.dialect, self, **kwargs).traverse_single(element)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\visitors.py", line 664, in traverse_single
    return meth(obj, **kw)
           ^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 978, in visit_metadata
    self.traverse_single(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\visitors.py", line 664, in traverse_single
    return meth(obj, **kw)
           ^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 1016, in visit_table
    )._invoke_with(self.connection)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 314, in _invoke_with
    return bind.execute(self)
           ^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1416, in execute
    return meth(
           ^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 180, in _execute_on_connection
    return connection._execute_ddl(
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1524, in _execute_ddl
    compiled = ddl.compile(
               ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\elements.py", line 308, in compile
    return self._compiler(dialect, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 69, in _compiler
    return dialect.ddl_compiler(dialect, self, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\compiler.py", line 870, in __init__
    self.string = self.process(self.statement, **compile_kwargs)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\compiler.py", line 915, in process
    return obj._compiler_dispatch(self, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\visitors.py", line 141, in _compiler_dispatch
    return meth(self, **kw)  # type: ignore  # noqa: E501
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\compiler.py", line 6691, in visit_create_table
    text += "\n)%s\n\n" % self.post_create_table(table)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\base.py", line 2001, in post_create_table
    table_opts.append(joiner.join((opt, arg)))
                      ^^^^^^^^^^^^^^^^^^^^^^^
TypeError: sequence item 1: expected str instance, list found
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\lifespan\on.py", line 86, in main
    await app(scope, self.receive, self.send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 29, in __call__
    return await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\applications.py", line 112, in __call__
    await self.middleware_stack(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\errors.py", line 152, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\base.py", line 100, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\cors.py", line 77, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\exceptions.py", line 48, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 714, in __call__
    await self.middleware_stack(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 723, in app
    await self.lifespan(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 692, in lifespan
    async with self.lifespan_context(app) as maybe_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "D:\jsw_code\project\VWED_task\app.py", line 37, in lifespan
    init_database()
  File "D:\jsw_code\project\VWED_task\data\session.py", line 150, in init_database
    logger.error(traceback.format_exc())
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:06:48,329 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:06:48,330 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:06:48,332 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:06:48,334 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:06:48,335 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:06:48,336 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:06:48,337 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:06:48,338 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:06:48,339 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:06:48,339 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:06:48,341 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:06:48,342 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:06:48,342 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:06:48,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:06:48,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:06:48,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:06:48,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:06:48,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:06:48,344 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:06:48,345 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:06:48,346 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:06:48,346 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:06:48,347 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:06:48,351 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:06:48,351 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:06:48,351 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:06:48,352 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:06:48,352 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:06:48,361 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:06:48,362 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:06:48,364 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:06:48,364 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:06:48,364 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:06:48,365 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:06:48,365 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:06:48,366 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:06:48,367 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:06:48,368 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:06:48,386 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-28 18:06:48,387 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:06:48,388 - services.enhanced_scheduler.task_persistence - ERROR - 加载待处理任务异常: (pymysql.err.ProgrammingError) (1146, "Table 'vwed_task.vwed_taskrecord' doesn't exist")
[SQL: SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))]
[parameters: (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)]
(Background on this error at: https://sqlalche.me/e/20/f405)
Traceback (most recent call last):
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1964, in _exec_single_context
    self.dialect.do_execute(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\default.py", line 942, in do_execute
    cursor.execute(statement, parameters)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\aiomysql.py", line 97, in execute
    return self.await_(self._execute_async(operation, parameters))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 132, in await_only
    return current.parent.switch(awaitable)  # type: ignore[no-any-return,attr-defined] # noqa: E501
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 196, in greenlet_spawn
    value = await result
            ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\aiomysql.py", line 106, in _execute_async
    result = await self._cursor.execute(operation, parameters)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\cursors.py", line 239, in execute
    await self._query(query)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\cursors.py", line 457, in _query
    await conn.query(q)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 469, in query
    await self._read_query_result(unbuffered=unbuffered)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 683, in _read_query_result
    await result.read()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 1164, in read
    first_packet = await self.connection._read_packet()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 652, in _read_packet
    packet.raise_for_error()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\protocol.py", line 219, in raise_for_error
    err.raise_mysql_exception(self._data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\err.py", line 150, in raise_mysql_exception
    raise errorclass(errno, errval)
pymysql.err.ProgrammingError: (1146, "Table 'vwed_task.vwed_taskrecord' doesn't exist")

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_persistence.py", line 154, in load_pending_tasks
    db_result = await session.execute(query)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\ext\asyncio\session.py", line 463, in execute
    result = await greenlet_spawn(
             ^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 201, in greenlet_spawn
    result = context.throw(*sys.exc_info())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\orm\session.py", line 2365, in execute
    return self._execute_internal(
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\orm\session.py", line 2251, in _execute_internal
    result: Result[Any] = compile_state_cls.orm_execute_statement(
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\orm\context.py", line 306, in orm_execute_statement
    result = conn.execute(
             ^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1416, in execute
    return meth(
           ^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\elements.py", line 523, in _execute_on_connection
    return connection._execute_clauseelement(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1638, in _execute_clauseelement
    ret = self._execute_context(
          ^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1843, in _execute_context
    return self._exec_single_context(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1983, in _exec_single_context
    self._handle_dbapi_exception(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 2352, in _handle_dbapi_exception
    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1964, in _exec_single_context
    self.dialect.do_execute(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\default.py", line 942, in do_execute
    cursor.execute(statement, parameters)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\aiomysql.py", line 97, in execute
    return self.await_(self._execute_async(operation, parameters))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 132, in await_only
    return current.parent.switch(awaitable)  # type: ignore[no-any-return,attr-defined] # noqa: E501
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 196, in greenlet_spawn
    value = await result
            ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\aiomysql.py", line 106, in _execute_async
    result = await self._cursor.execute(operation, parameters)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\cursors.py", line 239, in execute
    await self._query(query)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\cursors.py", line 457, in _query
    await conn.query(q)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 469, in query
    await self._read_query_result(unbuffered=unbuffered)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 683, in _read_query_result
    await result.read()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 1164, in read
    first_packet = await self.connection._read_packet()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 652, in _read_packet
    packet.raise_for_error()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\protocol.py", line 219, in raise_for_error
    err.raise_mysql_exception(self._data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\err.py", line 150, in raise_mysql_exception
    raise errorclass(errno, errval)
sqlalchemy.exc.ProgrammingError: (pymysql.err.ProgrammingError) (1146, "Table 'vwed_task.vwed_taskrecord' doesn't exist")
[SQL: SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))]
[parameters: (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)]
(Background on this error at: https://sqlalche.me/e/20/f405)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\lifespan\on.py", line 86, in main
    await app(scope, self.receive, self.send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 29, in __call__
    return await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\applications.py", line 112, in __call__
    await self.middleware_stack(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\errors.py", line 152, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\base.py", line 100, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\cors.py", line 77, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\exceptions.py", line 48, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 714, in __call__
    await self.middleware_stack(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 723, in app
    await self.lifespan(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 692, in lifespan
    async with self.lifespan_context(app) as maybe_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "D:\jsw_code\project\VWED_task\app.py", line 44, in lifespan
    await scheduler.start(worker_count=settings.TASK_SCHEDULER_MIN_WORKER_COUNT)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 173, in start
    await self._restore_pending_tasks()
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 223, in _restore_pending_tasks
    pending_tasks = await self.persistence_manager.load_pending_tasks()
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_persistence.py", line 194, in load_pending_tasks
    logger.error(f"加载待处理任务异常: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:06:48,396 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:06:48,396 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:06:48,396 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:06:48,397 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:06:48,398 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:06:48,400 - sqlalchemy.engine.Engine - INFO - [generated in 0.00139s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 6, 48, 366682))
2025-04-28 18:06:48,401 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-28 18:06:48,402 - services.enhanced_scheduler.task_scheduler - ERROR - 检查僵尸任务异常: (pymysql.err.ProgrammingError) (1146, "Table 'vwed_task.vwed_taskrecord' doesn't exist")
[SQL: SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s]
[parameters: (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 6, 48, 366682))]
(Background on this error at: https://sqlalche.me/e/20/f405)
Traceback (most recent call last):
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1964, in _exec_single_context
    self.dialect.do_execute(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\default.py", line 942, in do_execute
    cursor.execute(statement, parameters)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\aiomysql.py", line 97, in execute
    return self.await_(self._execute_async(operation, parameters))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 132, in await_only
    return current.parent.switch(awaitable)  # type: ignore[no-any-return,attr-defined] # noqa: E501
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 196, in greenlet_spawn
    value = await result
            ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\aiomysql.py", line 106, in _execute_async
    result = await self._cursor.execute(operation, parameters)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\cursors.py", line 239, in execute
    await self._query(query)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\cursors.py", line 457, in _query
    await conn.query(q)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 469, in query
    await self._read_query_result(unbuffered=unbuffered)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 683, in _read_query_result
    await result.read()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 1164, in read
    first_packet = await self.connection._read_packet()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 652, in _read_packet
    packet.raise_for_error()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\protocol.py", line 219, in raise_for_error
    err.raise_mysql_exception(self._data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\err.py", line 150, in raise_mysql_exception
    raise errorclass(errno, errval)
pymysql.err.ProgrammingError: (1146, "Table 'vwed_task.vwed_taskrecord' doesn't exist")

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 946, in _check_zombie_tasks
    result = await session.execute(query)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\ext\asyncio\session.py", line 463, in execute
    result = await greenlet_spawn(
             ^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 201, in greenlet_spawn
    result = context.throw(*sys.exc_info())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\orm\session.py", line 2365, in execute
    return self._execute_internal(
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\orm\session.py", line 2251, in _execute_internal
    result: Result[Any] = compile_state_cls.orm_execute_statement(
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\orm\context.py", line 306, in orm_execute_statement
    result = conn.execute(
             ^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1416, in execute
    return meth(
           ^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\elements.py", line 523, in _execute_on_connection
    return connection._execute_clauseelement(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1638, in _execute_clauseelement
    ret = self._execute_context(
          ^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1843, in _execute_context
    return self._exec_single_context(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1983, in _exec_single_context
    self._handle_dbapi_exception(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 2352, in _handle_dbapi_exception
    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1964, in _exec_single_context
    self.dialect.do_execute(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\default.py", line 942, in do_execute
    cursor.execute(statement, parameters)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\aiomysql.py", line 97, in execute
    return self.await_(self._execute_async(operation, parameters))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 132, in await_only
    return current.parent.switch(awaitable)  # type: ignore[no-any-return,attr-defined] # noqa: E501
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 196, in greenlet_spawn
    value = await result
            ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\aiomysql.py", line 106, in _execute_async
    result = await self._cursor.execute(operation, parameters)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\cursors.py", line 239, in execute
    await self._query(query)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\cursors.py", line 457, in _query
    await conn.query(q)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 469, in query
    await self._read_query_result(unbuffered=unbuffered)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 683, in _read_query_result
    await result.read()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 1164, in read
    first_packet = await self.connection._read_packet()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 652, in _read_packet
    packet.raise_for_error()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\protocol.py", line 219, in raise_for_error
    err.raise_mysql_exception(self._data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\err.py", line 150, in raise_mysql_exception
    raise errorclass(errno, errval)
sqlalchemy.exc.ProgrammingError: (pymysql.err.ProgrammingError) (1146, "Table 'vwed_task.vwed_taskrecord' doesn't exist")
[SQL: SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s]
[parameters: (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 6, 48, 366682))]
(Background on this error at: https://sqlalche.me/e/20/f405)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 915, in _monitor
    await self._check_zombie_tasks()
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 966, in _check_zombie_tasks
    logger.error(f"检查僵尸任务异常: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:06:51,574 - app - INFO - 应用程序关闭中...
2025-04-28 18:06:51,577 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:06:51,579 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:06:51,579 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:06:51,580 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:06:51,580 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:06:51,580 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:06:51,580 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:06:51,581 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:06:51,581 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:06:51,582 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:06:51,582 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:06:51,582 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:06:51,582 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:06:51,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:06:51,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:06:51,583 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:06:51,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:06:51,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:06:51,583 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:06:51,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:06:51,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:06:51,584 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:06:51,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:06:51,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:06:51,584 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:06:51,584 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:06:51,584 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:06:51,584 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:06:51,585 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:06:51,585 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:06:51,585 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:06:51,587 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:07:16,532 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:07:16,600 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:07:16,601 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:07:17,316 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:07:17,383 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:07:17,384 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:07:17,456 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:07:17,505 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:07:17,544 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:07:17,562 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:07:17,563 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:07:17,563 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:07:17,563 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:07:17,564 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:07:17,564 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:07:17,564 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:07:17,564 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:07:17,565 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:07:17,569 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:07:17,569 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:07:17,571 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:07:17,571 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:07:17,571 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:07:17,572 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:07:17,572 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:07:17,572 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:07:17,573 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:07:17,573 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:07:17,573 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:07:17,573 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:07:17,574 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:07:17,574 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:07:17,574 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:07:17,574 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:07:17,575 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:07:17,575 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:07:17,576 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:07:17,576 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:07:17,578 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-28 18:07:17,582 - data.session - ERROR - 数据库初始化失败: sequence item 1: expected str instance, list found
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\data\session.py", line 145, in init_database
    Base.metadata.create_all(bind=engine)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\schema.py", line 5907, in create_all
    bind._run_ddl_visitor(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 3249, in _run_ddl_visitor
    conn._run_ddl_visitor(visitorcallable, element, **kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 2456, in _run_ddl_visitor
    visitorcallable(self.dialect, self, **kwargs).traverse_single(element)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\visitors.py", line 664, in traverse_single
    return meth(obj, **kw)
           ^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 978, in visit_metadata
    self.traverse_single(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\visitors.py", line 664, in traverse_single
    return meth(obj, **kw)
           ^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 1016, in visit_table
    )._invoke_with(self.connection)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 314, in _invoke_with
    return bind.execute(self)
           ^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1416, in execute
    return meth(
           ^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 180, in _execute_on_connection
    return connection._execute_ddl(
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1524, in _execute_ddl
    compiled = ddl.compile(
               ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\elements.py", line 308, in compile
    return self._compiler(dialect, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 69, in _compiler
    return dialect.ddl_compiler(dialect, self, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\compiler.py", line 870, in __init__
    self.string = self.process(self.statement, **compile_kwargs)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\compiler.py", line 915, in process
    return obj._compiler_dispatch(self, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\visitors.py", line 141, in _compiler_dispatch
    return meth(self, **kw)  # type: ignore  # noqa: E501
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\compiler.py", line 6691, in visit_create_table
    text += "\n)%s\n\n" % self.post_create_table(table)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\base.py", line 2001, in post_create_table
    table_opts.append(joiner.join((opt, arg)))
                      ^^^^^^^^^^^^^^^^^^^^^^^
TypeError: sequence item 1: expected str instance, list found
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\lifespan\on.py", line 86, in main
    await app(scope, self.receive, self.send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 29, in __call__
    return await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\applications.py", line 112, in __call__
    await self.middleware_stack(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\errors.py", line 152, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\base.py", line 100, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\cors.py", line 77, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\exceptions.py", line 48, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 714, in __call__
    await self.middleware_stack(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 723, in app
    await self.lifespan(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 692, in lifespan
    async with self.lifespan_context(app) as maybe_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "D:\jsw_code\project\VWED_task\app.py", line 37, in lifespan
    init_database()
  File "D:\jsw_code\project\VWED_task\data\session.py", line 149, in init_database
    logger.error(f"数据库初始化失败: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:07:17,588 - data.session - ERROR - Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\data\session.py", line 145, in init_database
    Base.metadata.create_all(bind=engine)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\schema.py", line 5907, in create_all
    bind._run_ddl_visitor(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 3249, in _run_ddl_visitor
    conn._run_ddl_visitor(visitorcallable, element, **kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 2456, in _run_ddl_visitor
    visitorcallable(self.dialect, self, **kwargs).traverse_single(element)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\visitors.py", line 664, in traverse_single
    return meth(obj, **kw)
           ^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 978, in visit_metadata
    self.traverse_single(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\visitors.py", line 664, in traverse_single
    return meth(obj, **kw)
           ^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 1016, in visit_table
    )._invoke_with(self.connection)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 314, in _invoke_with
    return bind.execute(self)
           ^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1416, in execute
    return meth(
           ^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 180, in _execute_on_connection
    return connection._execute_ddl(
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1524, in _execute_ddl
    compiled = ddl.compile(
               ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\elements.py", line 308, in compile
    return self._compiler(dialect, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 69, in _compiler
    return dialect.ddl_compiler(dialect, self, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\compiler.py", line 870, in __init__
    self.string = self.process(self.statement, **compile_kwargs)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\compiler.py", line 915, in process
    return obj._compiler_dispatch(self, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\visitors.py", line 141, in _compiler_dispatch
    return meth(self, **kw)  # type: ignore  # noqa: E501
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\compiler.py", line 6691, in visit_create_table
    text += "\n)%s\n\n" % self.post_create_table(table)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\base.py", line 2001, in post_create_table
    table_opts.append(joiner.join((opt, arg)))
                      ^^^^^^^^^^^^^^^^^^^^^^^
TypeError: sequence item 1: expected str instance, list found
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\data\session.py", line 145, in init_database
    Base.metadata.create_all(bind=engine)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\schema.py", line 5907, in create_all
    bind._run_ddl_visitor(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 3249, in _run_ddl_visitor
    conn._run_ddl_visitor(visitorcallable, element, **kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 2456, in _run_ddl_visitor
    visitorcallable(self.dialect, self, **kwargs).traverse_single(element)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\visitors.py", line 664, in traverse_single
    return meth(obj, **kw)
           ^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 978, in visit_metadata
    self.traverse_single(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\visitors.py", line 664, in traverse_single
    return meth(obj, **kw)
           ^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 1016, in visit_table
    )._invoke_with(self.connection)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 314, in _invoke_with
    return bind.execute(self)
           ^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1416, in execute
    return meth(
           ^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 180, in _execute_on_connection
    return connection._execute_ddl(
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1524, in _execute_ddl
    compiled = ddl.compile(
               ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\elements.py", line 308, in compile
    return self._compiler(dialect, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\ddl.py", line 69, in _compiler
    return dialect.ddl_compiler(dialect, self, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\compiler.py", line 870, in __init__
    self.string = self.process(self.statement, **compile_kwargs)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\compiler.py", line 915, in process
    return obj._compiler_dispatch(self, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\visitors.py", line 141, in _compiler_dispatch
    return meth(self, **kw)  # type: ignore  # noqa: E501
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\compiler.py", line 6691, in visit_create_table
    text += "\n)%s\n\n" % self.post_create_table(table)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\base.py", line 2001, in post_create_table
    table_opts.append(joiner.join((opt, arg)))
                      ^^^^^^^^^^^^^^^^^^^^^^^
TypeError: sequence item 1: expected str instance, list found
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\lifespan\on.py", line 86, in main
    await app(scope, self.receive, self.send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 29, in __call__
    return await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\applications.py", line 112, in __call__
    await self.middleware_stack(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\errors.py", line 152, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\base.py", line 100, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\cors.py", line 77, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\exceptions.py", line 48, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 714, in __call__
    await self.middleware_stack(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 723, in app
    await self.lifespan(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 692, in lifespan
    async with self.lifespan_context(app) as maybe_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "D:\jsw_code\project\VWED_task\app.py", line 37, in lifespan
    init_database()
  File "D:\jsw_code\project\VWED_task\data\session.py", line 150, in init_database
    logger.error(traceback.format_exc())
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:07:17,936 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:07:17,936 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:07:17,936 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:07:17,937 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:07:17,937 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:07:17,937 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:07:17,937 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:07:17,938 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:07:17,938 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:07:17,938 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:07:17,938 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:07:17,939 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:07:17,939 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:07:17,940 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:07:17,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:07:17,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:07:17,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:07:17,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:07:17,941 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:07:17,941 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:07:17,942 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:07:17,943 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:07:17,943 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:07:17,943 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:07:17,944 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:07:17,944 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:07:17,944 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:07:17,945 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:07:17,954 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:07:17,954 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:07:17,955 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:07:17,956 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:07:17,956 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:07:17,956 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:07:17,957 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:07:17,957 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:07:17,959 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:07:17,959 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:07:17,960 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:07:17,960 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-28 18:07:17,960 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:07:17,961 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:07:17,961 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 7, 17, 957773))
2025-04-28 18:07:17,964 - services.enhanced_scheduler.task_persistence - ERROR - 加载待处理任务异常: (pymysql.err.ProgrammingError) (1146, "Table 'vwed_task.vwed_taskrecord' doesn't exist")
[SQL: SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))]
[parameters: (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)]
(Background on this error at: https://sqlalche.me/e/20/f405)
Traceback (most recent call last):
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1964, in _exec_single_context
    self.dialect.do_execute(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\default.py", line 942, in do_execute
    cursor.execute(statement, parameters)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\aiomysql.py", line 97, in execute
    return self.await_(self._execute_async(operation, parameters))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 132, in await_only
    return current.parent.switch(awaitable)  # type: ignore[no-any-return,attr-defined] # noqa: E501
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 196, in greenlet_spawn
    value = await result
            ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\aiomysql.py", line 106, in _execute_async
    result = await self._cursor.execute(operation, parameters)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\cursors.py", line 239, in execute
    await self._query(query)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\cursors.py", line 457, in _query
    await conn.query(q)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 469, in query
    await self._read_query_result(unbuffered=unbuffered)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 683, in _read_query_result
    await result.read()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 1164, in read
    first_packet = await self.connection._read_packet()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 652, in _read_packet
    packet.raise_for_error()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\protocol.py", line 219, in raise_for_error
    err.raise_mysql_exception(self._data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\err.py", line 150, in raise_mysql_exception
    raise errorclass(errno, errval)
pymysql.err.ProgrammingError: (1146, "Table 'vwed_task.vwed_taskrecord' doesn't exist")

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_persistence.py", line 154, in load_pending_tasks
    db_result = await session.execute(query)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\ext\asyncio\session.py", line 463, in execute
    result = await greenlet_spawn(
             ^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 201, in greenlet_spawn
    result = context.throw(*sys.exc_info())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\orm\session.py", line 2365, in execute
    return self._execute_internal(
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\orm\session.py", line 2251, in _execute_internal
    result: Result[Any] = compile_state_cls.orm_execute_statement(
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\orm\context.py", line 306, in orm_execute_statement
    result = conn.execute(
             ^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1416, in execute
    return meth(
           ^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\elements.py", line 523, in _execute_on_connection
    return connection._execute_clauseelement(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1638, in _execute_clauseelement
    ret = self._execute_context(
          ^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1843, in _execute_context
    return self._exec_single_context(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1983, in _exec_single_context
    self._handle_dbapi_exception(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 2352, in _handle_dbapi_exception
    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1964, in _exec_single_context
    self.dialect.do_execute(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\default.py", line 942, in do_execute
    cursor.execute(statement, parameters)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\aiomysql.py", line 97, in execute
    return self.await_(self._execute_async(operation, parameters))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 132, in await_only
    return current.parent.switch(awaitable)  # type: ignore[no-any-return,attr-defined] # noqa: E501
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 196, in greenlet_spawn
    value = await result
            ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\aiomysql.py", line 106, in _execute_async
    result = await self._cursor.execute(operation, parameters)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\cursors.py", line 239, in execute
    await self._query(query)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\cursors.py", line 457, in _query
    await conn.query(q)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 469, in query
    await self._read_query_result(unbuffered=unbuffered)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 683, in _read_query_result
    await result.read()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 1164, in read
    first_packet = await self.connection._read_packet()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 652, in _read_packet
    packet.raise_for_error()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\protocol.py", line 219, in raise_for_error
    err.raise_mysql_exception(self._data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\err.py", line 150, in raise_mysql_exception
    raise errorclass(errno, errval)
sqlalchemy.exc.ProgrammingError: (pymysql.err.ProgrammingError) (1146, "Table 'vwed_task.vwed_taskrecord' doesn't exist")
[SQL: SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))]
[parameters: (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)]
(Background on this error at: https://sqlalche.me/e/20/f405)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\lifespan\on.py", line 86, in main
    await app(scope, self.receive, self.send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 29, in __call__
    return await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\applications.py", line 112, in __call__
    await self.middleware_stack(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\errors.py", line 152, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\base.py", line 100, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\cors.py", line 77, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\exceptions.py", line 48, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 714, in __call__
    await self.middleware_stack(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 723, in app
    await self.lifespan(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 692, in lifespan
    async with self.lifespan_context(app) as maybe_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 133, in merged_lifespan
    async with original_context(app) as maybe_original_state:
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
  File "D:\jsw_code\project\VWED_task\app.py", line 44, in lifespan
    await scheduler.start(worker_count=settings.TASK_SCHEDULER_MIN_WORKER_COUNT)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 173, in start
    await self._restore_pending_tasks()
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 223, in _restore_pending_tasks
    pending_tasks = await self.persistence_manager.load_pending_tasks()
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_persistence.py", line 194, in load_pending_tasks
    logger.error(f"加载待处理任务异常: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:07:17,969 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:07:17,969 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:07:17,970 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:07:17,970 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-28 18:07:17,972 - services.enhanced_scheduler.task_scheduler - ERROR - 检查僵尸任务异常: (pymysql.err.ProgrammingError) (1146, "Table 'vwed_task.vwed_taskrecord' doesn't exist")
[SQL: SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s]
[parameters: (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 7, 17, 957773))]
(Background on this error at: https://sqlalche.me/e/20/f405)
Traceback (most recent call last):
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1964, in _exec_single_context
    self.dialect.do_execute(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\default.py", line 942, in do_execute
    cursor.execute(statement, parameters)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\aiomysql.py", line 97, in execute
    return self.await_(self._execute_async(operation, parameters))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 132, in await_only
    return current.parent.switch(awaitable)  # type: ignore[no-any-return,attr-defined] # noqa: E501
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 196, in greenlet_spawn
    value = await result
            ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\aiomysql.py", line 106, in _execute_async
    result = await self._cursor.execute(operation, parameters)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\cursors.py", line 239, in execute
    await self._query(query)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\cursors.py", line 457, in _query
    await conn.query(q)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 469, in query
    await self._read_query_result(unbuffered=unbuffered)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 683, in _read_query_result
    await result.read()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 1164, in read
    first_packet = await self.connection._read_packet()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 652, in _read_packet
    packet.raise_for_error()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\protocol.py", line 219, in raise_for_error
    err.raise_mysql_exception(self._data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\err.py", line 150, in raise_mysql_exception
    raise errorclass(errno, errval)
pymysql.err.ProgrammingError: (1146, "Table 'vwed_task.vwed_taskrecord' doesn't exist")

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 946, in _check_zombie_tasks
    result = await session.execute(query)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\ext\asyncio\session.py", line 463, in execute
    result = await greenlet_spawn(
             ^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 201, in greenlet_spawn
    result = context.throw(*sys.exc_info())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\orm\session.py", line 2365, in execute
    return self._execute_internal(
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\orm\session.py", line 2251, in _execute_internal
    result: Result[Any] = compile_state_cls.orm_execute_statement(
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\orm\context.py", line 306, in orm_execute_statement
    result = conn.execute(
             ^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1416, in execute
    return meth(
           ^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\elements.py", line 523, in _execute_on_connection
    return connection._execute_clauseelement(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1638, in _execute_clauseelement
    ret = self._execute_context(
          ^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1843, in _execute_context
    return self._exec_single_context(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1983, in _exec_single_context
    self._handle_dbapi_exception(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 2352, in _handle_dbapi_exception
    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1964, in _exec_single_context
    self.dialect.do_execute(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\default.py", line 942, in do_execute
    cursor.execute(statement, parameters)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\aiomysql.py", line 97, in execute
    return self.await_(self._execute_async(operation, parameters))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 132, in await_only
    return current.parent.switch(awaitable)  # type: ignore[no-any-return,attr-defined] # noqa: E501
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 196, in greenlet_spawn
    value = await result
            ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\aiomysql.py", line 106, in _execute_async
    result = await self._cursor.execute(operation, parameters)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\cursors.py", line 239, in execute
    await self._query(query)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\cursors.py", line 457, in _query
    await conn.query(q)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 469, in query
    await self._read_query_result(unbuffered=unbuffered)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 683, in _read_query_result
    await result.read()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 1164, in read
    first_packet = await self.connection._read_packet()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 652, in _read_packet
    packet.raise_for_error()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\protocol.py", line 219, in raise_for_error
    err.raise_mysql_exception(self._data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\err.py", line 150, in raise_mysql_exception
    raise errorclass(errno, errval)
sqlalchemy.exc.ProgrammingError: (pymysql.err.ProgrammingError) (1146, "Table 'vwed_task.vwed_taskrecord' doesn't exist")
[SQL: SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s]
[parameters: (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 7, 17, 957773))]
(Background on this error at: https://sqlalche.me/e/20/f405)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 915, in _monitor
    await self._check_zombie_tasks()
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 966, in _check_zombie_tasks
    logger.error(f"检查僵尸任务异常: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:08:17,959 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:08:17,960 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:08:17,960 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:08:17,960 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:08:17,961 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:08:17,961 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:08:17,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:08:17,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:08:17,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:08:17,961 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:08:17,962 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:08:17,962 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 8, 17, 960289))
2025-04-28 18:08:17,962 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:08:17,962 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:08:17,963 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:08:17,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:08:17,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:08:17,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:08:17,963 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:08:17,963 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:08:17,963 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:08:17,965 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-28 18:08:17,965 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:08:17,965 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:08:17,965 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:08:17,965 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:08:17,965 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:08:17,965 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:08:17,966 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:08:17,966 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:08:17,966 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:08:17,966 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:08:17,966 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:08:17,972 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:08:17,973 - services.enhanced_scheduler.task_scheduler - ERROR - 检查僵尸任务异常: (pymysql.err.ProgrammingError) (1146, "Table 'vwed_task.vwed_taskrecord' doesn't exist")
[SQL: SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s]
[parameters: (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 8, 17, 960289))]
(Background on this error at: https://sqlalche.me/e/20/f405)
Traceback (most recent call last):
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1964, in _exec_single_context
    self.dialect.do_execute(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\default.py", line 942, in do_execute
    cursor.execute(statement, parameters)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\aiomysql.py", line 97, in execute
    return self.await_(self._execute_async(operation, parameters))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 132, in await_only
    return current.parent.switch(awaitable)  # type: ignore[no-any-return,attr-defined] # noqa: E501
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 196, in greenlet_spawn
    value = await result
            ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\aiomysql.py", line 106, in _execute_async
    result = await self._cursor.execute(operation, parameters)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\cursors.py", line 239, in execute
    await self._query(query)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\cursors.py", line 457, in _query
    await conn.query(q)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 469, in query
    await self._read_query_result(unbuffered=unbuffered)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 683, in _read_query_result
    await result.read()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 1164, in read
    first_packet = await self.connection._read_packet()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 652, in _read_packet
    packet.raise_for_error()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\protocol.py", line 219, in raise_for_error
    err.raise_mysql_exception(self._data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\err.py", line 150, in raise_mysql_exception
    raise errorclass(errno, errval)
pymysql.err.ProgrammingError: (1146, "Table 'vwed_task.vwed_taskrecord' doesn't exist")

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 946, in _check_zombie_tasks
    result = await session.execute(query)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\ext\asyncio\session.py", line 463, in execute
    result = await greenlet_spawn(
             ^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 201, in greenlet_spawn
    result = context.throw(*sys.exc_info())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\orm\session.py", line 2365, in execute
    return self._execute_internal(
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\orm\session.py", line 2251, in _execute_internal
    result: Result[Any] = compile_state_cls.orm_execute_statement(
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\orm\context.py", line 306, in orm_execute_statement
    result = conn.execute(
             ^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1416, in execute
    return meth(
           ^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\sql\elements.py", line 523, in _execute_on_connection
    return connection._execute_clauseelement(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1638, in _execute_clauseelement
    ret = self._execute_context(
          ^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1843, in _execute_context
    return self._exec_single_context(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1983, in _exec_single_context
    self._handle_dbapi_exception(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 2352, in _handle_dbapi_exception
    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\base.py", line 1964, in _exec_single_context
    self.dialect.do_execute(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\engine\default.py", line 942, in do_execute
    cursor.execute(statement, parameters)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\aiomysql.py", line 97, in execute
    return self.await_(self._execute_async(operation, parameters))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 132, in await_only
    return current.parent.switch(awaitable)  # type: ignore[no-any-return,attr-defined] # noqa: E501
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 196, in greenlet_spawn
    value = await result
            ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\sqlalchemy\dialects\mysql\aiomysql.py", line 106, in _execute_async
    result = await self._cursor.execute(operation, parameters)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\cursors.py", line 239, in execute
    await self._query(query)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\cursors.py", line 457, in _query
    await conn.query(q)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 469, in query
    await self._read_query_result(unbuffered=unbuffered)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 683, in _read_query_result
    await result.read()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 1164, in read
    first_packet = await self.connection._read_packet()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiomysql\connection.py", line 652, in _read_packet
    packet.raise_for_error()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\protocol.py", line 219, in raise_for_error
    err.raise_mysql_exception(self._data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pymysql\err.py", line 150, in raise_mysql_exception
    raise errorclass(errno, errval)
sqlalchemy.exc.ProgrammingError: (pymysql.err.ProgrammingError) (1146, "Table 'vwed_task.vwed_taskrecord' doesn't exist")
[SQL: SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s]
[parameters: (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 8, 17, 960289))]
(Background on this error at: https://sqlalche.me/e/20/f405)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 915, in _monitor
    await self._check_zombie_tasks()
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 966, in _check_zombie_tasks
    logger.error(f"检查僵尸任务异常: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:09:07,675 - app - INFO - 应用程序关闭中...
2025-04-28 18:09:07,675 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:09:07,675 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:09:07,675 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:09:07,675 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:09:07,676 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:09:07,676 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:09:07,676 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:09:07,676 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:09:07,677 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:09:07,677 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:09:07,677 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:09:07,678 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:09:07,678 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:09:07,678 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:09:07,678 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:09:07,679 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:09:07,679 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:09:07,679 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:09:07,679 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:09:07,679 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:09:07,680 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:09:07,680 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:09:07,680 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:09:07,680 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:09:07,680 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:09:07,681 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:09:07,681 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:09:07,681 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:09:07,681 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:09:07,682 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:09:07,682 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:09:07,682 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:12:04,557 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:12:04,620 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:12:04,621 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:12:05,296 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:12:05,351 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:12:05,352 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:12:05,416 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:12:05,465 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:12:05,508 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:12:05,511 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:12:05,512 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:12:05,513 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:12:05,513 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:12:05,513 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:12:05,514 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:12:05,514 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:12:05,515 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:12:05,515 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:12:05,516 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:12:05,516 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:12:05,517 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:12:05,517 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:12:05,518 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:12:05,518 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:12:05,518 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:12:05,519 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:12:05,519 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:12:05,519 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:12:05,520 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:12:05,520 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:12:05,521 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:12:05,521 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:12:05,522 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:12:05,522 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:12:05,522 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:12:05,523 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:12:05,523 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:12:05,524 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:12:05,526 - sqlalchemy.engine.Engine - INFO - 
CREATE TABLE vwed_taskdef (
	id VARCHAR(255) NOT NULL COMMENT '任务定义唯一标识', 
	label VARCHAR(255) COMMENT '任务名称标签', 
	created_by VARCHAR(255) COMMENT '创建用户ID', 
	version INTEGER COMMENT '任务版本号', 
	detail LONGTEXT COMMENT '任务详细定义（JSON格式，包含输入参数、根块配置等）', 
	template_name VARCHAR(255) COMMENT '所使用的模板名称', 
	period INTEGER NOT NULL COMMENT '周期时间（毫秒）', 
	periodic_task INTEGER NOT NULL COMMENT '是否为周期任务', 
	status INTEGER COMMENT '任务状态', 
	if_enable INTEGER NOT NULL COMMENT '是否启用', 
	delay INTEGER NOT NULL COMMENT '延迟时间（毫秒）', 
	release_sites BIT(1) COMMENT '释放站点', 
	remark VARCHAR(255) COMMENT '备注', 
	tenant_id VARCHAR(255) NOT NULL COMMENT '租户ID，用于多租户隔离', 
	map_id VARCHAR(255) NOT NULL COMMENT '地图ID', 
	user_token VARCHAR(500) COMMENT '用户token值，每次请求需要用到的认证信息', 
	created_at DATETIME(6) COMMENT '创建时间', 
	updated_at DATETIME(6) COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)ENGINE=InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_general_ci


2025-04-28 18:12:05,527 - sqlalchemy.engine.Engine - INFO - [no key 0.00148s] {}
2025-04-28 18:12:05,568 - sqlalchemy.engine.Engine - INFO - CREATE INDEX idx_vwed_taskdef_template_name ON vwed_taskdef (template_name)
2025-04-28 18:12:05,569 - sqlalchemy.engine.Engine - INFO - [no key 0.00055s] {}
2025-04-28 18:12:05,606 - sqlalchemy.engine.Engine - INFO - CREATE INDEX idx_vwed_taskdef_created_at ON vwed_taskdef (created_at)
2025-04-28 18:12:05,606 - sqlalchemy.engine.Engine - INFO - [no key 0.00046s] {}
2025-04-28 18:12:05,630 - sqlalchemy.engine.Engine - INFO - CREATE INDEX idx_vwed_taskdef_label ON vwed_taskdef (label)
2025-04-28 18:12:05,631 - sqlalchemy.engine.Engine - INFO - [no key 0.00051s] {}
2025-04-28 18:12:05,660 - sqlalchemy.engine.Engine - INFO - CREATE INDEX idx_vwed_taskdef_if_enable ON vwed_taskdef (if_enable)
2025-04-28 18:12:05,661 - sqlalchemy.engine.Engine - INFO - [no key 0.00052s] {}
2025-04-28 18:12:05,687 - sqlalchemy.engine.Engine - INFO - CREATE INDEX idx_vwed_taskdef_periodic_task ON vwed_taskdef (periodic_task)
2025-04-28 18:12:05,688 - sqlalchemy.engine.Engine - INFO - [no key 0.00039s] {}
2025-04-28 18:12:05,714 - sqlalchemy.engine.Engine - INFO - CREATE INDEX idx_vwed_taskdef_tenant_id ON vwed_taskdef (tenant_id)
2025-04-28 18:12:05,714 - sqlalchemy.engine.Engine - INFO - [no key 0.00036s] {}
2025-04-28 18:12:05,742 - sqlalchemy.engine.Engine - INFO - CREATE INDEX idx_vwed_taskdef_map_id ON vwed_taskdef (map_id)
2025-04-28 18:12:05,743 - sqlalchemy.engine.Engine - INFO - [no key 0.00037s] {}
2025-04-28 18:12:05,769 - sqlalchemy.engine.Engine - INFO - 
CREATE TABLE vwed_taskrecord (
	id VARCHAR(255) NOT NULL COMMENT '记录ID', 
	def_id VARCHAR(255) COMMENT '对应的任务定义ID', 
	def_label VARCHAR(150) COMMENT '任务标签', 
	def_version INTEGER COMMENT '任务定义版本', 
	ended_on DATETIME(6) COMMENT '结束时间', 
	ended_reason LONGTEXT COMMENT '结束原因', 
	status INTEGER COMMENT '任务状态（1000: 运行成功, 1001: 进行中, 1002: 队列中, 2000: 失败, 2001: 取消,2002: 暂停）', 
	input_params LONGTEXT COMMENT '输入参数', 
	path TEXT COMMENT '执行路径（记录AGV移动路径）', 
	agv_id VARCHAR(150) COMMENT '执行任务的AGV设备ID', 
	parent_task_record_id VARCHAR(255) COMMENT '父任务记录ID', 
	root_task_record_id VARCHAR(255) COMMENT '根任务记录ID', 
	state_description VARCHAR(255) COMMENT '状态描述', 
	executor_time INTEGER COMMENT '执行时间', 
	first_executor_time DATETIME(6) COMMENT '首次执行时间', 
	if_have_child_task BIT(1) COMMENT '是否有子任务', 
	periodic_task INTEGER NOT NULL COMMENT '是否为周期任务', 
	priority INTEGER NOT NULL COMMENT '优先级', 
	root_block_state_id VARCHAR(255) COMMENT '根块状态ID', 
	work_stations VARCHAR(255) COMMENT '工作站', 
	work_types VARCHAR(255) COMMENT '工作类型', 
	task_def_detail LONGTEXT COMMENT '任务定义详情', 
	variables LONGTEXT COMMENT '变量信息', 
	call_work_station VARCHAR(255) COMMENT '调用工作站', 
	call_work_type VARCHAR(255) COMMENT '调用工作类型', 
	source_type INTEGER NOT NULL COMMENT '任务来源类型（1: 系统调度, 2:  呼叫机, 3: 第三方系统, 4: 手持电脑）', 
	source_system VARCHAR(100) NOT NULL COMMENT '来源系统标识（如：WMS、MES等系统编号）', 
	source_user VARCHAR(100) COMMENT '下达任务的用户ID或账号', 
	source_device VARCHAR(255) NOT NULL COMMENT '下达任务的硬件设备标识（设备ID、MAC地址等）', 
	source_ip VARCHAR(50) COMMENT '下达任务的IP地址', 
	source_time DATETIME(6) NOT NULL COMMENT '任务下达时间', 
	source_client_info TEXT COMMENT '客户端设备信息（用户代理、浏览器、操作系统等）', 
	source_remarks TEXT COMMENT '任务来源备注信息', 
	allow_restart_same_location BOOL COMMENT '运行状态时相同地址是否可再次启动该任务', 
	created_at DATETIME(6) COMMENT '创建时间', 
	updated_at DATETIME(6) COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)ENGINE=InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_general_ci


2025-04-28 18:12:05,769 - sqlalchemy.engine.Engine - INFO - [no key 0.00040s] {}
2025-04-28 18:12:05,802 - sqlalchemy.engine.Engine - INFO - CREATE INDEX idx_vwed_taskrecord_agv_id ON vwed_taskrecord (agv_id)
2025-04-28 18:12:05,802 - sqlalchemy.engine.Engine - INFO - [no key 0.00046s] {}
2025-04-28 18:12:05,857 - sqlalchemy.engine.Engine - INFO - CREATE INDEX idx_vwed_taskrecord_status ON vwed_taskrecord (status)
2025-04-28 18:12:05,858 - sqlalchemy.engine.Engine - INFO - [no key 0.00060s] {}
2025-04-28 18:12:05,923 - sqlalchemy.engine.Engine - INFO - CREATE INDEX idx_vwed_taskrecord_parent_id ON vwed_taskrecord (parent_task_record_id)
2025-04-28 18:12:05,923 - sqlalchemy.engine.Engine - INFO - [no key 0.00048s] {}
2025-04-28 18:12:05,992 - sqlalchemy.engine.Engine - INFO - CREATE INDEX idx_vwed_taskrecord_root_id ON vwed_taskrecord (root_task_record_id)
2025-04-28 18:12:05,992 - sqlalchemy.engine.Engine - INFO - [no key 0.00068s] {}
2025-04-28 18:12:06,042 - sqlalchemy.engine.Engine - INFO - CREATE INDEX idx_vwed_taskrecord_source_time ON vwed_taskrecord (source_time)
2025-04-28 18:12:06,042 - sqlalchemy.engine.Engine - INFO - [no key 0.00040s] {}
2025-04-28 18:12:06,072 - sqlalchemy.engine.Engine - INFO - CREATE INDEX idx_vwed_taskrecord_created_at ON vwed_taskrecord (created_at)
2025-04-28 18:12:06,072 - sqlalchemy.engine.Engine - INFO - [no key 0.00032s] {}
2025-04-28 18:12:06,098 - sqlalchemy.engine.Engine - INFO - CREATE INDEX idx_vwed_taskrecord_priority ON vwed_taskrecord (priority)
2025-04-28 18:12:06,098 - sqlalchemy.engine.Engine - INFO - [no key 0.00029s] {}
2025-04-28 18:12:06,125 - sqlalchemy.engine.Engine - INFO - CREATE INDEX idx_vwed_taskrecord_def_id ON vwed_taskrecord (def_id)
2025-04-28 18:12:06,126 - sqlalchemy.engine.Engine - INFO - [no key 0.00067s] {}
2025-04-28 18:12:06,153 - sqlalchemy.engine.Engine - INFO - 
CREATE TABLE vwed_tasklog (
	id VARCHAR(255) NOT NULL COMMENT '日志记录ID', 
	level INTEGER COMMENT '日志级别（1: 信息, 3: 错误等）', 
	message LONGTEXT COMMENT '日志消息内容', 
	task_block_id INTEGER COMMENT '任务块ID', 
	task_id VARCHAR(255) COMMENT '对应的任务定义ID', 
	task_record_id VARCHAR(255) COMMENT '对应的任务执行记录ID', 
	created_at DATETIME(6) COMMENT '创建时间', 
	updated_at DATETIME(6) COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)ENGINE=InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_general_ci


2025-04-28 18:12:06,153 - sqlalchemy.engine.Engine - INFO - [no key 0.00028s] {}
2025-04-28 18:12:06,185 - sqlalchemy.engine.Engine - INFO - CREATE INDEX idx_vwed_tasklog_level ON vwed_tasklog (level)
2025-04-28 18:12:06,185 - sqlalchemy.engine.Engine - INFO - [no key 0.00031s] {}
2025-04-28 18:12:06,209 - sqlalchemy.engine.Engine - INFO - CREATE INDEX idx_vwed_tasklog_task_id ON vwed_tasklog (task_id)
2025-04-28 18:12:06,209 - sqlalchemy.engine.Engine - INFO - [no key 0.00025s] {}
2025-04-28 18:12:06,233 - sqlalchemy.engine.Engine - INFO - CREATE INDEX idx_vwed_tasklog_task_record_id ON vwed_tasklog (task_record_id)
2025-04-28 18:12:06,234 - sqlalchemy.engine.Engine - INFO - [no key 0.00053s] {}
2025-04-28 18:12:06,258 - sqlalchemy.engine.Engine - INFO - CREATE INDEX idx_vwed_tasklog_created_at ON vwed_tasklog (created_at)
2025-04-28 18:12:06,258 - sqlalchemy.engine.Engine - INFO - [no key 0.00048s] {}
2025-04-28 18:12:06,285 - sqlalchemy.engine.Engine - INFO - 
CREATE TABLE vwed_blockrecord (
	id VARCHAR(255) NOT NULL COMMENT '记录ID', 
	block_name VARCHAR(255) COMMENT '块名称', 
	block_id VARCHAR(255) COMMENT '块ID', 
	block_config_id VARCHAR(255) COMMENT '块配置ID', 
	block_input_params LONGTEXT COMMENT '块输入参数', 
	block_input_params_value LONGTEXT COMMENT '块输入参数值', 
	block_out_params_value LONGTEXT COMMENT '块输出参数值', 
	block_internal_variables LONGTEXT COMMENT '块内部变量', 
	block_execute_name VARCHAR(255) COMMENT '块执行名称', 
	task_id VARCHAR(255) COMMENT '关联的任务定义ID', 
	task_record_id VARCHAR(255) COMMENT '关联的任务记录ID', 
	started_on DATETIME(6) COMMENT '开始时间', 
	ended_on DATETIME(6) COMMENT '结束时间', 
	ended_reason LONGTEXT COMMENT '结束原因', 
	status INTEGER COMMENT '块执行状态, 1000: 执行成功, 1001: 执行中, 1002: 未执行, 2000: 执行失败, 2002: 取消', 
	ctrl_status INTEGER COMMENT '控制状态', 
	input_params LONGTEXT COMMENT '输入参数', 
	internal_variables LONGTEXT COMMENT '内部变量', 
	output_params LONGTEXT COMMENT '输出参数', 
	version INTEGER COMMENT '版本号', 
	remark LONGTEXT COMMENT '备注', 
	created_at DATETIME(6) COMMENT '创建时间', 
	updated_at DATETIME(6) COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)ENGINE=InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_general_ci


2025-04-28 18:12:06,286 - sqlalchemy.engine.Engine - INFO - [no key 0.00095s] {}
2025-04-28 18:12:06,327 - sqlalchemy.engine.Engine - INFO - CREATE INDEX idx_vwed_blockrecord_status ON vwed_blockrecord (status)
2025-04-28 18:12:06,327 - sqlalchemy.engine.Engine - INFO - [no key 0.00030s] {}
2025-04-28 18:12:06,353 - sqlalchemy.engine.Engine - INFO - CREATE INDEX idx_vwed_blockrecord_task_record_id ON vwed_blockrecord (task_record_id)
2025-04-28 18:12:06,353 - sqlalchemy.engine.Engine - INFO - [no key 0.00033s] {}
2025-04-28 18:12:06,392 - sqlalchemy.engine.Engine - INFO - CREATE INDEX idx_vwed_blockrecord_block_id ON vwed_blockrecord (block_id)
2025-04-28 18:12:06,392 - sqlalchemy.engine.Engine - INFO - [no key 0.00030s] {}
2025-04-28 18:12:06,418 - sqlalchemy.engine.Engine - INFO - CREATE INDEX idx_vwed_blockrecord_created_at ON vwed_blockrecord (created_at)
2025-04-28 18:12:06,418 - sqlalchemy.engine.Engine - INFO - [no key 0.00043s] {}
2025-04-28 18:12:06,446 - sqlalchemy.engine.Engine - INFO - CREATE INDEX idx_vwed_blockrecord_task_id ON vwed_blockrecord (task_id)
2025-04-28 18:12:06,447 - sqlalchemy.engine.Engine - INFO - [no key 0.00052s] {}
2025-04-28 18:12:06,478 - sqlalchemy.engine.Engine - INFO - 
CREATE TABLE vwed_tasktemplate (
	id VARCHAR(255) NOT NULL COMMENT '模板ID', 
	template_name VARCHAR(255) NOT NULL COMMENT '模板名称', 
	template_description VARCHAR(255) NOT NULL COMMENT '模板描述', 
	template_if_enable INTEGER NOT NULL COMMENT '是否启用', 
	template_dir VARCHAR(255) COMMENT '模板目录', 
	created_at DATETIME(6) COMMENT '创建时间', 
	updated_at DATETIME(6) COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)ENGINE=InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_general_ci


2025-04-28 18:12:06,478 - sqlalchemy.engine.Engine - INFO - [no key 0.00047s] {}
2025-04-28 18:12:06,511 - sqlalchemy.engine.Engine - INFO - 
CREATE TABLE vwed_datacache (
	id VARCHAR(255) NOT NULL COMMENT '缓存ID', 
	data LONGTEXT COMMENT '缓存数据（JSON格式）', 
	created_at DATETIME(6) COMMENT '创建时间', 
	updated_at DATETIME(6) COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)ENGINE=InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_general_ci


2025-04-28 18:12:06,511 - sqlalchemy.engine.Engine - INFO - [no key 0.00044s] {}
2025-04-28 18:12:06,545 - sqlalchemy.engine.Engine - INFO - 
CREATE TABLE vwed_datacachesplit (
	id VARCHAR(255) NOT NULL COMMENT '缓存记录ID', 
	data_key LONGTEXT NOT NULL COMMENT '数据键名', 
	data_value LONGTEXT COMMENT '数据值', 
	created_at DATETIME(6) COMMENT '创建时间', 
	updated_at DATETIME(6) COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)ENGINE=InnoDB ROW_FORMAT=Dynamic CHARSET=utf8mb4 COLLATE utf8mb4_bin


2025-04-28 18:12:06,546 - sqlalchemy.engine.Engine - INFO - [no key 0.00047s] {}
2025-04-28 18:12:06,578 - sqlalchemy.engine.Engine - INFO - CREATE INDEX `dataKeyIndex` ON vwed_datacachesplit (data_key(768)) USING btree
2025-04-28 18:12:06,578 - sqlalchemy.engine.Engine - INFO - [no key 0.00027s] {}
2025-04-28 18:12:06,605 - sqlalchemy.engine.Engine - INFO - 
CREATE TABLE vwed_script (
	id VARCHAR(255) NOT NULL COMMENT '脚本唯一标识', 
	name VARCHAR(255) NOT NULL COMMENT '脚本名称', 
	folder_path VARCHAR(255) COMMENT '脚本所在目录路径', 
	file_name VARCHAR(255) NOT NULL COMMENT '脚本文件名', 
	description VARCHAR(500) COMMENT '脚本功能描述', 
	code LONGTEXT NOT NULL COMMENT '脚本代码内容', 
	version INTEGER NOT NULL COMMENT '当前版本号', 
	status INTEGER NOT NULL COMMENT '状态(1:启用, 0:禁用)', 
	is_public BIT(1) NOT NULL COMMENT '是否公开', 
	tags VARCHAR(255) COMMENT '标签，用于分类查询', 
	created_by VARCHAR(255) COMMENT '创建者', 
	created_on DATETIME COMMENT '创建时间', 
	updated_by VARCHAR(255) COMMENT '最后更新者', 
	updated_on DATETIME COMMENT '最后更新时间', 
	test_params LONGTEXT COMMENT '测试参数(JSON格式)', 
	created_at DATETIME(6) COMMENT '创建时间', 
	updated_at DATETIME(6) COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)ENGINE=InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_general_ci


2025-04-28 18:12:06,606 - sqlalchemy.engine.Engine - INFO - [no key 0.00094s] {}
2025-04-28 18:12:06,638 - sqlalchemy.engine.Engine - INFO - 
CREATE TABLE modbus_config (
	id VARCHAR(255) NOT NULL COMMENT '配置记录ID', 
	name VARCHAR(255) NOT NULL COMMENT '配置名称', 
	ip VARCHAR(50) NOT NULL COMMENT '设备IP地址', 
	port INTEGER NOT NULL COMMENT '通信端口号', 
	slave_id INTEGER NOT NULL COMMENT '从站ID', 
	address_type VARCHAR(10) NOT NULL COMMENT '地址类型', 
	address_number INTEGER NOT NULL COMMENT '地址编号', 
	task_id VARCHAR(255) COMMENT '任务ID', 
	target_value INTEGER COMMENT '目标值', 
	remark VARCHAR(255) COMMENT '备注', 
	create_date DATETIME COMMENT '创建时间', 
	update_date DATETIME COMMENT '更新时间', 
	status INTEGER COMMENT '状态（1:启用, 0:禁用）', 
	tenant_id VARCHAR(255) COMMENT '租户ID', 
	created_at DATETIME(6) COMMENT '创建时间', 
	updated_at DATETIME(6) COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id)
)ENGINE=InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_general_ci


2025-04-28 18:12:06,639 - sqlalchemy.engine.Engine - INFO - [no key 0.00047s] {}
2025-04-28 18:12:06,672 - sqlalchemy.engine.Engine - INFO - 
CREATE TABLE vwed_script_version (
	id VARCHAR(255) NOT NULL COMMENT '版本记录ID', 
	script_id VARCHAR(255) NOT NULL COMMENT '关联的脚本ID', 
	version INTEGER NOT NULL COMMENT '版本号', 
	code LONGTEXT NOT NULL COMMENT '该版本代码', 
	change_log TEXT COMMENT '版本变更说明', 
	created_by VARCHAR(255) COMMENT '创建者', 
	created_on DATETIME COMMENT '创建时间', 
	created_at DATETIME(6) COMMENT '创建时间', 
	updated_at DATETIME(6) COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id), 
	CONSTRAINT vwed_script_version_ibfk_1 FOREIGN KEY(script_id) REFERENCES vwed_script (id)
)ENGINE=InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_general_ci


2025-04-28 18:12:06,673 - sqlalchemy.engine.Engine - INFO - [no key 0.00051s] {}
2025-04-28 18:12:06,715 - sqlalchemy.engine.Engine - INFO - 
CREATE TABLE vwed_script_log (
	id VARCHAR(255) NOT NULL COMMENT '日志ID', 
	script_id VARCHAR(255) NOT NULL COMMENT '关联的脚本ID', 
	version INTEGER NOT NULL COMMENT '使用的脚本版本', 
	task_record_id VARCHAR(255) COMMENT '关联的任务记录ID', 
	block_record_id VARCHAR(255) COMMENT '关联的任务块记录ID', 
	input_params LONGTEXT COMMENT '输入参数(JSON格式)', 
	output_result LONGTEXT COMMENT '输出结果(JSON格式)', 
	status INTEGER COMMENT '执行状态(1:成功, 0:失败)', 
	error_message TEXT COMMENT '错误信息', 
	execution_time INTEGER COMMENT '执行耗时(毫秒)', 
	started_on DATETIME COMMENT '开始时间', 
	ended_on DATETIME COMMENT '结束时间', 
	created_at DATETIME(6) COMMENT '创建时间', 
	updated_at DATETIME(6) COMMENT '更新时间', 
	is_deleted BOOL COMMENT '是否删除（软删除标记）', 
	PRIMARY KEY (id), 
	FOREIGN KEY(script_id) REFERENCES vwed_script (id)
)ENGINE=InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_general_ci


2025-04-28 18:12:06,715 - sqlalchemy.engine.Engine - INFO - [no key 0.00051s] {}
2025-04-28 18:12:06,755 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:12:06,756 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:12:07,102 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:12:07,102 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:12:07,103 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:12:07,104 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:12:07,104 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:12:07,105 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:12:07,105 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:12:07,105 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:12:07,105 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:12:07,106 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:12:07,106 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:12:07,106 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:12:07,107 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:12:07,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:12:07,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:12:07,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:12:07,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:12:07,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:12:07,108 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:12:07,108 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:12:07,109 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:12:07,110 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:12:07,110 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:12:07,111 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:12:07,111 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:12:07,111 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:12:07,111 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:12:07,111 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:12:07,120 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:12:07,120 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:12:07,121 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:12:07,122 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:12:07,122 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:12:07,123 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:12:07,123 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:12:07,123 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:12:07,124 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:12:07,125 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:12:07,136 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:12:07,140 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:12:07,140 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:12:07,140 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:12:07,140 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:12:07,140 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:12:07,141 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:12:07,142 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:12:07,142 - sqlalchemy.engine.Engine - INFO - [generated in 0.00071s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 12, 7, 123138))
2025-04-28 18:12:07,144 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:13:07,138 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:13:07,139 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:13:07,140 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:13:07,140 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:13:07,142 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:13:07,142 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:13:07,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:13:07,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:13:07,143 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:13:07,143 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:13:07,143 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:13:07,143 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 13, 7, 139264))
2025-04-28 18:13:07,144 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:13:07,145 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:13:07,145 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:13:07,145 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:13:07,145 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:13:07,145 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:13:07,146 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:13:07,146 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:13:07,146 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:13:07,147 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:13:07,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:13:07,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:13:07,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:13:07,147 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:13:07,147 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:13:07,147 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:13:07,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:13:07,148 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:13:07,148 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:13:07,148 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:13:07,148 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:13:07,154 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:13:39,291 - app - INFO - 应用程序关闭中...
2025-04-28 18:13:39,291 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:13:39,291 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:13:39,292 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:13:39,292 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:13:39,292 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:13:39,292 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:13:39,292 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:13:39,292 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:13:39,293 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:13:39,293 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:13:39,293 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:13:39,293 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:13:39,294 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:13:39,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:13:39,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:13:39,294 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:13:39,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:13:39,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:13:39,294 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:13:39,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:13:39,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:13:39,294 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:13:39,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:13:39,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:13:39,294 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:13:39,294 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:13:39,295 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:13:39,295 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:13:39,295 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:13:39,295 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:13:39,295 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:13:39,295 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:13:54,666 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:13:54,725 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:13:54,726 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:13:55,462 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:13:55,522 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:13:55,523 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:13:55,587 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:13:55,634 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:13:55,660 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:13:55,662 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:13:55,662 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:13:55,662 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:13:55,663 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:13:55,663 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:13:55,664 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:13:55,664 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:13:55,665 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:13:55,665 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:13:55,667 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:13:55,668 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:13:55,669 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:13:55,670 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:13:55,671 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:13:55,671 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:13:55,672 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:13:55,672 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:13:55,674 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:13:55,674 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:13:55,675 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:13:55,675 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:13:55,676 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:13:55,676 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:13:55,677 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:13:55,677 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:13:55,678 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:13:55,678 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:13:55,679 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:13:55,679 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:13:55,680 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:13:55,681 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:13:56,021 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:13:56,022 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:13:56,022 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:13:56,022 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:13:56,022 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:13:56,023 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:13:56,023 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:13:56,024 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:13:56,024 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:13:56,024 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:13:56,024 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:13:56,024 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:13:56,025 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:13:56,025 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:13:56,026 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:13:56,026 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:13:56,026 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:13:56,026 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:13:56,026 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:13:56,026 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:13:56,027 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:13:56,028 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:13:56,028 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:13:56,029 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:13:56,029 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:13:56,029 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:13:56,029 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:13:56,030 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:13:56,039 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:13:56,039 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:13:56,040 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:13:56,040 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:13:56,041 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:13:56,042 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:13:56,042 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:13:56,043 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:13:56,044 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:13:56,045 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:13:56,046 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:13:56,046 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:13:56,047 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:13:56,047 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:13:56,047 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:13:56,048 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:13:56,049 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:13:56,050 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:13:56,050 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 13, 56, 42497))
2025-04-28 18:13:56,051 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:14:01,775 - app - INFO - 请求开始: POST /api/vwed-task/create 来自 127.0.0.1
2025-04-28 18:14:01,781 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:14:01,785 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id AS vwed_taskdef_id, vwed_taskdef.label AS vwed_taskdef_label, vwed_taskdef.created_by AS vwed_taskdef_created_by, vwed_taskdef.version AS vwed_taskdef_version, vwed_taskdef.detail AS vwed_taskdef_detail, vwed_taskdef.template_name AS vwed_taskdef_template_name, vwed_taskdef.period AS vwed_taskdef_period, vwed_taskdef.periodic_task AS vwed_taskdef_periodic_task, vwed_taskdef.status AS vwed_taskdef_status, vwed_taskdef.if_enable AS vwed_taskdef_if_enable, vwed_taskdef.delay AS vwed_taskdef_delay, vwed_taskdef.release_sites AS vwed_taskdef_release_sites, vwed_taskdef.remark AS vwed_taskdef_remark, vwed_taskdef.tenant_id AS vwed_taskdef_tenant_id, vwed_taskdef.map_id AS vwed_taskdef_map_id, vwed_taskdef.user_token AS vwed_taskdef_user_token, vwed_taskdef.created_at AS vwed_taskdef_created_at, vwed_taskdef.updated_at AS vwed_taskdef_updated_at, vwed_taskdef.is_deleted AS vwed_taskdef_is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.label = %(label_1)s 
 LIMIT %(param_1)s
2025-04-28 18:14:01,785 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] {'label_1': '第二级子任务', 'param_1': 1}
2025-04-28 18:14:01,791 - sqlalchemy.engine.Engine - INFO - SELECT vwed_tasktemplate.id AS vwed_tasktemplate_id, vwed_tasktemplate.template_name AS vwed_tasktemplate_template_name, vwed_tasktemplate.template_description AS vwed_tasktemplate_template_description, vwed_tasktemplate.template_if_enable AS vwed_tasktemplate_template_if_enable, vwed_tasktemplate.template_dir AS vwed_tasktemplate_template_dir, vwed_tasktemplate.created_at AS vwed_tasktemplate_created_at, vwed_tasktemplate.updated_at AS vwed_tasktemplate_updated_at, vwed_tasktemplate.is_deleted AS vwed_tasktemplate_is_deleted 
FROM vwed_tasktemplate 
WHERE vwed_tasktemplate.template_if_enable = %(template_if_enable_1)s 
 LIMIT %(param_1)s
2025-04-28 18:14:01,793 - sqlalchemy.engine.Engine - INFO - [generated in 0.00201s] {'template_if_enable_1': 1, 'param_1': 1}
2025-04-28 18:14:01,795 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-28 18:14:01,800 - services.task_service - ERROR - 创建任务失败: 没有可用的任务模板，请先启用一个模板
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\task_service.py", line 179, in create_task
    raise ValueError("没有可用的任务模板，请先启用一个模板")
ValueError: 没有可用的任务模板，请先启用一个模板
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\base.py", line 140, in coro
    await self.app(scope, receive_or_disconnect, send_no_error)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\cors.py", line 85, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 714, in __call__
    await self.middleware_stack(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 734, in app
    await route.handle(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 288, in handle
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 76, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 73, in app
    response = await f(request)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 301, in app
    raw_response = await run_endpoint_function(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 212, in run_endpoint_function
    return await dependant.call(**values)
  File "D:\jsw_code\project\VWED_task\routes\task_api.py", line 103, in create_task
    task = TaskService.create_task(
  File "D:\jsw_code\project\VWED_task\services\task_service.py", line 228, in create_task
    logger.error(f"创建任务失败: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:14:01,801 - app.task_api - ERROR - 创建任务失败: 创建任务失败: 没有可用的任务模板，请先启用一个模板
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\task_service.py", line 179, in create_task
    raise ValueError("没有可用的任务模板，请先启用一个模板")
ValueError: 没有可用的任务模板，请先启用一个模板

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\routes\task_api.py", line 103, in create_task
    task = TaskService.create_task(
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\jsw_code\project\VWED_task\services\task_service.py", line 229, in create_task
    raise Exception(f"创建任务失败: {str(e)}")
Exception: 创建任务失败: 没有可用的任务模板，请先启用一个模板
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\base.py", line 140, in coro
    await self.app(scope, receive_or_disconnect, send_no_error)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\cors.py", line 85, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 714, in __call__
    await self.middleware_stack(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 734, in app
    await route.handle(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 288, in handle
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 76, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 73, in app
    response = await f(request)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 301, in app
    raw_response = await run_endpoint_function(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 212, in run_endpoint_function
    return await dependant.call(**values)
  File "D:\jsw_code\project\VWED_task\routes\task_api.py", line 128, in create_task
    logger.error(f"创建任务失败: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:14:01,805 - app - INFO - 请求完成: POST /api/vwed-task/create 状态码: 500 耗时: 0.0304秒
2025-04-28 18:14:45,596 - app - INFO - 请求开始: POST /api/vwed-task/create 来自 127.0.0.1
2025-04-28 18:14:45,600 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:14:45,603 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id AS vwed_taskdef_id, vwed_taskdef.label AS vwed_taskdef_label, vwed_taskdef.created_by AS vwed_taskdef_created_by, vwed_taskdef.version AS vwed_taskdef_version, vwed_taskdef.detail AS vwed_taskdef_detail, vwed_taskdef.template_name AS vwed_taskdef_template_name, vwed_taskdef.period AS vwed_taskdef_period, vwed_taskdef.periodic_task AS vwed_taskdef_periodic_task, vwed_taskdef.status AS vwed_taskdef_status, vwed_taskdef.if_enable AS vwed_taskdef_if_enable, vwed_taskdef.delay AS vwed_taskdef_delay, vwed_taskdef.release_sites AS vwed_taskdef_release_sites, vwed_taskdef.remark AS vwed_taskdef_remark, vwed_taskdef.tenant_id AS vwed_taskdef_tenant_id, vwed_taskdef.map_id AS vwed_taskdef_map_id, vwed_taskdef.user_token AS vwed_taskdef_user_token, vwed_taskdef.created_at AS vwed_taskdef_created_at, vwed_taskdef.updated_at AS vwed_taskdef_updated_at, vwed_taskdef.is_deleted AS vwed_taskdef_is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.label = %(label_1)s 
 LIMIT %(param_1)s
2025-04-28 18:14:45,604 - sqlalchemy.engine.Engine - INFO - [cached since 43.82s ago] {'label_1': '第二级子任务', 'param_1': 1}
2025-04-28 18:14:45,605 - sqlalchemy.engine.Engine - INFO - SELECT vwed_tasktemplate.id AS vwed_tasktemplate_id, vwed_tasktemplate.template_name AS vwed_tasktemplate_template_name, vwed_tasktemplate.template_description AS vwed_tasktemplate_template_description, vwed_tasktemplate.template_if_enable AS vwed_tasktemplate_template_if_enable, vwed_tasktemplate.template_dir AS vwed_tasktemplate_template_dir, vwed_tasktemplate.created_at AS vwed_tasktemplate_created_at, vwed_tasktemplate.updated_at AS vwed_tasktemplate_updated_at, vwed_tasktemplate.is_deleted AS vwed_tasktemplate_is_deleted 
FROM vwed_tasktemplate 
WHERE vwed_tasktemplate.template_if_enable = %(template_if_enable_1)s 
 LIMIT %(param_1)s
2025-04-28 18:14:45,605 - sqlalchemy.engine.Engine - INFO - [cached since 43.81s ago] {'template_if_enable_1': 1, 'param_1': 1}
2025-04-28 18:14:45,607 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskdef (id, label, created_by, version, detail, template_name, period, periodic_task, status, if_enable, delay, release_sites, remark, tenant_id, map_id, user_token, created_at, updated_at, is_deleted) VALUES (%(id)s, %(label)s, %(created_by)s, %(version)s, %(detail)s, %(template_name)s, %(period)s, %(periodic_task)s, %(status)s, %(if_enable)s, %(delay)s, %(release_sites)s, %(remark)s, %(tenant_id)s, %(map_id)s, %(user_token)s, %(created_at)s, %(updated_at)s, %(is_deleted)s)
2025-04-28 18:14:45,607 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] {'id': '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'label': '第二级子任务', 'created_by': None, 'version': 1, 'detail': '{"inputParams": [], "outputParams": [], "rootBlock": null}', 'template_name': 'user_name', 'period': 3000, 'periodic_task': <PeriodicTaskStatus.NON_PERIODIC: 0>, 'status': <TaskStatusEnum.PENDING: 0>, 'if_enable': <EnableStatus.DISABLED: 0>, 'delay': 3000, 'release_sites': True, 'remark': '子任务测试', 'tenant_id': 'default', 'map_id': 'abk1235kgnbaoj2j4l6j6h3hw', 'user_token': None, 'created_at': datetime.datetime(2025, 4, 28, 18, 14, 45, 607178), 'updated_at': datetime.datetime(2025, 4, 28, 18, 14, 45, 607178), 'is_deleted': 0}
2025-04-28 18:14:45,608 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:14:45,614 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:14:45,615 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %(pk_1)s
2025-04-28 18:14:45,615 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] {'pk_1': '3273c7cb-b4bb-47df-9d47-17f96bc401fc'}
2025-04-28 18:14:45,616 - sqlalchemy.engine.Engine - INFO - ROLLBACK
2025-04-28 18:14:45,618 - app - INFO - 请求完成: POST /api/vwed-task/create 状态码: 200 耗时: 0.0216秒
2025-04-28 18:14:56,027 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:14:56,028 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:14:56,028 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:14:56,029 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:14:56,030 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:14:56,032 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:14:56,033 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:14:56,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:14:56,036 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:14:56,037 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:14:56,039 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:14:56,040 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:14:56,043 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:14:56,043 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:14:56,045 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:14:56,046 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:14:56,047 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:14:56,048 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:14:56,052 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:14:56,054 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:14:56,058 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:14:56,059 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:14:56,059 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:14:56,060 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:14:56,061 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:14:56,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:14:56,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:14:56,068 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:14:56,069 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:14:56,075 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:14:56,079 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:14:56,081 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 14, 56, 60461))
2025-04-28 18:14:56,087 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:14:56,090 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:15:29,138 - app - INFO - 请求开始: POST /api/vwed-task-edit/save 来自 127.0.0.1
2025-04-28 18:15:29,141 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:15:29,141 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:15:29,142 - sqlalchemy.engine.Engine - INFO - [generated in 0.00061s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:15:29,144 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:15:29,145 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:15:29,145 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:15:29,145 - sqlalchemy.engine.Engine - INFO - [cached since 0.003661s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:15:29,147 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET version=%s, detail=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-28 18:15:29,147 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (2, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (425 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', datetime.datetime(2025, 4, 28, 18, 15, 29, 147595), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-28 18:15:29,148 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:15:29,156 - app - INFO - 请求完成: POST /api/vwed-task-edit/save 状态码: 200 耗时: 0.0180秒
2025-04-28 18:15:56,047 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:15:56,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:15:56,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:15:56,048 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:15:56,048 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:15:56,048 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:15:56,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:15:56,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:15:56,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:15:56,049 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:15:56,049 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:15:56,049 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:15:56,049 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:15:56,049 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:15:56,049 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:15:56,049 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:15:56,049 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:15:56,055 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:15:56,112 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:15:56,113 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:15:56,114 - sqlalchemy.engine.Engine - INFO - [cached since 120.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 15, 56, 111349))
2025-04-28 18:15:56,115 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:16:11,065 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:16:11,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:16:11,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:16:11,068 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:16:11,069 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:16:11,069 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:16:11,071 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:16:11,071 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:16:11,071 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:16:11,071 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:16:11,072 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:16:11,072 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:16:56,096 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:16:56,097 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:16:56,097 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:16:56,097 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:16:56,098 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:16:56,098 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:16:56,098 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:16:56,098 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:16:56,098 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:16:56,099 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:16:56,099 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:16:56,099 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:16:56,099 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:16:56,100 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:16:56,101 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:16:56,101 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:16:56,101 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:16:56,110 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:16:56,111 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:16:56,112 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:16:56,113 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 16, 56, 111554))
2025-04-28 18:16:56,114 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:16:56,327 - app - INFO - 应用程序关闭中...
2025-04-28 18:16:56,327 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:16:56,328 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:16:56,328 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:16:56,328 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:16:56,328 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:16:56,328 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:16:56,329 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:16:56,329 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:16:56,329 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:16:56,329 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:16:56,330 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:16:56,330 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:16:56,330 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:16:56,330 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:16:56,330 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:16:56,330 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 3
2025-04-28 18:16:56,330 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:16:56,330 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:16:56,331 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 2
2025-04-28 18:16:56,331 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:16:56,331 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:16:56,331 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 1
2025-04-28 18:16:56,331 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:16:56,331 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:16:56,331 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 0
2025-04-28 18:16:56,331 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:16:56,331 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:16:56,331 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:16:56,331 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:16:56,332 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:16:56,332 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:16:56,332 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:16:57,395 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:16:57,455 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:16:57,456 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:16:57,516 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:16:57,564 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:16:57,587 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:16:57,613 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:16:57,613 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:16:57,614 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:16:57,614 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:16:57,614 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:16:57,614 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:16:57,614 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:16:57,615 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:16:57,615 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:16:57,616 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:16:57,616 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:16:57,617 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:16:57,618 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:16:57,618 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:16:57,619 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:16:57,620 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:16:57,620 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:16:57,621 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:16:57,621 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:16:57,622 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:16:57,622 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:16:57,622 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:16:57,623 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:16:57,623 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:16:57,624 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:16:57,624 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:16:57,625 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:16:57,625 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:16:57,626 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:16:57,626 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:16:57,627 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:16:57,975 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:16:57,976 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:16:57,976 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:16:57,976 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:16:57,976 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:16:57,976 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:16:57,976 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:16:57,976 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:16:57,977 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:16:57,977 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:16:57,977 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:16:57,977 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:16:57,977 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:16:57,978 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:16:57,978 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:16:57,978 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:16:57,979 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:16:57,982 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:16:57,983 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:16:57,984 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:16:57,986 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:16:57,986 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:16:57,991 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:16:57,991 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:16:57,996 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:16:58,002 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:16:58,003 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:16:58,004 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:16:58,014 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:16:58,015 - sqlalchemy.engine.Engine - INFO - [generated in 0.00077s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:16:58,016 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:16:58,016 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:16:58,017 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:16:58,018 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:16:58,018 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:16:58,019 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:16:58,021 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:16:58,022 - sqlalchemy.engine.Engine - INFO - [generated in 0.00077s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:16:58,023 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:16:58,024 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:16:58,024 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:16:58,024 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:16:58,025 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:16:58,025 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:16:58,025 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:16:58,026 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:16:58,026 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 16, 58, 19700))
2025-04-28 18:16:58,027 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:17:58,026 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:17:58,029 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:17:58,029 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:17:58,029 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:17:58,029 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:17:58,029 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:17:58,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:17:58,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:17:58,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:17:58,032 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:17:58,032 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:17:58,032 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:17:58,032 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:17:58,032 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:17:58,032 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 17, 58, 29125))
2025-04-28 18:17:58,033 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:17:58,033 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:17:58,033 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:17:58,033 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:17:58,033 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:17:58,033 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:17:58,033 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:17:58,033 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:17:58,033 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:17:58,033 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:17:58,033 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:17:58,033 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:17:58,033 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:17:58,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:17:58,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:17:58,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:17:58,034 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:17:58,034 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:17:58,042 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:18:54,064 - app - INFO - 应用程序关闭中...
2025-04-28 18:18:54,064 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:18:54,065 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:18:54,065 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:18:54,065 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:18:54,065 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:18:54,065 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:18:54,065 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:18:54,065 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:18:54,065 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:18:54,065 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:18:54,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:18:54,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:18:54,067 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:18:54,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:18:54,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:18:54,067 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:18:54,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:18:54,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:18:54,067 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:18:54,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:18:54,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:18:54,068 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:18:54,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:18:54,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:18:54,068 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:18:54,069 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:18:54,069 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:18:54,069 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:18:54,069 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:18:54,069 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:18:54,070 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:18:54,070 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:18:55,276 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:18:55,333 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:18:55,339 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:18:55,401 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:18:55,447 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:18:55,479 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:18:55,482 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:18:55,484 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:18:55,484 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:18:55,484 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:18:55,484 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:18:55,484 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:18:55,486 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:18:55,486 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:18:55,486 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:18:55,488 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:18:55,488 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:18:55,489 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:18:55,489 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:18:55,491 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:18:55,491 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:18:55,492 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:18:55,493 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:18:55,494 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:18:55,494 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:18:55,495 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:18:55,495 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:18:55,496 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:18:55,496 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:18:55,497 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:18:55,497 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:18:55,497 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:18:55,498 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:18:55,499 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:18:55,499 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:18:55,500 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:18:55,501 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:18:55,851 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:18:55,851 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:18:55,851 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:18:55,851 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:18:55,851 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:18:55,851 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:18:55,851 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:18:55,852 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:18:55,852 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:18:55,852 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:18:55,852 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:18:55,852 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:18:55,852 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:18:55,853 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:18:55,853 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:18:55,854 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:18:55,854 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:18:55,854 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:18:55,854 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:18:55,854 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:18:55,855 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:18:55,856 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:18:55,856 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:18:55,856 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:18:55,857 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:18:55,857 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:18:55,857 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:18:55,858 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:18:55,867 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:18:55,867 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:18:55,868 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:18:55,869 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:18:55,869 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:18:55,869 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:18:55,870 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:18:55,870 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:18:55,872 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:18:55,872 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:18:55,890 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:18:55,892 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:18:55,892 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:18:55,892 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:18:55,892 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:18:55,893 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:18:55,893 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:18:55,894 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:18:55,895 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 18, 55, 870618))
2025-04-28 18:18:55,896 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:19:55,905 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:19:55,906 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:19:55,906 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:19:55,907 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:19:55,907 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:19:55,907 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:19:55,907 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:19:55,907 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:19:55,907 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 19, 55, 906325))
2025-04-28 18:19:55,907 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:19:55,907 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:19:55,908 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:19:55,908 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:19:55,909 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:19:55,909 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:19:55,909 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:19:55,909 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:19:55,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:19:55,911 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:19:55,912 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:19:55,912 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:19:55,912 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:19:55,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:19:55,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:19:55,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:19:55,912 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:19:55,913 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:19:55,913 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:19:55,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:19:55,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:19:55,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:19:55,913 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:19:55,913 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:19:55,921 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:19:56,043 - app - INFO - 应用程序关闭中...
2025-04-28 18:19:56,043 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:19:56,045 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:19:56,045 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:19:56,045 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:19:56,046 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:19:56,046 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:19:56,046 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:19:56,047 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:19:56,047 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:19:56,048 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:19:56,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:19:56,049 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:19:56,049 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:19:56,050 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:19:56,050 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:19:56,050 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:19:56,050 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:19:56,051 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:19:56,051 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:19:56,051 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:19:56,051 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:19:56,051 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:19:56,051 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:19:56,052 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:19:56,052 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:19:56,052 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:19:56,052 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:19:56,053 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:19:56,053 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:19:56,053 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:19:56,055 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:19:56,055 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:19:57,244 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:19:57,303 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:19:57,305 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:19:57,365 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:19:57,413 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:19:57,447 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:19:57,471 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:19:57,472 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:19:57,473 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:19:57,473 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:19:57,474 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:19:57,474 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:19:57,475 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:19:57,475 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:19:57,476 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:19:57,477 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:19:57,477 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:19:57,479 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:19:57,479 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:19:57,480 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:19:57,480 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:19:57,482 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:19:57,482 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:19:57,483 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:19:57,483 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:19:57,484 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:19:57,484 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:19:57,484 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:19:57,485 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:19:57,485 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:19:57,486 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:19:57,487 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:19:57,487 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:19:57,488 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:19:57,488 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:19:57,489 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:19:57,489 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:19:57,838 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:19:57,838 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:19:57,839 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:19:57,839 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:19:57,839 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:19:57,839 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:19:57,839 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:19:57,839 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:19:57,839 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:19:57,839 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:19:57,840 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:19:57,840 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:19:57,840 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:19:57,841 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:19:57,841 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:19:57,841 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:19:57,841 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:19:57,841 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:19:57,841 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:19:57,841 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:19:57,843 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:19:57,843 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:19:57,843 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:19:57,844 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:19:57,844 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:19:57,845 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:19:57,845 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:19:57,846 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:19:57,854 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:19:57,858 - sqlalchemy.engine.Engine - INFO - [generated in 0.00393s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:19:57,863 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:19:57,863 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:19:57,866 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:19:57,867 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:19:57,868 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:19:57,870 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:19:57,875 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:19:57,877 - sqlalchemy.engine.Engine - INFO - [generated in 0.00171s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:19:57,894 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:19:57,896 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:19:57,896 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:19:57,897 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:19:57,899 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:19:57,901 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:19:57,906 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:19:57,909 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:19:57,911 - sqlalchemy.engine.Engine - INFO - [generated in 0.00288s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 19, 57, 870983))
2025-04-28 18:19:57,916 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:20:57,855 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:20:57,857 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:20:57,857 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:20:57,857 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:20:57,858 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:20:57,860 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:20:57,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:20:57,864 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:20:57,866 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:20:57,866 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:20:57,868 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:20:57,870 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:20:57,871 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:20:57,872 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:20:57,874 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:20:57,876 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:20:57,878 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:20:57,880 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:20:57,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:20:57,882 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:20:57,883 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:20:57,885 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:20:57,885 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:20:57,886 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:20:57,887 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:20:57,887 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:20:57,887 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:20:57,889 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:20:57,891 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:20:57,898 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:20:57,918 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:20:57,920 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:20:57,925 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 20, 57, 918228))
2025-04-28 18:20:57,929 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:21:57,947 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:21:57,949 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:21:57,951 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:21:57,951 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:21:57,951 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:21:57,951 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:21:57,951 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:21:57,951 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:21:57,953 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:21:57,953 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:21:57,953 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:21:57,953 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 21, 57, 949823))
2025-04-28 18:21:57,955 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:21:57,955 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:21:57,955 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:21:57,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:21:57,956 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:21:57,956 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:21:57,956 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:21:57,956 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:21:57,956 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:21:57,957 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:21:57,958 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:21:57,958 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:21:57,958 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:21:57,958 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:21:57,958 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:21:57,958 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:21:57,959 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:21:57,959 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:21:57,959 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:21:57,959 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:21:57,959 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:21:57,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:21:58,121 - app - INFO - 应用程序关闭中...
2025-04-28 18:21:58,122 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:21:58,122 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:21:58,122 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:21:58,122 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:21:58,124 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:21:58,124 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:21:58,124 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:21:58,124 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:21:58,124 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:21:58,124 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:21:58,124 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:21:58,124 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:21:58,126 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:21:58,127 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:21:58,131 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:21:58,131 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:21:58,131 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:21:58,131 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:21:58,131 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:21:58,131 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:21:58,132 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:21:58,132 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:21:58,133 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:21:58,133 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:21:58,134 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:21:58,134 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:21:58,136 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:21:58,136 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:21:58,136 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:21:58,136 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:21:58,137 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:21:58,137 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:21:59,308 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:21:59,367 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:21:59,372 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:21:59,437 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:21:59,484 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:21:59,512 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:21:59,536 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:21:59,537 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:21:59,538 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:21:59,539 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:21:59,539 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:21:59,540 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:21:59,540 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:21:59,541 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:21:59,541 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:21:59,543 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:21:59,544 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:21:59,546 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:21:59,547 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:21:59,548 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:21:59,548 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:21:59,549 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:21:59,550 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:21:59,551 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:21:59,552 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:21:59,553 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:21:59,553 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:21:59,554 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:21:59,555 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:21:59,556 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:21:59,556 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:21:59,557 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:21:59,557 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:21:59,558 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:21:59,558 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:21:59,559 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:21:59,559 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:21:59,915 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:21:59,915 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:21:59,916 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:21:59,916 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:21:59,916 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:21:59,916 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:21:59,916 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:21:59,916 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:21:59,917 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:21:59,917 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:21:59,917 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:21:59,917 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:21:59,917 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:21:59,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:21:59,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:21:59,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:21:59,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:21:59,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:21:59,919 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:21:59,919 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:21:59,920 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:21:59,920 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:21:59,921 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:21:59,921 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:21:59,921 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:21:59,922 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:21:59,922 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:21:59,922 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:21:59,931 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:21:59,931 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:21:59,932 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:21:59,932 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:21:59,932 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:21:59,932 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:21:59,934 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:21:59,934 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:21:59,936 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:21:59,936 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:21:59,937 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:21:59,938 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:21:59,938 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:21:59,938 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:21:59,938 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:21:59,939 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:21:59,939 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:21:59,940 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:21:59,941 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 21, 59, 934428))
2025-04-28 18:21:59,941 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:22:59,942 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:22:59,945 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:22:59,945 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:22:59,946 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:22:59,947 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:22:59,947 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:22:59,947 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:22:59,948 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:22:59,948 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:22:59,948 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:22:59,949 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:22:59,950 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 22, 59, 945163))
2025-04-28 18:22:59,951 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:22:59,951 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:22:59,951 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:22:59,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:22:59,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:22:59,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:22:59,952 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:22:59,952 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:22:59,953 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:22:59,954 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:22:59,954 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:22:59,954 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:22:59,954 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:22:59,955 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:22:59,955 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:22:59,955 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:22:59,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:22:59,956 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:22:59,956 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:22:59,956 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:22:59,956 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:22:59,966 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:23:59,970 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:23:59,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:23:59,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:23:59,971 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:23:59,971 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:23:59,971 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:23:59,971 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:23:59,971 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:23:59,971 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 23, 59, 969295))
2025-04-28 18:23:59,972 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:23:59,972 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:23:59,972 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:23:59,972 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:23:59,972 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:23:59,972 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:23:59,973 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:23:59,973 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:23:59,973 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:23:59,973 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:23:59,973 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:23:59,973 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:23:59,973 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:23:59,973 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:23:59,973 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:23:59,973 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:23:59,973 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:23:59,973 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:23:59,973 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:23:59,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:23:59,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:23:59,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:23:59,975 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:23:59,975 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:23:59,982 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:24:59,964 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:24:59,967 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:24:59,969 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 24, 59, 963913))
2025-04-28 18:24:59,972 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:25:14,957 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:25:14,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:25:14,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:25:14,964 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:25:14,965 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:25:14,966 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:25:14,968 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:25:14,971 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:25:14,973 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:25:14,974 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:25:14,975 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:25:14,979 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:25:14,981 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:25:14,983 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:25:14,984 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:25:14,984 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:25:14,985 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:25:14,986 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:25:14,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:25:14,990 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:25:14,990 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:25:14,992 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:25:14,994 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:25:14,994 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:25:14,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:25:14,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:25:14,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:25:14,996 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:25:14,997 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:25:15,002 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:25:59,979 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:25:59,982 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:25:59,982 - sqlalchemy.engine.Engine - INFO - [cached since 240s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 25, 59, 978293))
2025-04-28 18:25:59,983 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:26:15,000 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:26:15,001 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:26:15,002 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:26:15,002 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:26:15,002 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:26:15,002 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:26:15,003 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:26:15,003 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:26:15,003 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:26:15,003 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:26:15,003 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:26:15,003 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:26:15,004 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:26:15,004 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:26:15,004 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:26:15,004 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:26:15,004 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:26:15,004 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:26:15,004 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:26:15,005 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:26:15,005 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:26:15,005 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:26:15,006 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:26:15,006 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:26:15,007 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:26:15,007 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:26:15,007 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:26:15,007 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:26:15,007 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:26:15,016 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:27:00,004 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:27:00,005 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:27:00,006 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 27, 0, 3836))
2025-04-28 18:27:00,008 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:27:15,012 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:27:15,013 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:27:15,014 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:27:15,014 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:27:15,014 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:27:15,014 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:27:15,014 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:27:15,016 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:27:15,016 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:27:15,016 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:27:15,016 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:27:15,016 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:27:15,016 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:27:15,016 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:27:15,016 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:27:15,018 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:27:15,019 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:27:15,019 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:27:15,021 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:27:15,021 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:27:15,021 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:27:15,021 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:27:15,021 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:27:15,021 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:27:15,022 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:27:15,022 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:27:15,022 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:27:15,024 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:27:15,025 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:27:15,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:28:00,014 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:28:00,015 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:28:00,016 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 28, 0, 13587))
2025-04-28 18:28:00,017 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:28:15,062 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:28:15,062 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:28:15,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:28:15,064 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:28:15,064 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:28:15,064 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:28:15,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:28:15,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:28:15,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:28:15,066 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:28:15,067 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:28:15,067 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:28:15,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:28:15,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:28:15,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:28:15,068 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:28:15,068 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:28:15,068 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:28:15,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:28:15,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:28:15,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:28:15,069 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:28:15,069 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:28:15,069 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:28:15,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:28:15,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:28:15,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:28:15,069 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:28:15,069 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:28:15,075 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:29:00,018 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:29:00,020 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:29:00,022 - sqlalchemy.engine.Engine - INFO - [cached since 420.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 29, 0, 17497))
2025-04-28 18:29:00,024 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:29:00,235 - app - INFO - 应用程序关闭中...
2025-04-28 18:29:00,236 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:29:00,237 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:29:00,237 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:29:00,237 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:29:00,237 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:29:00,238 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:29:00,238 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:29:00,238 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:29:00,238 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:29:00,238 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:29:00,240 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:29:00,240 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:29:00,240 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:29:00,240 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:29:00,240 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:29:00,241 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:29:00,241 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:29:00,241 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:29:00,241 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:29:00,241 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:29:00,241 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:29:00,241 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:29:00,241 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:29:00,241 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:29:00,241 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:29:00,241 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:29:00,242 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:29:00,242 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:29:00,242 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:29:00,243 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:29:00,243 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:29:00,243 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:29:01,445 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:29:01,504 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:29:01,507 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:29:01,564 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:29:01,609 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:29:01,631 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:29:01,657 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:29:01,657 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:29:01,658 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:29:01,658 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:29:01,658 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:29:01,658 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:29:01,660 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:29:01,660 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:29:01,661 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:29:01,662 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:29:01,663 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:29:01,664 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:29:01,664 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:29:01,665 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:29:01,665 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:29:01,666 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:29:01,666 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:29:01,667 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:29:01,667 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:29:01,668 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:29:01,668 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:29:01,669 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:29:01,669 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:29:01,670 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:29:01,670 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:29:01,671 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:29:01,671 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:29:01,672 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:29:01,672 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:29:01,673 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:29:01,674 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:29:02,035 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:29:02,035 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:29:02,035 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:29:02,035 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:29:02,035 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:29:02,035 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:29:02,035 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:29:02,036 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:29:02,036 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:29:02,036 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:29:02,036 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:29:02,037 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:29:02,039 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:29:02,042 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:29:02,042 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:29:02,042 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:29:02,042 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:29:02,042 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:29:02,043 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:29:02,043 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:29:02,044 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:29:02,044 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:29:02,044 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:29:02,045 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:29:02,045 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:29:02,046 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:29:02,046 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:29:02,046 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:29:02,055 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:29:02,055 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:29:02,056 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:29:02,056 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:29:02,057 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:29:02,057 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:29:02,057 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:29:02,058 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:29:02,059 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:29:02,060 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:29:02,060 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:29:02,062 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:29:02,062 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:29:02,062 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:29:02,063 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:29:02,063 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:29:02,063 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:29:02,064 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:29:02,064 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 29, 2, 58792))
2025-04-28 18:29:02,065 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:30:02,083 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:30:02,084 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:30:02,084 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:30:02,084 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:30:02,086 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:30:02,088 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:30:02,089 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:30:02,089 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:30:02,089 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 30, 2, 83018))
2025-04-28 18:30:02,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:30:02,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:30:02,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:30:02,090 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:30:02,090 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:30:02,090 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:30:02,090 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:30:02,090 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:30:02,090 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:30:02,091 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:30:02,091 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:30:02,091 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:30:02,091 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:30:02,091 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:30:02,091 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:30:02,092 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:30:02,092 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:30:02,092 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:30:02,092 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:30:02,092 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:30:02,092 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:30:02,092 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:30:02,092 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:30:02,092 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:30:02,099 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:30:02,239 - app - INFO - 应用程序关闭中...
2025-04-28 18:30:02,239 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:30:02,240 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:30:02,240 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:30:02,240 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:30:02,240 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:30:02,240 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:30:02,241 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:30:02,241 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:30:02,241 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:30:02,241 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:30:02,241 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:30:02,241 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:30:02,241 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:30:02,241 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:30:02,242 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:30:02,242 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:30:02,242 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:30:02,242 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:30:02,242 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:30:02,242 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:30:02,242 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:30:02,242 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:30:02,242 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:30:02,242 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:30:02,242 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:30:02,242 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:30:02,242 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:30:02,243 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:30:02,243 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:30:02,243 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:30:02,243 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:30:02,243 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:30:03,458 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:30:03,518 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:30:03,520 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:30:03,580 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:30:03,627 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:30:03,654 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:30:03,679 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:30:03,679 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:30:03,683 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:30:03,683 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:30:03,684 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:30:03,684 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:30:03,684 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:30:03,685 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:30:03,685 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:30:03,686 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:30:03,686 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:30:03,687 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:30:03,687 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:30:03,688 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:30:03,688 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:30:03,689 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:30:03,689 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:30:03,690 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:30:03,690 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:30:03,691 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:30:03,691 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:30:03,692 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:30:03,692 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:30:03,693 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:30:03,694 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:30:03,695 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:30:03,695 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:30:03,696 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:30:03,696 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:30:03,697 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:30:03,697 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:30:04,047 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:30:04,047 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:30:04,047 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:30:04,047 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:30:04,048 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:30:04,048 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:30:04,048 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:30:04,048 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:30:04,048 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:30:04,048 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:30:04,048 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:30:04,049 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:30:04,049 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:30:04,050 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:30:04,050 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:30:04,050 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:30:04,050 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:30:04,050 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:30:04,050 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:30:04,051 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:30:04,052 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:30:04,052 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:30:04,052 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:30:04,053 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:30:04,053 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:30:04,054 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:30:04,054 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:30:04,055 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:30:04,064 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:30:04,064 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:30:04,065 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:30:04,065 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:30:04,065 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:30:04,067 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:30:04,067 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:30:04,067 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:30:04,070 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:30:04,070 - sqlalchemy.engine.Engine - INFO - [generated in 0.00060s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:30:04,071 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:30:04,072 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:30:04,072 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:30:04,073 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:30:04,073 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:30:04,073 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:30:04,074 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:30:04,075 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:30:04,075 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 30, 4, 67813))
2025-04-28 18:30:04,076 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:31:04,080 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:31:04,081 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:31:04,082 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:31:04,082 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:31:04,082 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:31:04,083 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:31:04,083 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:31:04,084 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:31:04,084 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 31, 4, 79793))
2025-04-28 18:31:04,085 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:31:04,085 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:31:04,085 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:31:04,085 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:31:04,085 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:31:04,086 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:31:04,086 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:31:04,086 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:31:04,086 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:31:04,087 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:31:04,087 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:31:04,088 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:31:04,088 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:31:04,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:31:04,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:31:04,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:31:04,088 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:31:04,088 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:31:04,088 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:31:04,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:31:04,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:31:04,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:31:04,089 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:31:04,089 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:31:04,097 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:31:04,235 - app - INFO - 应用程序关闭中...
2025-04-28 18:31:04,235 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:31:04,236 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:31:04,236 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:31:04,236 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:31:04,236 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:31:04,237 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:31:04,237 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:31:04,237 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:31:04,237 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:31:04,237 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:31:04,238 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:31:04,238 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:31:04,238 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:31:04,238 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:31:04,239 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:31:04,239 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:31:04,239 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:31:04,239 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:31:04,240 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:31:04,240 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:31:04,240 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:31:04,241 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:31:04,241 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:31:04,242 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:31:04,243 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:31:04,243 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:31:04,243 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:31:04,243 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:31:04,243 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:31:04,244 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:31:04,244 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:31:04,244 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:31:05,402 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:31:05,466 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:31:05,471 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:31:05,535 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:31:05,587 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:31:05,627 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:31:05,646 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:31:05,648 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:31:05,648 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:31:05,649 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:31:05,649 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:31:05,649 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:31:05,650 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:31:05,651 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:31:05,651 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:31:05,653 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:31:05,654 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:31:05,655 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:31:05,655 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:31:05,656 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:31:05,656 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:31:05,657 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:31:05,657 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:31:05,658 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:31:05,658 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:31:05,660 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:31:05,660 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:31:05,661 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:31:05,661 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:31:05,662 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:31:05,662 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:31:05,663 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:31:05,663 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:31:05,664 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:31:05,664 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:31:05,665 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:31:05,666 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:31:06,019 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:31:06,019 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:31:06,019 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:31:06,020 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:31:06,020 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:31:06,020 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:31:06,020 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:31:06,020 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:31:06,020 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:31:06,021 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:31:06,021 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:31:06,021 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:31:06,021 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:31:06,023 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:31:06,023 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:31:06,023 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:31:06,023 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:31:06,023 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:31:06,024 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:31:06,024 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:31:06,025 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:31:06,025 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:31:06,025 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:31:06,026 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:31:06,026 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:31:06,026 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:31:06,027 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:31:06,027 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:31:06,036 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:31:06,037 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:31:06,038 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:31:06,038 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:31:06,039 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:31:06,040 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:31:06,040 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:31:06,040 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:31:06,042 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:31:06,042 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:31:06,067 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:31:06,068 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:31:06,068 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:31:06,068 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:31:06,068 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:31:06,068 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:31:06,069 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:31:06,070 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:31:06,070 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 31, 6, 40131))
2025-04-28 18:31:06,070 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:06,050 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:32:06,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:32:06,055 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:32:06,055 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:32:06,059 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:32:06,059 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:32:06,059 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:32:06,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:32:06,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:32:06,060 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:06,060 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:32:06,061 - sqlalchemy.engine.Engine - INFO - [cached since 59.99s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 32, 6, 53980))
2025-04-28 18:32:06,061 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:32:06,061 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:32:06,061 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:32:06,061 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:32:06,061 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:32:06,061 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:32:06,061 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:32:06,061 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:32:06,061 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:32:06,061 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:32:06,063 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:32:06,063 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:32:06,063 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:32:06,063 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:32:06,063 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:32:06,064 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:06,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:32:06,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:32:06,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:32:06,064 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:32:06,064 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:32:06,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:32:06,222 - app - INFO - 应用程序关闭中...
2025-04-28 18:32:06,222 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:32:06,222 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:32:06,222 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:32:06,222 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:32:06,223 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:32:06,223 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:32:06,223 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:32:06,223 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:32:06,223 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:32:06,223 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:32:06,223 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:32:06,224 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:32:06,224 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:32:06,224 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:32:06,224 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:32:06,224 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:32:06,224 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:32:06,225 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:32:06,229 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:32:06,229 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:32:06,229 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:32:06,230 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:32:06,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:32:06,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:32:06,230 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:32:06,230 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:32:06,230 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:32:06,230 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:32:06,230 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:32:06,231 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:32:06,231 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:32:06,232 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:32:07,504 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:32:07,562 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:32:07,566 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:32:07,626 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:32:07,671 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:32:07,698 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:32:07,722 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:32:07,722 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:07,723 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:32:07,723 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:07,724 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:32:07,724 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:07,725 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:07,725 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:32:07,726 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:07,727 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:32:07,727 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:07,728 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:32:07,729 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:07,729 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:32:07,730 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:07,731 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:32:07,731 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:07,733 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:32:07,734 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:07,734 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:32:07,735 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:07,735 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:32:07,736 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:07,737 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:32:07,737 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:07,738 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:32:07,739 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:07,740 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:32:07,740 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:07,741 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:07,741 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:32:08,080 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:32:08,081 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:32:08,081 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:32:08,081 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:32:08,081 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:32:08,082 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:32:08,083 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:32:08,083 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:32:08,083 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:32:08,086 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:32:08,087 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:32:08,089 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:32:08,089 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:32:08,090 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:32:08,090 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:32:08,091 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:32:08,091 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:32:08,091 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:32:08,092 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:32:08,092 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:32:08,093 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:32:08,094 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:32:08,094 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:32:08,094 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:32:08,094 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:32:08,095 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:32:08,095 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:32:08,096 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:08,106 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:32:08,106 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:32:08,107 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:32:08,108 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:08,110 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:32:08,110 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:32:08,110 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:32:08,111 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:08,112 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:32:08,112 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:32:08,113 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:08,114 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:32:08,114 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:32:08,114 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:32:08,114 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:32:08,114 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:32:08,115 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:08,115 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:32:08,116 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 32, 8, 110125))
2025-04-28 18:32:08,116 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:35,126 - app - INFO - 应用程序关闭中...
2025-04-28 18:32:35,128 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:32:35,130 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:32:35,131 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:32:35,131 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:32:35,131 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:32:35,132 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:32:35,133 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:32:35,133 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:32:35,133 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:32:35,133 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:32:35,134 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:32:35,134 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:32:35,134 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:32:35,134 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:32:35,134 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:32:35,134 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:32:35,135 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:32:35,135 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:32:35,135 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:32:35,135 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:32:35,135 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:32:35,135 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:32:35,135 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:32:35,135 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:32:35,135 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:32:35,135 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:32:35,135 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:32:35,135 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:32:35,136 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:32:35,136 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:32:35,136 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:32:35,136 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:32:36,327 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:32:36,387 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:32:36,388 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:32:36,461 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:32:36,507 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:32:36,532 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:32:36,556 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:32:36,557 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:36,557 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:32:36,557 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:36,557 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:32:36,558 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:36,558 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:36,558 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:32:36,559 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:36,560 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:32:36,560 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:36,561 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:32:36,561 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:36,562 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:32:36,562 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:36,563 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:32:36,563 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:36,564 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:32:36,564 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:36,565 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:32:36,565 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:36,566 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:32:36,566 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:36,567 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:32:36,568 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:36,568 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:32:36,569 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:36,571 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:32:36,571 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:32:36,572 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:36,573 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:32:36,917 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:32:36,918 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:32:36,918 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:32:36,918 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:32:36,919 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:32:36,919 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:32:36,919 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:32:36,919 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:32:36,920 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:32:36,920 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:32:36,920 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:32:36,920 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:32:36,921 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:32:36,922 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:32:36,922 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:32:36,923 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:32:36,923 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:32:36,923 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:32:36,923 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:32:36,923 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:32:36,946 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:32:36,947 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:32:36,947 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:32:36,947 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:32:36,947 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:32:36,948 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:32:36,948 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:32:36,948 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:36,957 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:32:36,958 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:32:36,959 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:32:36,959 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:36,959 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:32:36,959 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:32:36,959 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:32:36,961 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:36,963 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:32:36,963 - sqlalchemy.engine.Engine - INFO - [generated in 0.00053s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:32:36,964 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:36,964 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:32:36,964 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:32:36,964 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:32:36,964 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:32:36,965 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:32:36,965 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:36,966 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:32:36,966 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 32, 36, 961023))
2025-04-28 18:32:36,967 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:43,358 - app - INFO - 请求开始: POST /api/vwed-task-edit/save 来自 127.0.0.1
2025-04-28 18:32:43,360 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:43,364 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:32:43,364 - sqlalchemy.engine.Engine - INFO - [generated in 0.00078s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:32:43,366 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:43,367 - app - INFO - 请求完成: POST /api/vwed-task-edit/save 状态码: 200 耗时: 0.0090秒
2025-04-28 18:32:45,474 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-28 18:32:45,476 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:45,477 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:32:45,477 - sqlalchemy.engine.Engine - INFO - [cached since 2.113s ago] ('c0d3388a-5e03-4a7d-8f2b-ebc5a33a0e8f',)
2025-04-28 18:32:45,478 - services.task_edit_service - WARNING - 任务不存在: c0d3388a-5e03-4a7d-8f2b-ebc5a33a0e8f
2025-04-28 18:32:45,478 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:45,479 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 404 耗时: 0.0053秒
2025-04-28 18:32:56,563 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-28 18:32:56,564 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:56,564 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:32:56,564 - sqlalchemy.engine.Engine - INFO - [cached since 13.2s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:32:56,565 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:56,567 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:56,567 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:32:56,567 - sqlalchemy.engine.Engine - INFO - [cached since 13.2s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:32:56,570 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:56,570 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-28 18:32:56,571 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-28 18:32:56,571 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-28 18:32:56,572 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:56,576 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-28 18:32:56,576 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (None, datetime.datetime(2025, 4, 28, 18, 32, 56, 575346), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-28 18:32:56,577 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:56,591 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:56,591 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:32:56,591 - sqlalchemy.engine.Engine - INFO - [cached since 13.23s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:32:56,594 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:32:56,594 - sqlalchemy.engine.Engine - INFO - [generated in 0.00059s] ('31a50049-a283-4c77-9f7d-5e3bc5967832', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 2, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (425 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 28, 18, 32, 56, 570358), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 28, 18, 32, 56, 594762), datetime.datetime(2025, 4, 28, 18, 32, 56, 594762), 0)
2025-04-28 18:32:56,596 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:56,604 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:56,605 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:32:56,605 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] ('31a50049-a283-4c77-9f7d-5e3bc5967832',)
2025-04-28 18:32:56,607 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:56,607 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 31a50049-a283-4c77-9f7d-5e3bc5967832 (优先级 1) 添加到队列 0
2025-04-28 18:32:56,613 - services.enhanced_scheduler.task_scheduler - ERROR - 同步任务到主任务系统时发生错误: 1 validation error for CreateTaskRequest
vwedTaskParentId
  Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.10/v/string_type
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 440, in run_task
    sync_response = await tf_create_task(
                    ^^^^^^^^^^^^^^^^^^^^^
  File "D:\jsw_code\project\VWED_task\services\sync_service.py", line 99, in create_task
    request_data = CreateTaskRequest(
                   ^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pydantic\main.py", line 214, in __init__
    validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 1 validation error for CreateTaskRequest
vwedTaskParentId
  Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.10/v/string_type
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\base.py", line 140, in coro
    await self.app(scope, receive_or_disconnect, send_no_error)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\cors.py", line 85, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 714, in __call__
    await self.middleware_stack(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 734, in app
    await route.handle(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 288, in handle
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 76, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 73, in app
    response = await f(request)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 301, in app
    raw_response = await run_endpoint_function(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 212, in run_endpoint_function
    return await dependant.call(**values)
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 277, in run_task
    result = await TaskEditService.run_task(
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 429, in run_task
    result = await scheduler.run_task(
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 456, in run_task
    logger.error(f"同步任务到主任务系统时发生错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:32:56,616 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 31a50049-a283-4c77-9f7d-5e3bc5967832
2025-04-28 18:32:56,616 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0532秒
2025-04-28 18:32:56,667 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 31a50049-a283-4c77-9f7d-5e3bc5967832, 优先级: 1
2025-04-28 18:32:56,668 - services.execution.task_executor - DEBUG - 任务 31a50049-a283-4c77-9f7d-5e3bc5967832 设置超时时间: 3600秒
2025-04-28 18:32:56,668 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:56,672 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:32:56,674 - sqlalchemy.engine.Engine - INFO - [cached since 0.06935s ago] ('31a50049-a283-4c77-9f7d-5e3bc5967832',)
2025-04-28 18:32:56,676 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:32:56,677 - sqlalchemy.engine.Engine - INFO - [cached since 13.31s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:32:56,681 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:32:56,683 - sqlalchemy.engine.Engine - INFO - [generated in 0.00242s] (datetime.datetime(2025, 4, 28, 18, 32, 56, 680738), datetime.datetime(2025, 4, 28, 18, 32, 56, 681747), '31a50049-a283-4c77-9f7d-5e3bc5967832')
2025-04-28 18:32:56,694 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:56,710 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:56,713 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:32:56,715 - sqlalchemy.engine.Engine - INFO - [generated in 0.00201s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 32, 56, 713872), '31a50049-a283-4c77-9f7d-5e3bc5967832')
2025-04-28 18:32:56,722 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:56,731 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-28 18:32:56,731 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:56,738 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:32:56,739 - sqlalchemy.engine.Engine - INFO - [generated in 0.00222s] ('3bbac097-571c-45b2-8ebf-df2539c2e462', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '31a50049-a283-4c77-9f7d-5e3bc5967832', datetime.datetime(2025, 4, 28, 18, 32, 56, 731278), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 32, 56, 738304), datetime.datetime(2025, 4, 28, 18, 32, 56, 738304), 0)
2025-04-28 18:32:56,742 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:56,753 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:56,754 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:32:56,755 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] ('3bbac097-571c-45b2-8ebf-df2539c2e462',)
2025-04-28 18:32:56,757 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:32:56,757 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:32:56,758 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:32:56,759 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 32, 56, 758339), '3bbac097-571c-45b2-8ebf-df2539c2e462')
2025-04-28 18:32:56,760 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:56,766 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-28 18:32:56,766 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-28 18:32:56,767 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-28 18:32:56,767 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:56,768 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:32:56,768 - sqlalchemy.engine.Engine - INFO - [cached since 0.03026s ago] ('9be47917-705c-4349-a6c3-1b1813def5fe', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{"priority": "10", "vehicle": "amr1", "group": "group_amr", "keyRoute": "apt1"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '31a50049-a283-4c77-9f7d-5e3bc5967832', datetime.datetime(2025, 4, 28, 18, 32, 56, 767284), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 32, 56, 768289), datetime.datetime(2025, 4, 28, 18, 32, 56, 768289), 0)
2025-04-28 18:32:56,768 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:56,775 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 9be47917-705c-4349-a6c3-1b1813def5fe
2025-04-28 18:32:56,776 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:56,776 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:32:56,777 - sqlalchemy.engine.Engine - INFO - [cached since 0.02325s ago] ('9be47917-705c-4349-a6c3-1b1813def5fe',)
2025-04-28 18:32:56,778 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:32:56,778 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:32:56,778 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:32:56,779 - sqlalchemy.engine.Engine - INFO - [cached since 0.02083s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 32, 56, 778833), '9be47917-705c-4349-a6c3-1b1813def5fe')
2025-04-28 18:32:56,779 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:56,785 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-28 18:32:56,785 - services.sync_service - INFO - 正在为任务选择AMR: 31a50049-a283-4c77-9f7d-5e3bc5967832, 站点: apt1
2025-04-28 18:32:56,824 - services.sync_service - WARNING - 为任务选择AMR失败: 不支持POST请求方法，支持以下GET、
2025-04-28 18:32:56,824 - services.sync_service - INFO - 正在封口任务: 31a50049-a283-4c77-9f7d-5e3bc5967832
2025-04-28 18:32:56,843 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-28 18:32:56,844 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:56,844 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:32:56,845 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] ('49eeacd6-04b7-4093-b922-75866b91c115', 3, '{"success": false, "message": "选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "code": 405, "result": null, "timestamp": 1745836375888}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '31a50049-a283-4c77-9f7d-5e3bc5967832', datetime.datetime(2025, 4, 28, 18, 32, 56, 844662), datetime.datetime(2025, 4, 28, 18, 32, 56, 844662), 0)
2025-04-28 18:32:56,846 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:56,855 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:32:56,856 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:56,856 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:32:56,856 - sqlalchemy.engine.Engine - INFO - [cached since 0.1027s ago] ('9be47917-705c-4349-a6c3-1b1813def5fe',)
2025-04-28 18:32:56,858 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:32:56,858 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:32:56,859 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:32:56,859 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] (datetime.datetime(2025, 4, 28, 18, 32, 56, 858193), '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 32, 56, 859199), '9be47917-705c-4349-a6c3-1b1813def5fe')
2025-04-28 18:32:56,859 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:56,866 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:56,866 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:32:56,866 - sqlalchemy.engine.Engine - INFO - [cached since 0.02173s ago] ('61795d5f-85db-4a71-b6da-65465fdff84d', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '31a50049-a283-4c77-9f7d-5e3bc5967832', datetime.datetime(2025, 4, 28, 18, 32, 56, 866738), datetime.datetime(2025, 4, 28, 18, 32, 56, 866738), 0)
2025-04-28 18:32:56,867 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:56,874 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:56,874 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:32:56,874 - sqlalchemy.engine.Engine - INFO - [cached since 0.1206s ago] ('3bbac097-571c-45b2-8ebf-df2539c2e462',)
2025-04-28 18:32:56,875 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:32:56,875 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:32:56,876 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:32:56,876 - sqlalchemy.engine.Engine - INFO - [cached since 0.01755s ago] (datetime.datetime(2025, 4, 28, 18, 32, 56, 875758), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 32, 56, 876632), '3bbac097-571c-45b2-8ebf-df2539c2e462')
2025-04-28 18:32:56,876 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:56,883 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:32:56,887 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:32:56,888 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (datetime.datetime(2025, 4, 28, 18, 32, 56, 882612), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskStatus.FAILED: 2000>, 171, 1, datetime.datetime(2025, 4, 28, 18, 32, 56, 887955), '31a50049-a283-4c77-9f7d-5e3bc5967832')
2025-04-28 18:32:56,889 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:32:56,897 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 31a50049-a283-4c77-9f7d-5e3bc5967832, 结果: False
2025-04-28 18:33:36,961 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:33:36,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:33:36,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:33:36,964 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:33:36,964 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:33:36,964 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:33:36,965 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:33:36,965 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:33:36,965 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:33:36,966 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:33:36,967 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:33:36,967 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 33, 36, 961770))
2025-04-28 18:33:36,968 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:33:36,968 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:33:36,968 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:33:36,969 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:33:36,969 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:33:36,969 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:33:36,969 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:33:36,969 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:33:36,969 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:33:36,970 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:33:36,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:33:36,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:33:36,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:33:36,971 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:33:36,971 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:33:36,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:33:56,840 - app - INFO - 应用程序关闭中...
2025-04-28 18:33:56,841 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:33:56,841 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:33:56,841 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:33:56,841 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:33:56,841 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:33:56,841 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:33:56,842 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:33:56,842 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:33:56,842 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:33:56,842 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:33:56,842 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:33:56,843 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:33:56,843 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:33:56,843 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:33:56,843 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:33:56,843 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:33:56,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:33:56,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:33:56,844 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:33:56,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:33:56,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:33:56,844 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:33:56,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:33:56,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:33:56,844 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:33:56,845 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:33:56,845 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:33:56,845 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:33:56,845 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:33:56,845 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:33:56,845 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:33:56,846 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:33:59,043 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:33:59,102 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:33:59,103 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:33:59,769 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:33:59,827 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:33:59,827 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:33:59,888 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:33:59,935 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:33:59,947 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:33:59,948 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:33:59,948 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:33:59,949 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:33:59,949 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:33:59,949 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:33:59,949 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:33:59,950 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:33:59,950 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:33:59,950 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:33:59,951 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:33:59,951 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:33:59,952 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:33:59,953 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:33:59,954 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:33:59,954 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:33:59,955 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:33:59,955 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:33:59,956 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:33:59,956 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:33:59,957 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:33:59,957 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:33:59,958 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:33:59,958 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:33:59,959 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:33:59,959 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:33:59,960 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:33:59,961 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:33:59,961 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:33:59,962 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:33:59,962 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:33:59,962 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:34:00,313 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:34:00,314 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:34:00,316 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:34:00,316 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:34:00,316 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:34:00,316 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:34:00,316 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:34:00,316 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:34:00,316 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:34:00,317 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:34:00,318 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:34:00,318 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:34:00,318 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:34:00,319 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:34:00,319 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:34:00,319 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:34:00,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:34:00,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:34:00,320 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:34:00,320 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:34:00,328 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:34:00,329 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:34:00,329 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:34:00,330 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:34:00,330 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:34:00,330 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:34:00,330 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:34:00,331 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:34:00,339 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:34:00,339 - sqlalchemy.engine.Engine - INFO - [generated in 0.00081s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:34:00,342 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:34:00,342 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:34:00,343 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:34:00,343 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:34:00,343 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:34:00,344 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:34:00,345 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:34:00,345 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:34:00,369 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:34:00,371 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:34:00,371 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:34:00,371 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:34:00,371 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:34:00,371 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:34:00,373 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:34:00,375 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:34:00,375 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 34, 0, 343304))
2025-04-28 18:34:00,377 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:34:02,288 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-28 18:34:02,290 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:34:02,291 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:34:02,292 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:34:02,293 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:34:02,293 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:34:02,293 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:34:02,294 - sqlalchemy.engine.Engine - INFO - [cached since 0.002386s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:34:02,294 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:34:02,295 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-28 18:34:02,295 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-28 18:34:02,295 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-28 18:34:02,295 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:34:02,296 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-28 18:34:02,297 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (None, datetime.datetime(2025, 4, 28, 18, 34, 2, 296705), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-28 18:34:02,297 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:34:02,304 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:34:02,304 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:34:02,306 - sqlalchemy.engine.Engine - INFO - [cached since 0.01359s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:34:02,306 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:34:02,308 - sqlalchemy.engine.Engine - INFO - [generated in 0.00064s] ('25e8b479-8741-4848-be9e-ccb2375b0c57', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 2, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (425 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 28, 18, 34, 2, 295704), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 28, 18, 34, 2, 306967), datetime.datetime(2025, 4, 28, 18, 34, 2, 306967), 0)
2025-04-28 18:34:02,308 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:34:02,316 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:34:02,317 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:34:02,317 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] ('25e8b479-8741-4848-be9e-ccb2375b0c57',)
2025-04-28 18:34:02,318 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:34:02,318 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 25e8b479-8741-4848-be9e-ccb2375b0c57 (优先级 1) 添加到队列 0
2025-04-28 18:34:02,325 - services.enhanced_scheduler.task_scheduler - ERROR - 同步任务到主任务系统时发生错误: 1 validation error for CreateTaskRequest
vwedTaskParentId
  Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.10/v/string_type
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 441, in run_task
    sync_response = await tf_create_task(
                    ^^^^^^^^^^^^^^^^^^^^^
  File "D:\jsw_code\project\VWED_task\services\sync_service.py", line 99, in create_task
    request_data = CreateTaskRequest(
                   ^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pydantic\main.py", line 214, in __init__
    validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 1 validation error for CreateTaskRequest
vwedTaskParentId
  Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.10/v/string_type
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\base.py", line 140, in coro
    await self.app(scope, receive_or_disconnect, send_no_error)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\cors.py", line 85, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 714, in __call__
    await self.middleware_stack(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 734, in app
    await route.handle(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 288, in handle
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 76, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 73, in app
    response = await f(request)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 301, in app
    raw_response = await run_endpoint_function(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 212, in run_endpoint_function
    return await dependant.call(**values)
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 277, in run_task
    result = await TaskEditService.run_task(
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 429, in run_task
    result = await scheduler.run_task(
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 457, in run_task
    logger.error(f"同步任务到主任务系统时发生错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:34:02,326 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 25e8b479-8741-4848-be9e-ccb2375b0c57
2025-04-28 18:34:02,326 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0380秒
2025-04-28 18:34:02,389 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 25e8b479-8741-4848-be9e-ccb2375b0c57, 优先级: 1
2025-04-28 18:34:02,393 - services.execution.task_executor - DEBUG - 任务 25e8b479-8741-4848-be9e-ccb2375b0c57 设置超时时间: 3600秒
2025-04-28 18:34:02,394 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:34:02,396 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:34:02,397 - sqlalchemy.engine.Engine - INFO - [cached since 0.07982s ago] ('25e8b479-8741-4848-be9e-ccb2375b0c57',)
2025-04-28 18:34:02,398 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:34:02,402 - sqlalchemy.engine.Engine - INFO - [cached since 0.1104s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:34:02,405 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:34:02,405 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (datetime.datetime(2025, 4, 28, 18, 34, 2, 404310), datetime.datetime(2025, 4, 28, 18, 34, 2, 405312), '25e8b479-8741-4848-be9e-ccb2375b0c57')
2025-04-28 18:34:02,406 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:34:02,413 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:34:02,414 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:34:02,415 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 34, 2, 414320), '25e8b479-8741-4848-be9e-ccb2375b0c57')
2025-04-28 18:34:02,415 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:34:02,421 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-28 18:34:02,422 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:34:02,428 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:34:02,428 - sqlalchemy.engine.Engine - INFO - [generated in 0.00092s] ('b48fb546-7159-45c0-b2eb-2a60e2e4106e', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '25e8b479-8741-4848-be9e-ccb2375b0c57', datetime.datetime(2025, 4, 28, 18, 34, 2, 421311), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 34, 2, 428387), datetime.datetime(2025, 4, 28, 18, 34, 2, 428387), 0)
2025-04-28 18:34:02,429 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:34:02,439 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:34:02,440 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:34:02,442 - sqlalchemy.engine.Engine - INFO - [generated in 0.00129s] ('b48fb546-7159-45c0-b2eb-2a60e2e4106e',)
2025-04-28 18:34:02,443 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:34:02,444 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:34:02,445 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:34:02,445 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 34, 2, 445522), 'b48fb546-7159-45c0-b2eb-2a60e2e4106e')
2025-04-28 18:34:02,446 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:34:02,453 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-28 18:34:02,453 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-28 18:34:02,454 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-28 18:34:02,455 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:34:02,457 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:34:02,459 - sqlalchemy.engine.Engine - INFO - [cached since 0.03153s ago] ('c97bc45f-19e5-4306-af00-6a91a0d8b089', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{"priority": "10", "vehicle": "amr1", "group": "group_amr", "keyRoute": "apt1"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '25e8b479-8741-4848-be9e-ccb2375b0c57', datetime.datetime(2025, 4, 28, 18, 34, 2, 455415), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 34, 2, 457421), datetime.datetime(2025, 4, 28, 18, 34, 2, 457421), 0)
2025-04-28 18:34:02,460 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:34:02,468 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: c97bc45f-19e5-4306-af00-6a91a0d8b089
2025-04-28 18:34:02,468 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:34:02,469 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:34:02,470 - sqlalchemy.engine.Engine - INFO - [cached since 0.02897s ago] ('c97bc45f-19e5-4306-af00-6a91a0d8b089',)
2025-04-28 18:34:02,471 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:34:02,471 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:34:02,473 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:34:02,474 - sqlalchemy.engine.Engine - INFO - [cached since 0.0291s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 34, 2, 473027), 'c97bc45f-19e5-4306-af00-6a91a0d8b089')
2025-04-28 18:34:02,475 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:34:02,481 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-28 18:34:02,481 - services.sync_service - INFO - 正在为任务选择AMR: 25e8b479-8741-4848-be9e-ccb2375b0c57, 站点: apt1
2025-04-28 18:34:02,502 - services.sync_service - WARNING - 为任务选择AMR失败: 不支持POST请求方法，支持以下GET、
2025-04-28 18:34:02,503 - services.sync_service - INFO - 正在封口任务: 25e8b479-8741-4848-be9e-ccb2375b0c57
2025-04-28 18:34:02,537 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-28 18:34:02,538 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:34:02,539 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:34:02,539 - sqlalchemy.engine.Engine - INFO - [generated in 0.00078s] ('637f605e-f299-4e32-9f92-2b7bba536e6a', 3, '{"success": false, "message": "选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "code": 405, "result": null, "timestamp": 1745836441569}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '25e8b479-8741-4848-be9e-ccb2375b0c57', datetime.datetime(2025, 4, 28, 18, 34, 2, 539901), datetime.datetime(2025, 4, 28, 18, 34, 2, 539901), 0)
2025-04-28 18:34:02,540 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:34:02,553 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 750, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:34:02,554 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:34:02,555 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:34:02,556 - sqlalchemy.engine.Engine - INFO - [cached since 0.1157s ago] ('c97bc45f-19e5-4306-af00-6a91a0d8b089',)
2025-04-28 18:34:02,556 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:34:02,558 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:34:02,558 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:34:02,559 - sqlalchemy.engine.Engine - INFO - [generated in 0.00082s] (datetime.datetime(2025, 4, 28, 18, 34, 2, 558033), '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 34, 2, 558806), 'c97bc45f-19e5-4306-af00-6a91a0d8b089')
2025-04-28 18:34:02,560 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:34:02,568 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:34:02,568 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:34:02,571 - sqlalchemy.engine.Engine - INFO - [cached since 0.03222s ago] ('e9015717-65f1-4945-aab7-61033b0daf14', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '25e8b479-8741-4848-be9e-ccb2375b0c57', datetime.datetime(2025, 4, 28, 18, 34, 2, 568741), datetime.datetime(2025, 4, 28, 18, 34, 2, 568741), 0)
2025-04-28 18:34:02,572 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:34:02,582 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:34:02,582 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:34:02,583 - sqlalchemy.engine.Engine - INFO - [cached since 0.1424s ago] ('b48fb546-7159-45c0-b2eb-2a60e2e4106e',)
2025-04-28 18:34:02,583 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:34:02,583 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:34:02,584 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:34:02,584 - sqlalchemy.engine.Engine - INFO - [cached since 0.02543s ago] (datetime.datetime(2025, 4, 28, 18, 34, 2, 584430), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 34, 2, 584430), 'b48fb546-7159-45c0-b2eb-2a60e2e4106e')
2025-04-28 18:34:02,585 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:34:02,596 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:34:02,597 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:34:02,597 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (datetime.datetime(2025, 4, 28, 18, 34, 2, 596813), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskStatus.FAILED: 2000>, 183, 1, datetime.datetime(2025, 4, 28, 18, 34, 2, 597814), '25e8b479-8741-4848-be9e-ccb2375b0c57')
2025-04-28 18:34:02,598 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:34:02,609 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 25e8b479-8741-4848-be9e-ccb2375b0c57, 结果: False
2025-04-28 18:35:00,359 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:35:00,360 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:35:00,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:35:00,363 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:35:00,365 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:35:00,367 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:35:00,369 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:35:00,369 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:35:00,369 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:35:00,369 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:35:00,370 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:35:00,370 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:35:00,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:35:00,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:35:00,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:35:00,372 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:35:00,372 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:35:00,372 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:35:00,372 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:35:00,373 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:35:00,373 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:35:00,373 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:35:00,373 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:35:00,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:35:00,379 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:35:00,380 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:35:00,380 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 35, 0, 379163))
2025-04-28 18:35:00,381 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:35:15,386 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:35:15,387 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:35:15,387 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:35:15,388 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:35:15,389 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:35:15,389 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:36:00,396 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:36:00,397 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:36:00,398 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 36, 0, 395486))
2025-04-28 18:36:00,401 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:36:00,425 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:36:00,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:36:00,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:36:00,428 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:36:00,428 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:36:00,428 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:36:00,428 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:36:00,429 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:36:00,429 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:36:00,430 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:36:00,430 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:36:00,430 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:36:00,431 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:36:00,431 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:36:00,431 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:36:00,431 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:36:00,431 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:36:00,431 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:36:00,431 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:36:00,432 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:36:00,432 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:36:00,432 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:36:00,432 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:36:00,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:36:00,534 - app - INFO - 应用程序关闭中...
2025-04-28 18:36:00,534 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:36:00,535 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:36:00,536 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:36:00,536 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:36:00,537 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:36:00,537 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:36:00,538 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:36:00,538 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:36:00,538 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:36:00,538 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:36:00,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:36:00,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:36:00,538 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:36:00,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:36:00,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:36:00,538 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:36:00,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:36:00,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:36:00,538 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:36:00,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:36:00,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:36:00,539 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:36:00,539 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:36:00,539 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:36:00,539 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:36:00,539 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:36:00,539 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:36:00,539 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:36:00,539 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:36:00,540 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:36:00,540 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:36:00,540 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:36:01,809 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:36:01,866 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:36:01,867 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:36:01,932 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:36:01,978 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:36:01,995 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:36:02,014 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:36:02,014 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:02,015 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:36:02,016 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:02,017 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:36:02,021 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:02,025 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:36:02,030 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:36:02,033 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:02,035 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:36:02,037 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:02,041 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:36:02,045 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:02,045 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:36:02,049 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:02,050 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:36:02,054 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:02,057 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:36:02,059 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:02,060 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:36:02,061 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:02,063 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:36:02,064 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:02,066 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:36:02,068 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:02,070 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:36:02,074 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:02,076 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:36:02,077 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:02,078 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:36:02,079 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:36:02,437 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:36:02,440 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:36:02,442 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:36:02,444 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:36:02,446 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:36:02,446 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:36:02,446 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:36:02,447 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:36:02,448 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:36:02,448 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:36:02,449 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:36:02,449 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:36:02,449 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:36:02,451 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:36:02,453 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:36:02,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:36:02,456 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:36:02,459 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:36:02,461 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:36:02,461 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:36:02,464 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:36:02,464 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:36:02,466 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:36:02,469 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:36:02,473 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:36:02,475 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:36:02,477 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:36:02,479 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:36:02,489 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:36:02,491 - sqlalchemy.engine.Engine - INFO - [generated in 0.00175s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:36:02,492 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:36:02,492 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:36:02,495 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:36:02,496 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:36:02,497 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:36:02,500 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:36:02,504 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:36:02,508 - sqlalchemy.engine.Engine - INFO - [generated in 0.00348s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:36:02,526 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:36:02,527 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:36:02,527 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:36:02,528 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:36:02,528 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:36:02,529 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:36:02,531 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:36:02,532 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:36:02,532 - sqlalchemy.engine.Engine - INFO - [generated in 0.00072s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 36, 2, 499161))
2025-04-28 18:36:02,534 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:36:03,722 - app - INFO - 应用程序关闭中...
2025-04-28 18:36:03,722 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:36:03,723 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:36:03,723 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:36:03,723 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:36:03,724 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:36:03,724 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:36:03,725 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:36:03,725 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:36:03,726 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:36:03,726 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:36:03,726 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:36:03,726 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:36:03,727 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:36:03,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:36:03,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:36:03,728 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:36:03,728 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:36:03,728 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:36:03,728 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:36:03,729 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:36:03,729 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:36:03,729 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:36:03,729 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:36:03,729 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:36:03,730 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:36:03,730 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:36:03,730 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:36:03,730 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:36:03,730 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:36:03,730 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:36:03,731 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:36:03,731 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:36:06,172 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:36:06,229 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:36:06,230 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:36:06,916 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:36:06,975 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:36:06,976 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:36:07,038 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:36:07,083 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:36:07,111 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:36:07,135 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:36:07,135 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:07,136 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:36:07,136 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:07,137 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:36:07,137 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:07,138 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:36:07,138 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:36:07,138 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:07,139 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:36:07,139 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:07,141 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:36:07,141 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:07,145 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:36:07,146 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:07,147 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:36:07,148 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:07,150 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:36:07,150 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:07,151 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:36:07,151 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:07,152 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:36:07,152 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:07,152 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:36:07,152 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:07,153 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:36:07,154 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:07,154 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:36:07,155 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:36:07,155 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:36:07,156 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:36:07,502 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:36:07,502 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:36:07,502 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:36:07,502 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:36:07,503 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:36:07,503 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:36:07,503 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:36:07,503 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:36:07,503 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:36:07,503 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:36:07,503 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:36:07,503 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:36:07,503 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:36:07,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:36:07,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:36:07,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:36:07,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:36:07,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:36:07,505 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:36:07,505 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:36:07,506 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:36:07,507 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:36:07,507 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:36:07,507 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:36:07,508 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:36:07,509 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:36:07,509 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:36:07,509 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:36:07,518 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:36:07,518 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:36:07,519 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:36:07,519 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:36:07,519 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:36:07,519 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:36:07,519 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:36:07,520 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:36:07,521 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:36:07,522 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:36:07,527 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:36:07,529 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:36:07,529 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:36:07,529 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:36:07,529 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:36:07,529 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:36:07,530 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:36:07,531 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:36:07,531 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 36, 7, 520686))
2025-04-28 18:36:07,532 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:36:09,905 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-28 18:36:09,909 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:36:09,911 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:36:09,913 - sqlalchemy.engine.Engine - INFO - [generated in 0.00187s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:36:09,914 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:36:09,916 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:36:09,921 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:36:09,923 - sqlalchemy.engine.Engine - INFO - [cached since 0.01294s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:36:09,927 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:36:09,931 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-28 18:36:09,932 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-28 18:36:09,932 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-28 18:36:09,932 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:36:09,935 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-28 18:36:09,937 - sqlalchemy.engine.Engine - INFO - [generated in 0.00184s] (None, datetime.datetime(2025, 4, 28, 18, 36, 9, 935657), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-28 18:36:09,940 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:36:09,956 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:36:09,958 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:36:09,958 - sqlalchemy.engine.Engine - INFO - [cached since 0.04814s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:36:09,960 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:36:09,961 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] ('2c59eb1f-09f2-4f1a-9ff1-a49a8f8c3603', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 2, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (425 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 28, 18, 36, 9, 931649), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 28, 18, 36, 9, 960913), datetime.datetime(2025, 4, 28, 18, 36, 9, 960913), 0)
2025-04-28 18:36:09,962 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:36:09,970 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:36:09,970 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:36:09,970 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('2c59eb1f-09f2-4f1a-9ff1-a49a8f8c3603',)
2025-04-28 18:36:09,971 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:36:09,972 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 2c59eb1f-09f2-4f1a-9ff1-a49a8f8c3603 (优先级 1) 添加到队列 0
2025-04-28 18:36:09,977 - services.enhanced_scheduler.task_scheduler - ERROR - 同步任务到主任务系统时发生错误: 1 validation error for CreateTaskRequest
vwedTaskParentId
  Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.10/v/string_type
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 441, in run_task
    sync_response = await tf_create_task(
                    ^^^^^^^^^^^^^^^^^^^^^
  File "D:\jsw_code\project\VWED_task\services\sync_service.py", line 99, in create_task
    request_data = CreateTaskRequest(
                   ^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pydantic\main.py", line 214, in __init__
    validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 1 validation error for CreateTaskRequest
vwedTaskParentId
  Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.10/v/string_type
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\base.py", line 140, in coro
    await self.app(scope, receive_or_disconnect, send_no_error)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\cors.py", line 85, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 714, in __call__
    await self.middleware_stack(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 734, in app
    await route.handle(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 288, in handle
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 76, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 73, in app
    response = await f(request)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 301, in app
    raw_response = await run_endpoint_function(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 212, in run_endpoint_function
    return await dependant.call(**values)
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 277, in run_task
    result = await TaskEditService.run_task(
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 429, in run_task
    result = await scheduler.run_task(
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 457, in run_task
    logger.error(f"同步任务到主任务系统时发生错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:36:09,978 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 2c59eb1f-09f2-4f1a-9ff1-a49a8f8c3603
2025-04-28 18:36:09,980 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0753秒
2025-04-28 18:36:10,006 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 2c59eb1f-09f2-4f1a-9ff1-a49a8f8c3603, 优先级: 1
2025-04-28 18:36:10,006 - services.execution.task_executor - DEBUG - 任务 2c59eb1f-09f2-4f1a-9ff1-a49a8f8c3603 设置超时时间: 3600秒
2025-04-28 18:36:10,007 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:36:10,007 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:36:10,007 - sqlalchemy.engine.Engine - INFO - [cached since 0.03738s ago] ('2c59eb1f-09f2-4f1a-9ff1-a49a8f8c3603',)
2025-04-28 18:36:10,009 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:36:10,009 - sqlalchemy.engine.Engine - INFO - [cached since 0.09859s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:36:10,010 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:36:10,010 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (datetime.datetime(2025, 4, 28, 18, 36, 10, 9906), datetime.datetime(2025, 4, 28, 18, 36, 10, 10914), '2c59eb1f-09f2-4f1a-9ff1-a49a8f8c3603')
2025-04-28 18:36:10,011 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:36:10,019 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:36:10,019 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:36:10,020 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 36, 10, 19846), '2c59eb1f-09f2-4f1a-9ff1-a49a8f8c3603')
2025-04-28 18:36:10,020 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:36:10,028 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-28 18:36:10,029 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:36:10,031 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:36:10,031 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] ('4343d5f7-003a-4e4f-86f9-4097c8b8449f', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '2c59eb1f-09f2-4f1a-9ff1-a49a8f8c3603', datetime.datetime(2025, 4, 28, 18, 36, 10, 29344), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 36, 10, 31691), datetime.datetime(2025, 4, 28, 18, 36, 10, 31691), 0)
2025-04-28 18:36:10,032 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:36:10,041 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:36:10,042 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:36:10,042 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] ('4343d5f7-003a-4e4f-86f9-4097c8b8449f',)
2025-04-28 18:36:10,043 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:36:10,043 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:36:10,044 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:36:10,044 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 36, 10, 44701), '4343d5f7-003a-4e4f-86f9-4097c8b8449f')
2025-04-28 18:36:10,045 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:36:10,050 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-28 18:36:10,051 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-28 18:36:10,052 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-28 18:36:10,053 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:36:10,053 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:36:10,053 - sqlalchemy.engine.Engine - INFO - [cached since 0.02285s ago] ('a936c897-d60b-4fcc-b5e1-001c12a77387', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{"priority": "10", "vehicle": "amr1", "group": "group_amr", "keyRoute": "apt1"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '2c59eb1f-09f2-4f1a-9ff1-a49a8f8c3603', datetime.datetime(2025, 4, 28, 18, 36, 10, 52703), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 36, 10, 53702), datetime.datetime(2025, 4, 28, 18, 36, 10, 53702), 0)
2025-04-28 18:36:10,054 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:36:10,061 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: a936c897-d60b-4fcc-b5e1-001c12a77387
2025-04-28 18:36:10,062 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:36:10,062 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:36:10,062 - sqlalchemy.engine.Engine - INFO - [cached since 0.02025s ago] ('a936c897-d60b-4fcc-b5e1-001c12a77387',)
2025-04-28 18:36:10,063 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:36:10,063 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:36:10,063 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:36:10,064 - sqlalchemy.engine.Engine - INFO - [cached since 0.01988s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 36, 10, 63703), 'a936c897-d60b-4fcc-b5e1-001c12a77387')
2025-04-28 18:36:10,065 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:36:10,072 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-28 18:36:10,072 - services.sync_service - INFO - 正在为任务选择AMR: 2c59eb1f-09f2-4f1a-9ff1-a49a8f8c3603, 站点: apt1
2025-04-28 18:36:10,093 - services.sync_service - WARNING - 为任务选择AMR失败: 不支持POST请求方法，支持以下GET、
2025-04-28 18:36:10,094 - services.sync_service - INFO - 正在封口任务: 2c59eb1f-09f2-4f1a-9ff1-a49a8f8c3603
2025-04-28 18:36:10,121 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-28 18:36:10,122 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:36:10,122 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:36:10,123 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] ('99ef2f47-13d3-4914-833e-0f1a2c8a8b67', 3, '{"success": false, "message": "选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "code": 405, "result": null, "timestamp": 1745836569157}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '2c59eb1f-09f2-4f1a-9ff1-a49a8f8c3603', datetime.datetime(2025, 4, 28, 18, 36, 10, 122927), datetime.datetime(2025, 4, 28, 18, 36, 10, 122927), 0)
2025-04-28 18:36:10,124 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:36:10,131 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 750, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:36:10,132 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:36:10,132 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:36:10,132 - sqlalchemy.engine.Engine - INFO - [cached since 0.09056s ago] ('a936c897-d60b-4fcc-b5e1-001c12a77387',)
2025-04-28 18:36:10,133 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:36:10,133 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:36:10,134 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:36:10,134 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (datetime.datetime(2025, 4, 28, 18, 36, 10, 133938), '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 36, 10, 134945), 'a936c897-d60b-4fcc-b5e1-001c12a77387')
2025-04-28 18:36:10,135 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:36:10,141 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:36:10,142 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:36:10,142 - sqlalchemy.engine.Engine - INFO - [cached since 0.01942s ago] ('15c540a8-fb82-4e96-a5a2-defd44fc39d2', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '2c59eb1f-09f2-4f1a-9ff1-a49a8f8c3603', datetime.datetime(2025, 4, 28, 18, 36, 10, 142876), datetime.datetime(2025, 4, 28, 18, 36, 10, 142876), 0)
2025-04-28 18:36:10,142 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:36:10,152 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:36:10,153 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:36:10,154 - sqlalchemy.engine.Engine - INFO - [cached since 0.1116s ago] ('4343d5f7-003a-4e4f-86f9-4097c8b8449f',)
2025-04-28 18:36:10,155 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:36:10,155 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:36:10,156 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:36:10,156 - sqlalchemy.engine.Engine - INFO - [cached since 0.02121s ago] (datetime.datetime(2025, 4, 28, 18, 36, 10, 155299), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 36, 10, 156291), '4343d5f7-003a-4e4f-86f9-4097c8b8449f')
2025-04-28 18:36:10,157 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:36:10,164 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:36:10,166 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:36:10,166 - sqlalchemy.engine.Engine - INFO - [generated in 0.00080s] (datetime.datetime(2025, 4, 28, 18, 36, 10, 163687), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskStatus.FAILED: 2000>, 144, 1, datetime.datetime(2025, 4, 28, 18, 36, 10, 165695), '2c59eb1f-09f2-4f1a-9ff1-a49a8f8c3603')
2025-04-28 18:36:10,168 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:36:10,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 2c59eb1f-09f2-4f1a-9ff1-a49a8f8c3603, 结果: False
2025-04-28 18:37:07,559 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:37:07,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:37:07,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:37:07,561 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:37:07,561 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:37:07,561 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:37:07,562 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:37:07,562 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:37:07,563 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 37, 7, 558650))
2025-04-28 18:37:07,563 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:37:07,563 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:37:07,563 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:37:07,564 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:37:07,564 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:37:07,564 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:37:07,564 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:37:07,565 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:37:07,565 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:37:07,566 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:37:07,571 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:37:07,572 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:37:07,572 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:37:07,573 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:37:07,573 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:37:07,573 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:37:07,573 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:37:07,574 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:37:07,581 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:37:22,596 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:37:22,597 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:37:22,598 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:37:22,598 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:37:22,599 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:37:22,599 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:38:07,602 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:38:07,603 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:38:07,603 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:38:07,603 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:38:07,604 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:38:07,604 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:38:07,604 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:38:07,604 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:38:07,605 - sqlalchemy.engine.Engine - INFO - [cached since 120.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 38, 7, 602158))
2025-04-28 18:38:07,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:38:07,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:38:07,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:38:07,605 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:38:07,605 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:38:07,605 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:38:07,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:38:07,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:38:07,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:38:07,607 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:38:07,607 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:38:07,607 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:38:07,607 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:38:07,607 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:38:07,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:38:07,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:38:07,608 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:38:07,608 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:38:07,614 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:38:22,618 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:38:22,619 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:38:22,619 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:38:22,620 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:38:22,620 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:38:22,620 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:39:07,613 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:39:07,614 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:39:07,614 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 39, 7, 613118))
2025-04-28 18:39:07,615 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:39:07,645 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:39:07,645 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:39:07,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:39:07,646 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:39:07,646 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:39:07,646 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:39:07,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:39:07,647 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:39:07,647 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:39:07,647 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:39:07,647 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:39:07,647 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:39:07,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:39:07,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:39:07,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:39:07,648 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:39:07,648 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:39:07,648 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:39:07,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:39:07,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:39:07,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:39:07,649 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:39:07,649 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:39:07,654 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:39:07,751 - app - INFO - 应用程序关闭中...
2025-04-28 18:39:07,752 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:39:07,752 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:39:07,752 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:39:07,752 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:39:07,752 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:39:07,752 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:39:07,752 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:39:07,752 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:39:07,752 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:39:07,752 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:39:07,752 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:39:07,753 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:39:07,753 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:39:07,754 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:39:07,754 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:39:07,754 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:39:07,754 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:39:07,754 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:39:07,754 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:39:07,754 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:39:07,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:39:07,756 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:39:07,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:39:07,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:39:07,759 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:39:07,759 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:39:07,759 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:39:07,760 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:39:07,760 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:39:07,760 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:39:07,760 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:39:07,761 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:39:08,989 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:39:09,052 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:39:09,053 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:39:09,128 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:39:09,180 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:39:09,210 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:39:09,239 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:39:09,239 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:09,240 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:39:09,240 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:09,241 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:39:09,241 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:09,242 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:39:09,242 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:39:09,242 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:09,244 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:39:09,244 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:09,246 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:39:09,246 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:09,248 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:39:09,248 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:09,249 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:39:09,249 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:09,251 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:39:09,251 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:09,253 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:39:09,253 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:09,254 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:39:09,255 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:09,256 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:39:09,256 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:09,258 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:39:09,258 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:09,259 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:39:09,259 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:09,260 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:39:09,261 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:39:09,611 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:39:09,611 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:39:09,612 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:39:09,612 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:39:09,612 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:39:09,612 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:39:09,613 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:39:09,613 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:39:09,613 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:39:09,613 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:39:09,613 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:39:09,613 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:39:09,614 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:39:09,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:39:09,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:39:09,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:39:09,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:39:09,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:39:09,616 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:39:09,616 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:39:09,616 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:39:09,617 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:39:09,617 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:39:09,618 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:39:09,618 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:39:09,618 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:39:09,619 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:39:09,619 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:39:09,627 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:39:09,629 - sqlalchemy.engine.Engine - INFO - [generated in 0.00182s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:39:09,630 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:39:09,632 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:39:09,633 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:39:09,634 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:39:09,634 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:39:09,635 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:39:09,638 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:39:09,640 - sqlalchemy.engine.Engine - INFO - [generated in 0.00148s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:39:09,656 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:39:09,658 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:39:09,658 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:39:09,658 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:39:09,659 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:39:09,663 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:39:09,663 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:39:09,667 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:39:09,670 - sqlalchemy.engine.Engine - INFO - [generated in 0.00333s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 39, 9, 635910))
2025-04-28 18:39:09,672 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:39:38,655 - app - INFO - 应用程序关闭中...
2025-04-28 18:39:38,656 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:39:38,656 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:39:38,656 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:39:38,656 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:39:38,657 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:39:38,657 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:39:38,657 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:39:38,657 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:39:38,657 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:39:38,657 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:39:38,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:39:38,658 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:39:38,658 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:39:38,658 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:39:38,658 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:39:38,659 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:39:38,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:39:38,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:39:38,659 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:39:38,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:39:38,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:39:38,659 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:39:38,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:39:38,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:39:38,660 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:39:38,660 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:39:38,660 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:39:38,660 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:39:38,660 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:39:38,661 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:39:38,661 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:39:38,661 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:39:40,815 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:39:40,871 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:39:40,872 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:39:41,555 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:39:41,613 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:39:41,615 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:39:41,684 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:39:41,730 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:39:41,755 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:39:41,756 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:39:41,756 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:41,757 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:39:41,757 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:41,758 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:39:41,758 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:41,758 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:39:41,759 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:39:41,759 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:41,760 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:39:41,760 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:41,761 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:39:41,761 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:41,762 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:39:41,762 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:41,763 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:39:41,763 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:41,765 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:39:41,765 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:41,766 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:39:41,766 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:41,767 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:39:41,767 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:41,768 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:39:41,769 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:41,770 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:39:41,770 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:41,771 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:39:41,772 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:39:41,773 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:39:41,773 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:39:42,121 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:39:42,121 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:39:42,122 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:39:42,123 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:39:42,123 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:39:42,123 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:39:42,124 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:39:42,124 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:39:42,124 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:39:42,124 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:39:42,124 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:39:42,124 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:39:42,125 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:39:42,126 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:39:42,126 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:39:42,126 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:39:42,126 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:39:42,127 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:39:42,127 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:39:42,127 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:39:42,128 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:39:42,128 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:39:42,129 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:39:42,129 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:39:42,129 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:39:42,130 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:39:42,130 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:39:42,131 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:39:42,140 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:39:42,140 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:39:42,141 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:39:42,141 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:39:42,142 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:39:42,143 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:39:42,143 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:39:42,143 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:39:42,145 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:39:42,145 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:39:42,166 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:39:42,167 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:39:42,168 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:39:42,168 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:39:42,168 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:39:42,169 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:39:42,169 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:39:42,171 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:39:42,171 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 39, 42, 143055))
2025-04-28 18:39:42,172 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:39:44,445 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-28 18:39:44,449 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:39:44,450 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:39:44,450 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:39:44,451 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:39:44,453 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:39:44,453 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:39:44,453 - sqlalchemy.engine.Engine - INFO - [cached since 0.003345s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:39:44,454 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:39:44,455 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-28 18:39:44,455 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-28 18:39:44,455 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-28 18:39:44,455 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:39:44,456 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-28 18:39:44,457 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (None, datetime.datetime(2025, 4, 28, 18, 39, 44, 456992), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-28 18:39:44,459 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:39:44,466 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:39:44,466 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:39:44,467 - sqlalchemy.engine.Engine - INFO - [cached since 0.01733s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:39:44,469 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:39:44,469 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] ('e664e259-88c0-42c6-9419-01c2d69d00d3', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 2, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (425 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 28, 18, 39, 44, 454067), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 28, 18, 39, 44, 469825), datetime.datetime(2025, 4, 28, 18, 39, 44, 469825), 0)
2025-04-28 18:39:44,470 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:39:44,480 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:39:44,481 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:39:44,481 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] ('e664e259-88c0-42c6-9419-01c2d69d00d3',)
2025-04-28 18:39:44,483 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:39:44,484 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 e664e259-88c0-42c6-9419-01c2d69d00d3 (优先级 1) 添加到队列 0
2025-04-28 18:39:44,491 - services.enhanced_scheduler.task_scheduler - ERROR - 同步任务到主任务系统时发生错误: 1 validation error for CreateTaskRequest
vwedTaskParentId
  Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.10/v/string_type
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 441, in run_task
    sync_response = await tf_create_task(
                    ^^^^^^^^^^^^^^^^^^^^^
  File "D:\jsw_code\project\VWED_task\services\sync_service.py", line 99, in create_task
    request_data = CreateTaskRequest(
                   ^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pydantic\main.py", line 214, in __init__
    validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 1 validation error for CreateTaskRequest
vwedTaskParentId
  Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.10/v/string_type
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\base.py", line 140, in coro
    await self.app(scope, receive_or_disconnect, send_no_error)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\cors.py", line 85, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 714, in __call__
    await self.middleware_stack(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 734, in app
    await route.handle(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 288, in handle
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 76, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 73, in app
    response = await f(request)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 301, in app
    raw_response = await run_endpoint_function(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 212, in run_endpoint_function
    return await dependant.call(**values)
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 277, in run_task
    result = await TaskEditService.run_task(
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 429, in run_task
    result = await scheduler.run_task(
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 457, in run_task
    logger.error(f"同步任务到主任务系统时发生错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:39:44,493 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: e664e259-88c0-42c6-9419-01c2d69d00d3
2025-04-28 18:39:44,493 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0485秒
2025-04-28 18:39:44,528 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: e664e259-88c0-42c6-9419-01c2d69d00d3, 优先级: 1
2025-04-28 18:39:44,528 - services.execution.task_executor - DEBUG - 任务 e664e259-88c0-42c6-9419-01c2d69d00d3 设置超时时间: 3600秒
2025-04-28 18:39:44,529 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:39:44,530 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:39:44,530 - sqlalchemy.engine.Engine - INFO - [cached since 0.04913s ago] ('e664e259-88c0-42c6-9419-01c2d69d00d3',)
2025-04-28 18:39:44,531 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:39:44,531 - sqlalchemy.engine.Engine - INFO - [cached since 0.08238s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:39:44,534 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:39:44,535 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (datetime.datetime(2025, 4, 28, 18, 39, 44, 533060), datetime.datetime(2025, 4, 28, 18, 39, 44, 534059), 'e664e259-88c0-42c6-9419-01c2d69d00d3')
2025-04-28 18:39:44,536 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:39:44,544 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:39:44,545 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:39:44,545 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 39, 44, 545442), 'e664e259-88c0-42c6-9419-01c2d69d00d3')
2025-04-28 18:39:44,546 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:39:44,552 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-28 18:39:44,554 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:39:44,556 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:39:44,557 - sqlalchemy.engine.Engine - INFO - [generated in 0.00141s] ('9a3945aa-d5f1-4d89-baf6-0d7c5cd292c1', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'e664e259-88c0-42c6-9419-01c2d69d00d3', datetime.datetime(2025, 4, 28, 18, 39, 44, 553454), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 39, 44, 556447), datetime.datetime(2025, 4, 28, 18, 39, 44, 556447), 0)
2025-04-28 18:39:44,558 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:39:44,565 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:39:44,569 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:39:44,569 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('9a3945aa-d5f1-4d89-baf6-0d7c5cd292c1',)
2025-04-28 18:39:44,570 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:39:44,570 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:39:44,571 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:39:44,573 - sqlalchemy.engine.Engine - INFO - [generated in 0.00218s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 39, 44, 571093), '9a3945aa-d5f1-4d89-baf6-0d7c5cd292c1')
2025-04-28 18:39:44,574 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:39:44,580 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-28 18:39:44,582 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-28 18:39:44,586 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-28 18:39:44,587 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:39:44,588 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:39:44,591 - sqlalchemy.engine.Engine - INFO - [cached since 0.03478s ago] ('acb13e2d-9ff3-42cf-a369-0c5815a45024', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{"priority": "10", "vehicle": "amr1", "group": "group_amr", "keyRoute": "apt1"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'e664e259-88c0-42c6-9419-01c2d69d00d3', datetime.datetime(2025, 4, 28, 18, 39, 44, 587093), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 39, 44, 588093), datetime.datetime(2025, 4, 28, 18, 39, 44, 588093), 0)
2025-04-28 18:39:44,593 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:39:44,600 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: acb13e2d-9ff3-42cf-a369-0c5815a45024
2025-04-28 18:39:44,600 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:39:44,603 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:39:44,604 - sqlalchemy.engine.Engine - INFO - [cached since 0.03501s ago] ('acb13e2d-9ff3-42cf-a369-0c5815a45024',)
2025-04-28 18:39:44,606 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:39:44,606 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:39:44,607 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:39:44,607 - sqlalchemy.engine.Engine - INFO - [cached since 0.03573s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 39, 44, 607093), 'acb13e2d-9ff3-42cf-a369-0c5815a45024')
2025-04-28 18:39:44,608 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:39:44,614 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-28 18:39:44,615 - services.sync_service - INFO - 正在为任务选择AMR: e664e259-88c0-42c6-9419-01c2d69d00d3, 站点: apt1
2025-04-28 18:39:44,657 - services.sync_service - WARNING - 为任务选择AMR失败: 不支持POST请求方法，支持以下GET、
2025-04-28 18:39:44,657 - services.sync_service - INFO - 正在封口任务: e664e259-88c0-42c6-9419-01c2d69d00d3
2025-04-28 18:39:44,676 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-28 18:39:44,677 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:39:44,678 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:39:44,678 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] ('ebdf4415-07c2-43b9-bf7d-4a804c66abda', 3, '{"success": false, "message": "选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "code": 405, "result": null, "timestamp": 1745836783722}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'e664e259-88c0-42c6-9419-01c2d69d00d3', datetime.datetime(2025, 4, 28, 18, 39, 44, 678979), datetime.datetime(2025, 4, 28, 18, 39, 44, 678979), 0)
2025-04-28 18:39:44,679 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:39:44,688 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 750, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:39:44,689 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:39:44,689 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:39:44,689 - sqlalchemy.engine.Engine - INFO - [cached since 0.1218s ago] ('acb13e2d-9ff3-42cf-a369-0c5815a45024',)
2025-04-28 18:39:44,691 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:39:44,691 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:39:44,692 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:39:44,692 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (datetime.datetime(2025, 4, 28, 18, 39, 44, 691865), '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 39, 44, 692887), 'acb13e2d-9ff3-42cf-a369-0c5815a45024')
2025-04-28 18:39:44,693 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:39:44,700 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:39:44,701 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:39:44,701 - sqlalchemy.engine.Engine - INFO - [cached since 0.02239s ago] ('d79ef907-6a84-4357-bddc-7c07ea75ab70', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'e664e259-88c0-42c6-9419-01c2d69d00d3', datetime.datetime(2025, 4, 28, 18, 39, 44, 701083), datetime.datetime(2025, 4, 28, 18, 39, 44, 701083), 0)
2025-04-28 18:39:44,702 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:39:44,709 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:39:44,709 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:39:44,709 - sqlalchemy.engine.Engine - INFO - [cached since 0.1404s ago] ('9a3945aa-d5f1-4d89-baf6-0d7c5cd292c1',)
2025-04-28 18:39:44,710 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:39:44,710 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:39:44,710 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:39:44,710 - sqlalchemy.engine.Engine - INFO - [cached since 0.01761s ago] (datetime.datetime(2025, 4, 28, 18, 39, 44, 710092), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 39, 44, 710092), '9a3945aa-d5f1-4d89-baf6-0d7c5cd292c1')
2025-04-28 18:39:44,711 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:39:44,718 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:39:44,718 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:39:44,718 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (datetime.datetime(2025, 4, 28, 18, 39, 44, 717378), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskStatus.FAILED: 2000>, 173, 1, datetime.datetime(2025, 4, 28, 18, 39, 44, 718454), 'e664e259-88c0-42c6-9419-01c2d69d00d3')
2025-04-28 18:39:44,719 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:39:44,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: e664e259-88c0-42c6-9419-01c2d69d00d3, 结果: False
2025-04-28 18:40:38,079 - app - INFO - 应用程序关闭中...
2025-04-28 18:40:38,079 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:40:38,079 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:40:38,080 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:40:38,080 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:40:38,080 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:40:38,080 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:40:38,080 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:40:38,080 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:40:38,080 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:40:38,080 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:40:38,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:40:38,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:40:38,080 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:40:38,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:40:38,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:40:38,080 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:40:38,081 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:40:38,081 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:40:38,081 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:40:38,081 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:40:38,081 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:40:38,081 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:40:38,081 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:40:38,081 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:40:38,081 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:40:38,081 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:40:38,081 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:40:38,082 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:40:38,082 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:40:38,082 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:40:38,083 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:40:38,084 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:40:40,064 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:40:40,123 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:40:40,125 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:40:57,083 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:40:57,140 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:40:57,142 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:40:57,816 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:40:57,871 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:40:57,872 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:40:57,931 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:40:57,978 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:40:58,013 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:40:58,037 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:40:58,038 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:40:58,039 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:40:58,040 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:40:58,040 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:40:58,041 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:40:58,042 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:40:58,042 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:40:58,043 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:40:58,044 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:40:58,044 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:40:58,046 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:40:58,046 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:40:58,047 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:40:58,047 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:40:58,048 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:40:58,049 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:40:58,049 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:40:58,050 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:40:58,050 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:40:58,051 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:40:58,051 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:40:58,051 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:40:58,053 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:40:58,053 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:40:58,054 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:40:58,054 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:40:58,055 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:40:58,055 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:40:58,056 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:40:58,056 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:40:58,400 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:40:58,400 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:40:58,401 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:40:58,401 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:40:58,401 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:40:58,402 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:40:58,402 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:40:58,402 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:40:58,402 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:40:58,403 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:40:58,403 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:40:58,403 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:40:58,403 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:40:58,405 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:40:58,405 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:40:58,405 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:40:58,405 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:40:58,405 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:40:58,406 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:40:58,406 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:40:58,407 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:40:58,407 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:40:58,407 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:40:58,408 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:40:58,408 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:40:58,409 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:40:58,409 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:40:58,409 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:40:58,418 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:40:58,418 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:40:58,420 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:40:58,420 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:40:58,421 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:40:58,421 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:40:58,421 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:40:58,422 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:40:58,424 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:40:58,425 - sqlalchemy.engine.Engine - INFO - [generated in 0.00115s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:40:58,425 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:40:58,427 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:40:58,427 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:40:58,428 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:40:58,428 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:40:58,429 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:40:58,429 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:40:58,430 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:40:58,430 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 40, 58, 422561))
2025-04-28 18:40:58,430 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:41:00,418 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-28 18:41:00,421 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:41:00,425 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:41:00,426 - sqlalchemy.engine.Engine - INFO - [generated in 0.00110s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:41:00,429 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:41:00,431 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:41:00,433 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:41:00,434 - sqlalchemy.engine.Engine - INFO - [cached since 0.008753s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:41:00,435 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:41:00,439 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-28 18:41:00,440 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-28 18:41:00,440 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-28 18:41:00,441 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:41:00,442 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-28 18:41:00,445 - sqlalchemy.engine.Engine - INFO - [generated in 0.00272s] (None, datetime.datetime(2025, 4, 28, 18, 41, 0, 442626), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-28 18:41:00,448 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:41:00,466 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:41:00,467 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:41:00,467 - sqlalchemy.engine.Engine - INFO - [cached since 0.04224s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:41:00,470 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:41:00,472 - sqlalchemy.engine.Engine - INFO - [generated in 0.00272s] ('043d838e-0420-4b8d-abd9-5b644b3db9b2', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 2, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (425 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 28, 18, 41, 0, 439625), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 28, 18, 41, 0, 470267), datetime.datetime(2025, 4, 28, 18, 41, 0, 470267), 0)
2025-04-28 18:41:00,474 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:41:00,481 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:41:00,483 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:41:00,487 - sqlalchemy.engine.Engine - INFO - [generated in 0.00361s] ('043d838e-0420-4b8d-abd9-5b644b3db9b2',)
2025-04-28 18:41:00,488 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:41:00,491 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 043d838e-0420-4b8d-abd9-5b644b3db9b2 (优先级 1) 添加到队列 0
2025-04-28 18:41:00,502 - services.enhanced_scheduler.task_scheduler - ERROR - 同步任务到主任务系统时发生错误: 1 validation error for CreateTaskRequest
vwedTaskParentId
  Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.10/v/string_type
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 441, in run_task
    sync_response = await tf_create_task(
                    ^^^^^^^^^^^^^^^^^^^^^
  File "D:\jsw_code\project\VWED_task\services\sync_service.py", line 106, in create_task
    request_data = CreateTaskRequest(
                   ^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\pydantic\main.py", line 214, in __init__
    validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 1 validation error for CreateTaskRequest
vwedTaskParentId
  Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.10/v/string_type
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\base.py", line 140, in coro
    await self.app(scope, receive_or_disconnect, send_no_error)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\cors.py", line 85, in __call__
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 714, in __call__
    await self.middleware_stack(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 734, in app
    await route.handle(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 288, in handle
    await self.app(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 76, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\starlette\routing.py", line 73, in app
    response = await f(request)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 301, in app
    raw_response = await run_endpoint_function(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\fastapi\routing.py", line 212, in run_endpoint_function
    return await dependant.call(**values)
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 277, in run_task
    result = await TaskEditService.run_task(
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 429, in run_task
    result = await scheduler.run_task(
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 457, in run_task
    logger.error(f"同步任务到主任务系统时发生错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:41:00,504 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 043d838e-0420-4b8d-abd9-5b644b3db9b2
2025-04-28 18:41:00,506 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0879秒
2025-04-28 18:41:00,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 043d838e-0420-4b8d-abd9-5b644b3db9b2, 优先级: 1
2025-04-28 18:41:00,562 - services.execution.task_executor - DEBUG - 任务 043d838e-0420-4b8d-abd9-5b644b3db9b2 设置超时时间: 3600秒
2025-04-28 18:41:00,563 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:41:00,563 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:41:00,563 - sqlalchemy.engine.Engine - INFO - [cached since 0.08068s ago] ('043d838e-0420-4b8d-abd9-5b644b3db9b2',)
2025-04-28 18:41:00,564 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:41:00,565 - sqlalchemy.engine.Engine - INFO - [cached since 0.14s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:41:00,566 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:41:00,567 - sqlalchemy.engine.Engine - INFO - [generated in 0.00080s] (datetime.datetime(2025, 4, 28, 18, 41, 0, 565899), datetime.datetime(2025, 4, 28, 18, 41, 0, 566977), '043d838e-0420-4b8d-abd9-5b644b3db9b2')
2025-04-28 18:41:00,568 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:41:00,574 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:41:00,575 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:41:00,575 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 41, 0, 575974), '043d838e-0420-4b8d-abd9-5b644b3db9b2')
2025-04-28 18:41:00,576 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:41:00,583 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-28 18:41:00,584 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:41:00,586 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:41:00,586 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] ('a1ba2d6e-ddaf-458f-b336-301efbf381b2', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '043d838e-0420-4b8d-abd9-5b644b3db9b2', datetime.datetime(2025, 4, 28, 18, 41, 0, 584887), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 41, 0, 586889), datetime.datetime(2025, 4, 28, 18, 41, 0, 586889), 0)
2025-04-28 18:41:00,587 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:41:00,592 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:41:00,593 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:41:00,594 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] ('a1ba2d6e-ddaf-458f-b336-301efbf381b2',)
2025-04-28 18:41:00,595 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:41:00,595 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:41:00,596 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:41:00,596 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 41, 0, 596894), 'a1ba2d6e-ddaf-458f-b336-301efbf381b2')
2025-04-28 18:41:00,597 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:41:00,604 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-28 18:41:00,604 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-28 18:41:00,604 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-28 18:41:00,604 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:41:00,605 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:41:00,605 - sqlalchemy.engine.Engine - INFO - [cached since 0.0184s ago] ('3e3ba446-4caf-4171-9d01-fc6aabfa4526', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{"priority": "10", "vehicle": "amr1", "group": "group_amr", "keyRoute": "apt1"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '043d838e-0420-4b8d-abd9-5b644b3db9b2', datetime.datetime(2025, 4, 28, 18, 41, 0, 604496), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 41, 0, 605501), datetime.datetime(2025, 4, 28, 18, 41, 0, 605501), 0)
2025-04-28 18:41:00,605 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:41:00,611 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 3e3ba446-4caf-4171-9d01-fc6aabfa4526
2025-04-28 18:41:00,611 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:41:00,612 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:41:00,612 - sqlalchemy.engine.Engine - INFO - [cached since 0.01847s ago] ('3e3ba446-4caf-4171-9d01-fc6aabfa4526',)
2025-04-28 18:41:00,612 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:41:00,613 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:41:00,613 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:41:00,613 - sqlalchemy.engine.Engine - INFO - [cached since 0.01746s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 41, 0, 613868), '3e3ba446-4caf-4171-9d01-fc6aabfa4526')
2025-04-28 18:41:00,614 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:41:00,620 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-28 18:41:00,620 - services.sync_service - INFO - 正在为任务选择AMR: 043d838e-0420-4b8d-abd9-5b644b3db9b2, 站点: apt1
2025-04-28 18:41:00,666 - services.sync_service - WARNING - 为任务选择AMR失败: 不支持POST请求方法，支持以下GET、
2025-04-28 18:41:00,667 - services.sync_service - INFO - 正在封口任务: 043d838e-0420-4b8d-abd9-5b644b3db9b2
2025-04-28 18:41:00,747 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-28 18:41:00,749 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:41:00,750 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:41:00,751 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] ('1fdac4ae-94c8-4137-910e-1f4f00fefb24', 3, '{"success": false, "message": "选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "code": 405, "result": null, "timestamp": 1745836859733}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '043d838e-0420-4b8d-abd9-5b644b3db9b2', datetime.datetime(2025, 4, 28, 18, 41, 0, 750469), datetime.datetime(2025, 4, 28, 18, 41, 0, 750469), 0)
2025-04-28 18:41:00,751 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:41:00,761 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 750, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:41:00,762 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:41:00,762 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:41:00,762 - sqlalchemy.engine.Engine - INFO - [cached since 0.1687s ago] ('3e3ba446-4caf-4171-9d01-fc6aabfa4526',)
2025-04-28 18:41:00,763 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:41:00,764 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:41:00,765 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:41:00,765 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (datetime.datetime(2025, 4, 28, 18, 41, 0, 764678), '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 41, 0, 765662), '3e3ba446-4caf-4171-9d01-fc6aabfa4526')
2025-04-28 18:41:00,766 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:41:00,775 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:41:00,775 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:41:00,775 - sqlalchemy.engine.Engine - INFO - [cached since 0.02499s ago] ('e99d322c-2540-42e7-8bfd-5bf714e0d68d', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '043d838e-0420-4b8d-abd9-5b644b3db9b2', datetime.datetime(2025, 4, 28, 18, 41, 0, 775660), datetime.datetime(2025, 4, 28, 18, 41, 0, 775660), 0)
2025-04-28 18:41:00,776 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:41:00,782 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:41:00,782 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:41:00,782 - sqlalchemy.engine.Engine - INFO - [cached since 0.1887s ago] ('a1ba2d6e-ddaf-458f-b336-301efbf381b2',)
2025-04-28 18:41:00,783 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:41:00,783 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:41:00,784 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:41:00,787 - sqlalchemy.engine.Engine - INFO - [cached since 0.02175s ago] (datetime.datetime(2025, 4, 28, 18, 41, 0, 784660), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 41, 0, 784660), 'a1ba2d6e-ddaf-458f-b336-301efbf381b2')
2025-04-28 18:41:00,791 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:41:00,802 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:41:00,805 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:41:00,806 - sqlalchemy.engine.Engine - INFO - [generated in 0.00130s] (datetime.datetime(2025, 4, 28, 18, 41, 0, 801660), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskStatus.FAILED: 2000>, 226, 1, datetime.datetime(2025, 4, 28, 18, 41, 0, 805667), '043d838e-0420-4b8d-abd9-5b644b3db9b2')
2025-04-28 18:41:00,807 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:41:00,815 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 043d838e-0420-4b8d-abd9-5b644b3db9b2, 结果: False
2025-04-28 18:41:58,428 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:41:58,429 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:41:58,429 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:41:58,429 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:41:58,430 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:41:58,430 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:41:58,430 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:41:58,431 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:41:58,431 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 41, 58, 427435))
2025-04-28 18:41:58,432 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:41:58,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:41:58,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:41:58,433 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:41:58,433 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:41:58,433 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:41:58,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:41:58,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:41:58,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:41:58,434 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:41:58,434 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:41:58,434 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:41:58,434 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:41:58,436 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:41:58,436 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:41:58,436 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:41:58,436 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:41:58,436 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:41:58,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:42:13,423 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:42:13,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:42:13,425 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:42:13,426 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:42:13,426 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:42:13,426 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:42:55,958 - app - INFO - 应用程序关闭中...
2025-04-28 18:42:55,958 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:42:55,958 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:42:55,958 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:42:55,959 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:42:55,959 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:42:55,959 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:42:55,959 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:42:55,960 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:42:55,960 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:42:55,961 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:42:55,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:42:55,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:42:55,962 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:42:55,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:42:55,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:42:55,963 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-28 18:42:55,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:42:55,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:42:55,963 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-28 18:42:55,964 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:42:55,964 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:42:55,964 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-28 18:42:55,964 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:42:55,964 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:42:55,964 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-28 18:42:55,964 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:42:55,964 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:42:55,964 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:42:55,964 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:42:55,965 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:42:55,965 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:42:55,965 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:42:58,414 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:42:58,473 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:42:58,474 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:42:59,134 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:42:59,192 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:42:59,193 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:42:59,254 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:42:59,303 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:42:59,330 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:42:59,354 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:42:59,355 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:42:59,355 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:42:59,355 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:42:59,356 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:42:59,356 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:42:59,356 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:42:59,357 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:42:59,357 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:42:59,358 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:42:59,359 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:42:59,361 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:42:59,361 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:42:59,361 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:42:59,363 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:42:59,364 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:42:59,364 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:42:59,365 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:42:59,365 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:42:59,366 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:42:59,366 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:42:59,367 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:42:59,368 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:42:59,369 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:42:59,369 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:42:59,372 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:42:59,372 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:42:59,373 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:42:59,373 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:42:59,374 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:42:59,374 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:42:59,726 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:42:59,726 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:42:59,727 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:42:59,727 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:42:59,727 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:42:59,727 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:42:59,727 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:42:59,728 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:42:59,728 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:42:59,728 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:42:59,728 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:42:59,728 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:42:59,728 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:42:59,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:42:59,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:42:59,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:42:59,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:42:59,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:42:59,730 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:42:59,730 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:42:59,732 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:42:59,732 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:42:59,732 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:42:59,734 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:42:59,734 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:42:59,734 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:42:59,735 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:42:59,735 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:42:59,744 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:42:59,744 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:42:59,746 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:42:59,746 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:42:59,746 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:42:59,748 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:42:59,748 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:42:59,748 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:42:59,750 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:42:59,751 - sqlalchemy.engine.Engine - INFO - [generated in 0.00120s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:42:59,752 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:42:59,752 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:42:59,752 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:42:59,752 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:42:59,753 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:42:59,753 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:42:59,753 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:42:59,754 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:42:59,754 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 42, 59, 748072))
2025-04-28 18:42:59,755 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:43:01,585 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-28 18:43:01,589 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:43:01,590 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:43:01,590 - sqlalchemy.engine.Engine - INFO - [generated in 0.00021s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:43:01,591 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:43:01,592 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:43:01,592 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:43:01,592 - sqlalchemy.engine.Engine - INFO - [cached since 0.002405s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:43:01,594 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:43:01,594 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-28 18:43:01,594 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-28 18:43:01,594 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-28 18:43:01,596 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:43:01,596 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-28 18:43:01,597 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (None, datetime.datetime(2025, 4, 28, 18, 43, 1, 596300), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-28 18:43:01,597 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:43:01,612 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:43:01,613 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:43:01,613 - sqlalchemy.engine.Engine - INFO - [cached since 0.02314s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:43:01,615 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:43:01,615 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] ('958f8c69-b8ec-4f0b-808f-09a17f2fcd27', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 2, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (425 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 28, 18, 43, 1, 594302), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 28, 18, 43, 1, 615681), datetime.datetime(2025, 4, 28, 18, 43, 1, 615681), 0)
2025-04-28 18:43:01,616 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:43:01,628 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:43:01,629 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:43:01,629 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('958f8c69-b8ec-4f0b-808f-09a17f2fcd27',)
2025-04-28 18:43:01,631 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:43:01,631 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 958f8c69-b8ec-4f0b-808f-09a17f2fcd27 (优先级 1) 添加到队列 0
2025-04-28 18:43:01,635 - services.sync_service - INFO - 正在同步创建任务到天风系统: 958f8c69-b8ec-4f0b-808f-09a17f2fcd27
2025-04-28 18:43:01,635 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"958f8c69-b8ec-4f0b-808f-09a17f2fcd27","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":false,"priority":1,"createTime":"2025-04-28 18:43:01","sceneId":"abk1235kgnbaoj2j4l6j6h3hw","needAmr":1}
2025-04-28 18:43:01,655 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 958f8c69-b8ec-4f0b-808f-09a17f2fcd27, 优先级: 1
2025-04-28 18:43:01,655 - services.execution.task_executor - DEBUG - 任务 958f8c69-b8ec-4f0b-808f-09a17f2fcd27 设置超时时间: 3600秒
2025-04-28 18:43:01,655 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:43:01,655 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:43:01,655 - sqlalchemy.engine.Engine - INFO - [cached since 0.02678s ago] ('958f8c69-b8ec-4f0b-808f-09a17f2fcd27',)
2025-04-28 18:43:01,657 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:43:01,657 - sqlalchemy.engine.Engine - INFO - [cached since 0.06686s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:43:01,658 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:43:01,658 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (datetime.datetime(2025, 4, 28, 18, 43, 1, 657015), datetime.datetime(2025, 4, 28, 18, 43, 1, 658386), '958f8c69-b8ec-4f0b-808f-09a17f2fcd27')
2025-04-28 18:43:01,659 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:43:01,661 - services.sync_service - WARNING - 同步任务到系统任务失败: JSON parse error: Cannot deserialize value of type `java.lang.Integer` from Boolean value (token `JsonToken.VALUE_FALSE`)
2025-04-28 18:43:01,661 - services.enhanced_scheduler.task_scheduler - WARNING - 同步任务到主任务系统失败: 958f8c69-b8ec-4f0b-808f-09a17f2fcd27
2025-04-28 18:43:01,662 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 958f8c69-b8ec-4f0b-808f-09a17f2fcd27
2025-04-28 18:43:01,662 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0770秒
2025-04-28 18:43:01,666 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:43:01,666 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:43:01,667 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 43, 1, 666982), '958f8c69-b8ec-4f0b-808f-09a17f2fcd27')
2025-04-28 18:43:01,667 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:43:01,675 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-28 18:43:01,675 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:43:01,678 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:43:01,678 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('1aa64f33-2288-4cf4-9eaa-2c97716eeb27', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '958f8c69-b8ec-4f0b-808f-09a17f2fcd27', datetime.datetime(2025, 4, 28, 18, 43, 1, 675898), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 43, 1, 678400), datetime.datetime(2025, 4, 28, 18, 43, 1, 678400), 0)
2025-04-28 18:43:01,679 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:43:01,685 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:43:01,687 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:43:01,688 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] ('1aa64f33-2288-4cf4-9eaa-2c97716eeb27',)
2025-04-28 18:43:01,689 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:43:01,689 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:43:01,690 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:43:01,690 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 43, 1, 690405), '1aa64f33-2288-4cf4-9eaa-2c97716eeb27')
2025-04-28 18:43:01,692 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:43:01,698 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-28 18:43:01,698 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-28 18:43:01,698 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-28 18:43:01,699 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:43:01,700 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:43:01,701 - sqlalchemy.engine.Engine - INFO - [cached since 0.02302s ago] ('a11a419f-c2c9-4293-a5a3-cb44e423d6dc', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{"priority": "10", "vehicle": "amr1", "group": "group_amr", "keyRoute": "apt1"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '958f8c69-b8ec-4f0b-808f-09a17f2fcd27', datetime.datetime(2025, 4, 28, 18, 43, 1, 699417), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 43, 1, 700422), datetime.datetime(2025, 4, 28, 18, 43, 1, 700422), 0)
2025-04-28 18:43:01,702 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:43:01,708 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: a11a419f-c2c9-4293-a5a3-cb44e423d6dc
2025-04-28 18:43:01,709 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:43:01,709 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:43:01,709 - sqlalchemy.engine.Engine - INFO - [cached since 0.02202s ago] ('a11a419f-c2c9-4293-a5a3-cb44e423d6dc',)
2025-04-28 18:43:01,710 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:43:01,710 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:43:01,711 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:43:01,711 - sqlalchemy.engine.Engine - INFO - [cached since 0.02123s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 43, 1, 711622), 'a11a419f-c2c9-4293-a5a3-cb44e423d6dc')
2025-04-28 18:43:01,712 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:43:01,718 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-28 18:43:01,726 - services.sync_service - INFO - 正在为任务选择AMR: 958f8c69-b8ec-4f0b-808f-09a17f2fcd27, 站点: apt1
2025-04-28 18:43:01,763 - services.sync_service - WARNING - 为任务选择AMR失败: 不支持POST请求方法，支持以下GET、
2025-04-28 18:43:01,766 - services.sync_service - INFO - 正在封口任务: 958f8c69-b8ec-4f0b-808f-09a17f2fcd27
2025-04-28 18:43:01,796 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-28 18:43:01,797 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:43:01,801 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:43:01,802 - sqlalchemy.engine.Engine - INFO - [generated in 0.00132s] ('6f1e1f4f-8483-4ccf-a1c1-1ac03a753e60', 3, '{"success": false, "message": "选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "code": 405, "result": null, "timestamp": 1745836980834}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '958f8c69-b8ec-4f0b-808f-09a17f2fcd27', datetime.datetime(2025, 4, 28, 18, 43, 1, 801145), datetime.datetime(2025, 4, 28, 18, 43, 1, 801145), 0)
2025-04-28 18:43:01,805 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:43:01,826 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 750, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:43:01,829 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:43:01,830 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:43:01,831 - sqlalchemy.engine.Engine - INFO - [cached since 0.1432s ago] ('a11a419f-c2c9-4293-a5a3-cb44e423d6dc',)
2025-04-28 18:43:01,834 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:43:01,835 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:43:01,841 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:43:01,842 - sqlalchemy.engine.Engine - INFO - [generated in 0.00128s] (datetime.datetime(2025, 4, 28, 18, 43, 1, 835442), '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 43, 1, 841449), 'a11a419f-c2c9-4293-a5a3-cb44e423d6dc')
2025-04-28 18:43:01,844 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:43:01,852 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:43:01,856 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:43:01,857 - sqlalchemy.engine.Engine - INFO - [cached since 0.05626s ago] ('aca79524-bd8f-44dd-890a-e5eb466c3a82', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '958f8c69-b8ec-4f0b-808f-09a17f2fcd27', datetime.datetime(2025, 4, 28, 18, 43, 1, 856135), datetime.datetime(2025, 4, 28, 18, 43, 1, 856135), 0)
2025-04-28 18:43:01,860 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:43:01,867 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:43:01,872 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:43:01,874 - sqlalchemy.engine.Engine - INFO - [cached since 0.1862s ago] ('1aa64f33-2288-4cf4-9eaa-2c97716eeb27',)
2025-04-28 18:43:01,875 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:43:01,875 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:43:01,876 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:43:01,877 - sqlalchemy.engine.Engine - INFO - [cached since 0.03604s ago] (datetime.datetime(2025, 4, 28, 18, 43, 1, 876020), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 43, 1, 876020), '1aa64f33-2288-4cf4-9eaa-2c97716eeb27')
2025-04-28 18:43:01,879 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:43:01,889 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:43:01,890 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:43:01,891 - sqlalchemy.engine.Engine - INFO - [generated in 0.00066s] (datetime.datetime(2025, 4, 28, 18, 43, 1, 889020), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskStatus.FAILED: 2000>, 223, 1, datetime.datetime(2025, 4, 28, 18, 43, 1, 890020), '958f8c69-b8ec-4f0b-808f-09a17f2fcd27')
2025-04-28 18:43:01,892 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:43:01,899 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 958f8c69-b8ec-4f0b-808f-09a17f2fcd27, 结果: False
2025-04-28 18:43:59,737 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:43:59,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:43:59,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:43:59,740 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:43:59,740 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:43:59,740 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:43:59,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:43:59,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:43:59,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:43:59,741 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:43:59,741 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:43:59,741 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:43:59,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:43:59,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:43:59,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:43:59,741 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:43:59,741 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:43:59,741 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:43:59,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:43:59,743 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:43:59,743 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:43:59,743 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:43:59,743 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:43:59,748 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:43:59,769 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:43:59,770 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:43:59,770 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 43, 59, 768927))
2025-04-28 18:43:59,772 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:44:14,736 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:44:14,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:44:14,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:44:14,737 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:44:14,737 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:44:14,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:44:57,157 - app - INFO - 应用程序关闭中...
2025-04-28 18:44:57,157 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:44:57,158 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:44:57,158 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:44:57,158 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:44:57,159 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:44:57,159 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:44:57,159 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:44:57,159 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:44:57,160 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:44:57,160 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:44:57,160 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:44:57,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:44:57,161 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:44:57,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:44:57,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:44:57,162 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-28 18:44:57,162 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:44:57,162 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:44:57,162 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-28 18:44:57,162 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:44:57,162 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:44:57,162 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-28 18:44:57,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:44:57,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:44:57,163 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-28 18:44:57,163 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:44:57,163 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:44:57,164 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:44:57,164 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:44:57,165 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:44:57,165 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:44:57,166 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:44:59,213 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:44:59,274 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:44:59,276 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:44:59,950 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:45:00,006 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:45:00,008 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:45:00,069 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:45:00,113 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:45:00,147 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:45:00,165 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:45:00,166 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:45:00,166 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:45:00,167 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:45:00,167 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:45:00,168 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:45:00,169 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:45:00,169 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:45:00,169 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:45:00,170 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:45:00,170 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:45:00,171 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:45:00,172 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:45:00,173 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:45:00,173 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:45:00,174 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:45:00,174 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:45:00,175 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:45:00,175 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:45:00,176 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:45:00,176 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:45:00,176 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:45:00,177 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:45:00,177 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:45:00,178 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:45:00,178 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:45:00,179 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:45:00,180 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:45:00,181 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:45:00,181 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:45:00,182 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:45:00,533 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:45:00,534 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:45:00,534 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:45:00,534 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:45:00,534 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:45:00,535 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:45:00,535 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:45:00,536 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:45:00,537 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:45:00,537 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:45:00,537 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:45:00,537 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:45:00,538 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:45:00,541 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:45:00,541 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:45:00,541 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:45:00,541 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:45:00,541 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:45:00,541 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:45:00,541 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:45:00,543 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:45:00,543 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:45:00,555 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:45:00,556 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:45:00,567 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:45:00,571 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:45:00,572 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:45:00,573 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:45:00,582 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:45:00,583 - sqlalchemy.engine.Engine - INFO - [generated in 0.00161s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:45:00,585 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:45:00,586 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:45:00,586 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:45:00,587 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:45:00,587 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:45:00,588 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:45:00,591 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:45:00,591 - sqlalchemy.engine.Engine - INFO - [generated in 0.00073s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:45:00,617 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:45:00,618 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:45:00,618 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:45:00,618 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:45:00,618 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:45:00,618 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:45:00,619 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:45:00,620 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:45:00,621 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 45, 0, 588791))
2025-04-28 18:45:00,622 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:45:04,027 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-28 18:45:04,029 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:45:04,030 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:45:04,030 - sqlalchemy.engine.Engine - INFO - [generated in 0.00082s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:45:04,032 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:45:04,033 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:45:04,034 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:45:04,035 - sqlalchemy.engine.Engine - INFO - [cached since 0.004269s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:45:04,036 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:45:04,036 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-28 18:45:04,037 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-28 18:45:04,037 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-28 18:45:04,037 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:45:04,038 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-28 18:45:04,038 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] (None, datetime.datetime(2025, 4, 28, 18, 45, 4, 38537), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-28 18:45:04,039 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:45:04,053 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:45:04,053 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:45:04,053 - sqlalchemy.engine.Engine - INFO - [cached since 0.0235s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:45:04,055 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:45:04,055 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] ('e9fdd4f4-35f7-48cb-b385-e289f50df03b', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 2, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (425 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 28, 18, 45, 4, 36528), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 28, 18, 45, 4, 55627), datetime.datetime(2025, 4, 28, 18, 45, 4, 55627), 0)
2025-04-28 18:45:04,056 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:45:04,065 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:45:04,067 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:45:04,067 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('e9fdd4f4-35f7-48cb-b385-e289f50df03b',)
2025-04-28 18:45:04,068 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:45:04,068 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 e9fdd4f4-35f7-48cb-b385-e289f50df03b (优先级 1) 添加到队列 0
2025-04-28 18:45:04,073 - services.sync_service - INFO - 正在同步创建任务到天风系统: e9fdd4f4-35f7-48cb-b385-e289f50df03b
2025-04-28 18:45:04,073 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"e9fdd4f4-35f7-48cb-b385-e289f50df03b","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":false,"priority":1,"createTime":"2025-04-28 18:45:04","sceneId":"abk1235kgnbaoj2j4l6j6h3hw","needAmr":1}
2025-04-28 18:45:04,093 - services.sync_service - WARNING - 同步任务到系统任务失败: JSON parse error: Cannot deserialize value of type `java.lang.Integer` from Boolean value (token `JsonToken.VALUE_FALSE`)
2025-04-28 18:45:04,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: e9fdd4f4-35f7-48cb-b385-e289f50df03b, 优先级: 1
2025-04-28 18:45:04,094 - services.execution.task_executor - DEBUG - 任务 e9fdd4f4-35f7-48cb-b385-e289f50df03b 设置超时时间: 3600秒
2025-04-28 18:45:04,094 - services.enhanced_scheduler.task_scheduler - WARNING - 同步任务到主任务系统失败: e9fdd4f4-35f7-48cb-b385-e289f50df03b
2025-04-28 18:45:04,095 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: e9fdd4f4-35f7-48cb-b385-e289f50df03b
2025-04-28 18:45:04,095 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0689秒
2025-04-28 18:45:04,095 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:45:04,096 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:45:04,096 - sqlalchemy.engine.Engine - INFO - [cached since 0.03027s ago] ('e9fdd4f4-35f7-48cb-b385-e289f50df03b',)
2025-04-28 18:45:04,098 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:45:04,098 - sqlalchemy.engine.Engine - INFO - [cached since 0.06855s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:45:04,100 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:45:04,100 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (datetime.datetime(2025, 4, 28, 18, 45, 4, 99525), datetime.datetime(2025, 4, 28, 18, 45, 4, 100524), 'e9fdd4f4-35f7-48cb-b385-e289f50df03b')
2025-04-28 18:45:04,101 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:45:04,109 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:45:04,111 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:45:04,112 - sqlalchemy.engine.Engine - INFO - [generated in 0.00074s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 45, 4, 111528), 'e9fdd4f4-35f7-48cb-b385-e289f50df03b')
2025-04-28 18:45:04,113 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:45:04,121 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-28 18:45:04,122 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:45:04,130 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:45:04,130 - sqlalchemy.engine.Engine - INFO - [generated in 0.00094s] ('9f8323b1-0c54-4d9f-a44a-a96be0f6f06e', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'e9fdd4f4-35f7-48cb-b385-e289f50df03b', datetime.datetime(2025, 4, 28, 18, 45, 4, 122251), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 45, 4, 130776), datetime.datetime(2025, 4, 28, 18, 45, 4, 130776), 0)
2025-04-28 18:45:04,133 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:45:04,139 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:45:04,142 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:45:04,143 - sqlalchemy.engine.Engine - INFO - [generated in 0.00063s] ('9f8323b1-0c54-4d9f-a44a-a96be0f6f06e',)
2025-04-28 18:45:04,144 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:45:04,145 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:45:04,146 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:45:04,147 - sqlalchemy.engine.Engine - INFO - [generated in 0.00093s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 45, 4, 146477), '9f8323b1-0c54-4d9f-a44a-a96be0f6f06e')
2025-04-28 18:45:04,149 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:45:04,156 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-28 18:45:04,159 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-28 18:45:04,160 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-28 18:45:04,161 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:45:04,165 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:45:04,166 - sqlalchemy.engine.Engine - INFO - [cached since 0.03599s ago] ('ec5385ca-c962-4d0a-97fa-cbee1be034a2', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{"priority": "10", "vehicle": "amr1", "group": "group_amr", "keyRoute": "apt1"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'e9fdd4f4-35f7-48cb-b385-e289f50df03b', datetime.datetime(2025, 4, 28, 18, 45, 4, 160478), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 45, 4, 165484), datetime.datetime(2025, 4, 28, 18, 45, 4, 165484), 0)
2025-04-28 18:45:04,168 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:45:04,176 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: ec5385ca-c962-4d0a-97fa-cbee1be034a2
2025-04-28 18:45:04,176 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:45:04,177 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:45:04,178 - sqlalchemy.engine.Engine - INFO - [cached since 0.03606s ago] ('ec5385ca-c962-4d0a-97fa-cbee1be034a2',)
2025-04-28 18:45:04,181 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:45:04,183 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:45:04,185 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:45:04,186 - sqlalchemy.engine.Engine - INFO - [cached since 0.04034s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 45, 4, 185485), 'ec5385ca-c962-4d0a-97fa-cbee1be034a2')
2025-04-28 18:45:04,189 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:45:04,196 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-28 18:45:04,197 - services.sync_service - INFO - 正在为任务选择AMR: e9fdd4f4-35f7-48cb-b385-e289f50df03b, 站点: apt1
2025-04-28 18:45:04,266 - services.sync_service - WARNING - 为任务选择AMR失败: 不支持POST请求方法，支持以下GET、
2025-04-28 18:45:04,267 - services.sync_service - INFO - 正在封口任务: e9fdd4f4-35f7-48cb-b385-e289f50df03b
2025-04-28 18:45:04,289 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-28 18:45:04,291 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:45:04,293 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:45:04,293 - sqlalchemy.engine.Engine - INFO - [generated in 0.00079s] ('550dedc0-9426-4ab6-aa2c-c60b9a171650', 3, '{"success": false, "message": "选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "code": 405, "result": null, "timestamp": 1745837103311}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'e9fdd4f4-35f7-48cb-b385-e289f50df03b', datetime.datetime(2025, 4, 28, 18, 45, 4, 293369), datetime.datetime(2025, 4, 28, 18, 45, 4, 293369), 0)
2025-04-28 18:45:04,294 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:45:04,306 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:45:04,307 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:45:04,308 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:45:04,308 - sqlalchemy.engine.Engine - INFO - [cached since 0.1661s ago] ('ec5385ca-c962-4d0a-97fa-cbee1be034a2',)
2025-04-28 18:45:04,309 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:45:04,310 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:45:04,311 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:45:04,312 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] (datetime.datetime(2025, 4, 28, 18, 45, 4, 310010), '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 45, 4, 311114), 'ec5385ca-c962-4d0a-97fa-cbee1be034a2')
2025-04-28 18:45:04,313 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:45:04,321 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:45:04,321 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:45:04,321 - sqlalchemy.engine.Engine - INFO - [cached since 0.02938s ago] ('9236a55f-caf7-46b8-a4eb-e3528202bb89', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'e9fdd4f4-35f7-48cb-b385-e289f50df03b', datetime.datetime(2025, 4, 28, 18, 45, 4, 321394), datetime.datetime(2025, 4, 28, 18, 45, 4, 321394), 0)
2025-04-28 18:45:04,322 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:45:04,329 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:45:04,332 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:45:04,332 - sqlalchemy.engine.Engine - INFO - [cached since 0.1897s ago] ('9f8323b1-0c54-4d9f-a44a-a96be0f6f06e',)
2025-04-28 18:45:04,333 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:45:04,333 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:45:04,333 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:45:04,333 - sqlalchemy.engine.Engine - INFO - [cached since 0.02232s ago] (datetime.datetime(2025, 4, 28, 18, 45, 4, 333052), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 45, 4, 333052), '9f8323b1-0c54-4d9f-a44a-a96be0f6f06e')
2025-04-28 18:45:04,334 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:45:04,341 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:45:04,341 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:45:04,341 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (datetime.datetime(2025, 4, 28, 18, 45, 4, 340058), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskStatus.FAILED: 2000>, 230, 1, datetime.datetime(2025, 4, 28, 18, 45, 4, 341058), 'e9fdd4f4-35f7-48cb-b385-e289f50df03b')
2025-04-28 18:45:04,342 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:45:04,347 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: e9fdd4f4-35f7-48cb-b385-e289f50df03b, 结果: False
2025-04-28 18:46:00,566 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:46:00,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:46:00,570 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:46:00,570 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:46:00,570 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:46:00,571 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:46:00,573 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:46:00,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:46:00,577 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:46:00,580 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:46:00,580 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:46:00,583 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:46:00,591 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:46:00,591 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:46:00,593 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:46:00,595 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:46:00,597 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:46:00,598 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:46:00,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:46:00,603 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:46:00,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:46:00,606 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:46:00,607 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:46:00,614 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:46:00,617 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:46:00,620 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:46:00,624 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 46, 0, 617774))
2025-04-28 18:46:00,628 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:46:15,629 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:46:15,631 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:46:15,631 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:46:15,632 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:46:15,633 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:46:15,633 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:47:00,650 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:47:00,652 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:47:00,652 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 47, 0, 650006))
2025-04-28 18:47:00,654 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:47:00,657 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:47:00,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:47:00,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:47:00,658 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:47:00,658 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:47:00,658 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:47:00,658 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:47:00,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:47:00,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:47:00,659 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:47:00,659 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:47:00,659 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:47:00,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:47:00,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:47:00,660 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:47:00,660 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:47:00,660 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:47:00,661 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:47:00,661 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:47:00,661 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:47:00,661 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:47:00,661 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:47:00,661 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:47:00,667 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:47:15,656 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:47:15,658 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:47:15,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:47:15,661 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:47:15,664 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:47:15,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:48:00,686 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:48:00,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:48:00,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:48:00,693 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:48:00,693 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:48:00,693 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:48:00,693 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:48:00,694 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:48:00,694 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 48, 0, 685948))
2025-04-28 18:48:00,694 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:48:00,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:48:00,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:48:00,696 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:48:00,698 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:48:00,698 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:48:00,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:48:00,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:48:00,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:48:00,699 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:48:00,701 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:48:00,702 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:48:00,703 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:48:00,703 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:48:00,703 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:48:00,704 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:48:00,704 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:48:00,704 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:48:00,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:48:15,710 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:48:15,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:48:15,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:48:15,713 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:48:15,714 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:48:15,716 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:49:00,721 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:49:00,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:49:00,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:49:00,722 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:49:00,722 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:49:00,725 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:49:00,729 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:49:00,733 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:49:00,735 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 49, 0, 720584))
2025-04-28 18:49:00,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:49:00,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:49:00,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:49:00,742 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:49:00,743 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:49:00,745 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:49:00,747 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:49:00,747 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:49:00,748 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:49:00,750 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:49:00,750 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:49:00,751 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:49:00,751 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:49:00,752 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:49:00,752 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:49:00,752 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:49:00,752 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:49:00,752 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:49:00,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:49:00,939 - app - INFO - 应用程序关闭中...
2025-04-28 18:49:00,939 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:49:00,941 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:49:00,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:49:00,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:49:00,946 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:49:00,946 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:49:00,949 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:49:00,951 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:49:00,951 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:49:00,951 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:49:00,951 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:49:00,951 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:49:00,954 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:49:00,956 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:49:00,958 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:49:00,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:49:00,962 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:49:00,963 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:49:00,963 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:49:00,963 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:49:00,964 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:49:00,964 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:49:00,964 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:49:00,964 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:49:00,964 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:49:00,965 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:49:00,965 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:49:00,966 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:49:02,061 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:49:02,121 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:49:02,124 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:49:02,182 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:49:02,228 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:49:02,254 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:49:02,281 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:49:02,281 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:49:02,282 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:49:02,282 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:49:02,283 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:49:02,283 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:49:02,284 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:49:02,285 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:49:02,287 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:49:02,288 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:49:02,291 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:49:02,294 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:49:02,295 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:49:02,297 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:49:02,297 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:49:02,298 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:49:02,298 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:49:02,299 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:49:02,300 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:49:02,300 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:49:02,301 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:49:02,301 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:49:02,301 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:49:02,302 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:49:02,303 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:49:02,303 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:49:02,303 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:49:02,304 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:49:02,304 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:49:02,305 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:49:02,306 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:49:02,651 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:49:02,651 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:49:02,651 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:49:02,651 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:49:02,653 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:49:02,655 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:49:02,658 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:49:02,661 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:49:02,666 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:49:02,666 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:49:02,666 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:49:02,667 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:49:02,668 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:49:02,669 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:49:02,670 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:49:02,670 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:49:02,670 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:49:02,670 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:49:02,671 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:49:02,671 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:49:02,672 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:49:02,672 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:49:02,673 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:49:02,673 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:49:02,674 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:49:02,676 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:49:02,677 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:49:02,678 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:49:02,687 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:49:02,688 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:49:02,689 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:49:02,689 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:49:02,690 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:49:02,690 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:49:02,691 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:49:02,691 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:49:02,694 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:49:02,694 - sqlalchemy.engine.Engine - INFO - [generated in 0.00092s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:49:02,696 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:49:02,697 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:49:02,697 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:49:02,697 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:49:02,698 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:49:02,701 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:49:02,701 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:49:02,702 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:49:02,703 - sqlalchemy.engine.Engine - INFO - [generated in 0.00110s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 49, 2, 691596))
2025-04-28 18:49:02,705 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:50:02,715 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:50:02,716 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:50:02,717 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:50:02,717 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:50:02,719 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:50:02,721 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:50:02,721 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:50:02,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:50:02,723 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:50:02,723 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:50:02,723 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:50:02,723 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:50:02,723 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:50:02,724 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:50:02,724 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 50, 2, 717499))
2025-04-28 18:50:02,724 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:50:02,724 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:50:02,724 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:50:02,724 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:50:02,724 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:50:02,724 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:50:02,724 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:50:02,726 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:50:02,726 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:50:02,726 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:50:02,726 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:50:02,726 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:50:02,726 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:50:02,726 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:50:02,726 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:50:02,726 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:50:02,726 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:50:02,727 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:50:02,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:50:11,298 - app - INFO - 应用程序关闭中...
2025-04-28 18:50:11,299 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:50:11,299 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:50:11,299 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:50:11,299 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:50:11,300 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:50:11,300 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:50:11,300 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:50:11,300 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:50:11,301 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:50:11,301 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:50:11,301 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:50:11,301 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:50:11,302 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:50:11,302 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:50:11,302 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:50:11,303 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:50:11,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:50:11,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:50:11,304 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:50:11,304 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:50:11,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:50:11,305 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:50:11,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:50:11,306 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:50:11,306 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:50:11,307 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:50:11,307 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:50:11,307 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:50:11,307 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:50:11,308 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:50:11,308 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:50:11,309 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:50:12,608 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:50:12,667 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:50:12,671 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:50:12,732 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:50:12,779 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:50:12,802 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:50:12,828 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:50:12,828 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:50:12,829 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:50:12,830 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:50:12,830 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:50:12,830 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:50:12,831 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:50:12,831 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:50:12,832 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:50:12,833 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:50:12,834 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:50:12,836 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:50:12,836 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:50:12,837 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:50:12,837 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:50:12,838 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:50:12,838 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:50:12,839 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:50:12,840 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:50:12,841 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:50:12,841 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:50:12,842 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:50:12,842 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:50:12,843 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:50:12,844 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:50:12,845 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:50:12,845 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:50:12,846 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:50:12,846 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:50:12,847 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:50:12,848 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:50:13,196 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:50:13,197 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:50:13,198 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:50:13,199 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:50:13,199 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:50:13,199 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:50:13,199 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:50:13,199 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:50:13,200 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:50:13,200 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:50:13,200 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:50:13,200 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:50:13,201 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:50:13,202 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:50:13,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:50:13,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:50:13,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:50:13,204 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:50:13,204 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:50:13,204 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:50:13,205 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:50:13,206 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:50:13,206 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:50:13,207 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:50:13,207 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:50:13,208 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:50:13,208 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:50:13,209 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:50:13,218 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:50:13,219 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:50:13,220 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:50:13,220 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:50:13,221 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:50:13,221 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:50:13,221 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:50:13,222 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:50:13,224 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:50:13,225 - sqlalchemy.engine.Engine - INFO - [generated in 0.00085s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:50:13,226 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:50:13,227 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:50:13,227 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:50:13,227 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:50:13,227 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:50:13,228 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:50:13,228 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:50:13,229 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:50:13,229 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 50, 13, 222944))
2025-04-28 18:50:13,230 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:50:14,910 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-28 18:50:14,914 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:50:14,917 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:50:14,920 - sqlalchemy.engine.Engine - INFO - [generated in 0.00284s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:50:14,922 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:50:14,926 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:50:14,928 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:50:14,931 - sqlalchemy.engine.Engine - INFO - [cached since 0.01399s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:50:14,934 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:50:14,936 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-28 18:50:14,936 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-28 18:50:14,936 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-28 18:50:14,937 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:50:14,941 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-28 18:50:14,944 - sqlalchemy.engine.Engine - INFO - [generated in 0.00259s] (None, datetime.datetime(2025, 4, 28, 18, 50, 14, 941140), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-28 18:50:14,945 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:50:14,953 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:50:14,956 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:50:14,960 - sqlalchemy.engine.Engine - INFO - [cached since 0.04265s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:50:14,963 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:50:14,963 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] ('e05c502a-6077-4ab4-a1b7-7fea6ffa434f', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 2, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (425 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 28, 18, 50, 14, 936132), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 28, 18, 50, 14, 962133), datetime.datetime(2025, 4, 28, 18, 50, 14, 962133), 0)
2025-04-28 18:50:14,964 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:50:14,972 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:50:14,975 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:50:14,975 - sqlalchemy.engine.Engine - INFO - [generated in 0.00061s] ('e05c502a-6077-4ab4-a1b7-7fea6ffa434f',)
2025-04-28 18:50:14,976 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:50:14,977 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 e05c502a-6077-4ab4-a1b7-7fea6ffa434f (优先级 1) 添加到队列 0
2025-04-28 18:50:14,982 - services.sync_service - INFO - 正在同步创建任务到天风系统: e05c502a-6077-4ab4-a1b7-7fea6ffa434f
2025-04-28 18:50:14,982 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"e05c502a-6077-4ab4-a1b7-7fea6ffa434f","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":false,"priority":1,"createTime":"2025-04-28 18:50:14","sceneId":"abk1235kgnbaoj2j4l6j6h3hw","needAmr":1}
2025-04-28 18:50:15,056 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: e05c502a-6077-4ab4-a1b7-7fea6ffa434f, 优先级: 1
2025-04-28 18:50:15,056 - services.execution.task_executor - DEBUG - 任务 e05c502a-6077-4ab4-a1b7-7fea6ffa434f 设置超时时间: 3600秒
2025-04-28 18:50:15,057 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:50:15,057 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:50:15,058 - sqlalchemy.engine.Engine - INFO - [cached since 0.08263s ago] ('e05c502a-6077-4ab4-a1b7-7fea6ffa434f',)
2025-04-28 18:50:15,059 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:50:15,059 - sqlalchemy.engine.Engine - INFO - [cached since 0.1417s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:50:15,060 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:50:15,060 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] (datetime.datetime(2025, 4, 28, 18, 50, 15, 59169), datetime.datetime(2025, 4, 28, 18, 50, 15, 60169), 'e05c502a-6077-4ab4-a1b7-7fea6ffa434f')
2025-04-28 18:50:15,061 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:50:15,069 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:50:15,070 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:50:15,070 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 50, 15, 70173), 'e05c502a-6077-4ab4-a1b7-7fea6ffa434f')
2025-04-28 18:50:15,072 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:50:15,076 - services.sync_service - WARNING - 同步任务到系统任务失败: JSON parse error: Cannot deserialize value of type `java.lang.Integer` from Boolean value (token `JsonToken.VALUE_FALSE`)
2025-04-28 18:50:15,076 - services.enhanced_scheduler.task_scheduler - WARNING - 同步任务到主任务系统失败: e05c502a-6077-4ab4-a1b7-7fea6ffa434f
2025-04-28 18:50:15,077 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: e05c502a-6077-4ab4-a1b7-7fea6ffa434f
2025-04-28 18:50:15,077 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1670秒
2025-04-28 18:50:15,080 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-28 18:50:15,081 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:50:15,082 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:50:15,083 - sqlalchemy.engine.Engine - INFO - [generated in 0.00053s] ('d3779885-1c95-445d-b83a-939e1d467e5c', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'e05c502a-6077-4ab4-a1b7-7fea6ffa434f', datetime.datetime(2025, 4, 28, 18, 50, 15, 80177), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 50, 15, 82176), datetime.datetime(2025, 4, 28, 18, 50, 15, 82176), 0)
2025-04-28 18:50:15,083 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:50:15,090 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:50:15,092 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:50:15,094 - sqlalchemy.engine.Engine - INFO - [generated in 0.00137s] ('d3779885-1c95-445d-b83a-939e1d467e5c',)
2025-04-28 18:50:15,096 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:50:15,096 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:50:15,099 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:50:15,102 - sqlalchemy.engine.Engine - INFO - [generated in 0.00361s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 50, 15, 99528), 'd3779885-1c95-445d-b83a-939e1d467e5c')
2025-04-28 18:50:15,103 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:50:15,109 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-28 18:50:15,109 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-28 18:50:15,110 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-28 18:50:15,110 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:50:15,111 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:50:15,111 - sqlalchemy.engine.Engine - INFO - [cached since 0.02955s ago] ('b5f027ee-0201-4ac8-ab61-cbcdacb0d3ce', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{"priority": "10", "vehicle": "amr1", "group": "group_amr", "keyRoute": "apt1"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'e05c502a-6077-4ab4-a1b7-7fea6ffa434f', datetime.datetime(2025, 4, 28, 18, 50, 15, 110866), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 50, 15, 111866), datetime.datetime(2025, 4, 28, 18, 50, 15, 111866), 0)
2025-04-28 18:50:15,112 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:50:15,118 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: b5f027ee-0201-4ac8-ab61-cbcdacb0d3ce
2025-04-28 18:50:15,119 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:50:15,119 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:50:15,119 - sqlalchemy.engine.Engine - INFO - [cached since 0.02719s ago] ('b5f027ee-0201-4ac8-ab61-cbcdacb0d3ce',)
2025-04-28 18:50:15,120 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:50:15,120 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:50:15,121 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:50:15,121 - sqlalchemy.engine.Engine - INFO - [cached since 0.02239s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 50, 15, 120867), 'b5f027ee-0201-4ac8-ab61-cbcdacb0d3ce')
2025-04-28 18:50:15,121 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:50:15,127 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-28 18:50:15,128 - services.sync_service - INFO - 正在为任务选择AMR: e05c502a-6077-4ab4-a1b7-7fea6ffa434f, 站点: apt1
2025-04-28 18:50:15,177 - services.sync_service - WARNING - 为任务选择AMR失败: 不支持POST请求方法，支持以下GET、
2025-04-28 18:50:15,178 - services.sync_service - INFO - 正在封口任务: e05c502a-6077-4ab4-a1b7-7fea6ffa434f
2025-04-28 18:50:15,226 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-28 18:50:15,227 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:50:15,229 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:50:15,230 - sqlalchemy.engine.Engine - INFO - [generated in 0.00105s] ('65193e29-dade-44d5-a39a-d1c2b8c15c13', 3, '{"success": false, "message": "选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "code": 405, "result": null, "timestamp": 1745837414251}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'e05c502a-6077-4ab4-a1b7-7fea6ffa434f', datetime.datetime(2025, 4, 28, 18, 50, 15, 229344), datetime.datetime(2025, 4, 28, 18, 50, 15, 229344), 0)
2025-04-28 18:50:15,231 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:50:15,256 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:50:15,260 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:50:15,262 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:50:15,263 - sqlalchemy.engine.Engine - INFO - [cached since 0.1705s ago] ('b5f027ee-0201-4ac8-ab61-cbcdacb0d3ce',)
2025-04-28 18:50:15,267 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:50:15,267 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:50:15,270 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:50:15,271 - sqlalchemy.engine.Engine - INFO - [generated in 0.00164s] (datetime.datetime(2025, 4, 28, 18, 50, 15, 268388), '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 50, 15, 269388), 'b5f027ee-0201-4ac8-ab61-cbcdacb0d3ce')
2025-04-28 18:50:15,274 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:50:15,286 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:50:15,288 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:50:15,289 - sqlalchemy.engine.Engine - INFO - [cached since 0.05993s ago] ('76246fdc-c86d-4cf2-9426-796f8aac597b', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'e05c502a-6077-4ab4-a1b7-7fea6ffa434f', datetime.datetime(2025, 4, 28, 18, 50, 15, 288384), datetime.datetime(2025, 4, 28, 18, 50, 15, 288384), 0)
2025-04-28 18:50:15,294 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:50:15,303 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:50:15,304 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:50:15,305 - sqlalchemy.engine.Engine - INFO - [cached since 0.2124s ago] ('d3779885-1c95-445d-b83a-939e1d467e5c',)
2025-04-28 18:50:15,307 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:50:15,308 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:50:15,309 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:50:15,310 - sqlalchemy.engine.Engine - INFO - [cached since 0.04073s ago] (datetime.datetime(2025, 4, 28, 18, 50, 15, 308388), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 50, 15, 309388), 'd3779885-1c95-445d-b83a-939e1d467e5c')
2025-04-28 18:50:15,312 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:50:15,322 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:50:15,325 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:50:15,326 - sqlalchemy.engine.Engine - INFO - [generated in 0.00112s] (datetime.datetime(2025, 4, 28, 18, 50, 15, 321390), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskStatus.FAILED: 2000>, 252, 1, datetime.datetime(2025, 4, 28, 18, 50, 15, 325386), 'e05c502a-6077-4ab4-a1b7-7fea6ffa434f')
2025-04-28 18:50:15,328 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:50:15,334 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: e05c502a-6077-4ab4-a1b7-7fea6ffa434f, 结果: False
2025-04-28 18:51:13,228 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:51:13,228 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:51:13,229 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 51, 13, 227669))
2025-04-28 18:51:13,230 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:51:13,258 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:51:13,259 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:51:13,259 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:51:13,259 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:51:13,259 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:51:13,259 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:51:13,260 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:51:13,260 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:51:13,260 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:51:13,260 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:51:13,260 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:51:13,260 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:51:13,261 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:51:13,261 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:51:13,261 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:51:13,261 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:51:13,261 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:51:13,261 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:51:13,261 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:51:13,261 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:51:13,261 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:51:13,261 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:51:13,261 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:51:13,266 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:51:28,254 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:51:28,255 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:51:28,255 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:51:28,255 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:51:28,255 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:51:28,256 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:51:28,472 - app - INFO - 应用程序关闭中...
2025-04-28 18:51:28,472 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:51:28,473 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:51:28,473 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:51:28,474 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:51:28,474 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:51:28,474 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:51:28,475 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:51:28,475 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:51:28,476 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:51:28,476 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:51:28,476 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:51:28,476 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:51:28,476 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:51:28,476 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:51:28,476 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:51:28,477 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-28 18:51:28,477 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:51:28,477 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:51:28,477 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-28 18:51:28,477 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:51:28,477 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:51:28,477 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-28 18:51:28,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:51:28,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:51:28,478 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-28 18:51:28,478 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:51:28,478 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:51:28,478 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:51:28,478 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:51:28,480 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:51:28,480 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:51:28,481 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:51:29,779 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:51:29,836 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:51:29,838 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:51:29,898 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:51:29,946 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:51:29,973 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:51:29,998 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:51:29,998 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:51:29,999 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:51:29,999 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:51:30,001 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:51:30,001 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:51:30,001 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:51:30,002 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:51:30,002 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:51:30,003 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:51:30,004 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:51:30,005 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:51:30,005 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:51:30,006 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:51:30,007 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:51:30,007 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:51:30,007 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:51:30,008 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:51:30,008 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:51:30,009 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:51:30,009 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:51:30,010 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:51:30,010 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:51:30,011 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:51:30,012 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:51:30,013 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:51:30,013 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:51:30,014 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:51:30,014 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:51:30,015 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:51:30,015 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:51:30,371 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:51:30,372 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:51:30,372 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:51:30,372 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:51:30,373 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:51:30,373 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:51:30,373 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:51:30,373 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:51:30,373 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:51:30,373 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:51:30,373 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:51:30,373 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:51:30,373 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:51:30,374 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:51:30,375 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:51:30,375 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:51:30,375 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:51:30,375 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:51:30,376 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:51:30,376 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:51:30,377 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:51:30,377 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:51:30,377 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:51:30,378 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:51:30,378 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:51:30,378 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:51:30,379 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:51:30,379 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:51:30,387 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:51:30,389 - sqlalchemy.engine.Engine - INFO - [generated in 0.00061s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:51:30,390 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:51:30,390 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:51:30,391 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:51:30,391 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:51:30,392 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:51:30,392 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:51:30,394 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:51:30,394 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:51:30,396 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:51:30,396 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:51:30,396 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:51:30,396 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:51:30,397 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:51:30,397 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:51:30,397 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:51:30,398 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:51:30,399 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 51, 30, 392407))
2025-04-28 18:51:30,400 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:52:30,378 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:52:30,379 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:52:30,379 - sqlalchemy.engine.Engine - INFO - [cached since 59.98s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 52, 30, 378468))
2025-04-28 18:52:30,380 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:52:30,425 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:52:30,426 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:52:30,426 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:52:30,426 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:52:30,426 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:52:30,426 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:52:30,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:52:30,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:52:30,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:52:30,427 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:52:30,427 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:52:30,427 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:52:30,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:52:30,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:52:30,428 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:52:30,428 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:52:30,428 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:52:30,428 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:52:30,428 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:52:30,428 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:52:30,428 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:52:30,428 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:52:30,429 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:52:30,429 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:52:30,429 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:52:30,429 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:52:30,429 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:52:30,429 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:52:30,429 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:52:30,434 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:52:30,614 - app - INFO - 应用程序关闭中...
2025-04-28 18:52:30,614 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:52:30,614 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:52:30,614 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:52:30,614 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:52:30,614 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:52:30,615 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:52:30,615 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:52:30,615 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:52:30,615 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:52:30,615 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:52:30,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:52:30,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:52:30,616 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:52:30,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:52:30,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:52:30,616 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:52:30,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:52:30,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:52:30,616 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:52:30,617 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:52:30,617 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:52:30,617 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:52:30,617 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:52:30,617 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:52:30,617 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:52:30,617 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:52:30,617 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:52:30,618 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:52:30,618 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:52:30,618 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:52:30,618 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:52:30,619 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:52:31,859 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:52:31,917 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:52:31,919 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:52:31,978 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:52:32,026 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:52:32,059 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:52:32,079 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:52:32,079 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:52:32,080 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:52:32,081 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:52:32,081 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:52:32,082 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:52:32,082 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:52:32,083 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:52:32,083 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:52:32,084 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:52:32,084 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:52:32,086 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:52:32,086 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:52:32,087 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:52:32,087 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:52:32,088 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:52:32,088 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:52:32,089 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:52:32,089 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:52:32,090 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:52:32,090 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:52:32,091 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:52:32,091 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:52:32,092 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:52:32,092 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:52:32,093 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:52:32,093 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:52:32,094 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:52:32,094 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:52:32,095 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:52:32,096 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:52:32,445 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:52:32,445 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:52:32,446 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:52:32,446 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:52:32,447 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:52:32,447 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:52:32,447 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:52:32,447 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:52:32,448 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:52:32,448 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:52:32,448 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:52:32,448 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:52:32,448 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:52:32,450 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:52:32,450 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:52:32,450 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:52:32,450 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:52:32,450 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:52:32,450 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:52:32,450 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:52:32,460 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:52:32,460 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:52:32,460 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:52:32,461 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:52:32,461 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:52:32,462 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:52:32,462 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:52:32,462 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:52:32,471 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:52:32,472 - sqlalchemy.engine.Engine - INFO - [generated in 0.00064s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:52:32,473 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:52:32,473 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:52:32,474 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:52:32,474 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:52:32,475 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:52:32,475 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:52:32,477 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:52:32,477 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:52:32,478 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:52:32,478 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:52:32,478 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:52:32,478 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:52:32,479 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:52:32,479 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:52:32,479 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:52:32,480 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:52:32,480 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 52, 32, 475401))
2025-04-28 18:52:32,481 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:32,454 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 18:53:32,456 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:53:32,456 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:53:32,456 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:53:32,456 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 18:53:32,457 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:53:32,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:53:32,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:53:32,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:53:32,457 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:53:32,457 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:53:32,457 - sqlalchemy.engine.Engine - INFO - [cached since 59.98s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 53, 32, 456361))
2025-04-28 18:53:32,458 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:53:32,458 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:53:32,458 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:53:32,458 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:53:32,459 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:53:32,459 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:53:32,459 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:53:32,459 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:53:32,459 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:53:32,459 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:32,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:53:32,461 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:53:32,461 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:53:32,461 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:53:32,461 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:53:32,461 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:53:32,461 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:53:32,461 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:53:32,461 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:53:32,461 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:53:32,461 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:53:32,469 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:53:32,628 - app - INFO - 应用程序关闭中...
2025-04-28 18:53:32,628 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:53:32,629 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:53:32,629 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:53:32,630 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:53:32,631 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:53:32,631 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:53:32,631 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:53:32,631 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:53:32,633 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:53:32,633 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:53:32,633 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:53:32,633 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:53:32,633 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:53:32,633 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:53:32,633 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:53:32,633 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:53:32,633 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:53:32,633 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:53:32,633 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:53:32,633 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:53:32,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:53:32,634 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:53:32,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:53:32,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:53:32,635 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:53:32,635 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:53:32,635 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:53:32,635 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:53:32,635 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:53:32,635 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:53:32,636 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:53:32,636 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:53:33,941 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:53:34,000 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:53:34,003 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:53:34,062 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:53:34,111 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:53:34,141 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:53:34,165 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:53:34,165 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:34,167 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:53:34,167 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:34,168 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:53:34,168 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:34,169 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:53:34,169 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:53:34,169 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:34,172 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:53:34,172 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:34,173 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:53:34,173 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:34,174 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:53:34,174 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:34,175 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:53:34,175 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:34,175 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:53:34,176 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:34,176 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:53:34,177 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:34,177 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:53:34,177 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:34,178 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:53:34,178 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:34,179 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:53:34,179 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:34,180 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:53:34,192 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:34,196 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:34,201 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:53:34,553 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:53:34,553 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:53:34,554 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:53:34,554 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:53:34,554 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:53:34,555 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:53:34,555 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:53:34,555 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:53:34,555 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:53:34,555 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:53:34,555 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:53:34,556 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:53:34,556 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:53:34,557 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:53:34,558 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:53:34,558 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:53:34,558 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:53:34,558 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:53:34,558 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:53:34,558 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:53:34,559 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:53:34,560 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:53:34,561 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:53:34,561 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:53:34,561 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:53:34,562 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:53:34,562 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:53:34,563 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:53:34,572 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:53:34,573 - sqlalchemy.engine.Engine - INFO - [generated in 0.00094s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:53:34,575 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:53:34,575 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:34,577 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:53:34,577 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:53:34,578 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:53:34,578 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:53:34,580 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:53:34,581 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:53:34,582 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:34,583 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:53:34,584 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:53:34,584 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:53:34,584 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:53:34,585 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:53:34,585 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:53:34,586 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:53:34,586 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 53, 34, 578834))
2025-04-28 18:53:34,587 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:52,204 - app - INFO - 应用程序关闭中...
2025-04-28 18:53:52,204 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:53:52,204 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:53:52,204 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:53:52,205 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:53:52,205 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:53:52,205 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:53:52,205 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:53:52,205 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:53:52,207 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:53:52,207 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:53:52,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:53:52,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:53:52,207 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:53:52,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:53:52,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:53:52,207 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:53:52,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:53:52,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:53:52,207 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:53:52,208 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:53:52,208 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:53:52,208 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:53:52,208 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:53:52,208 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:53:52,208 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:53:52,208 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:53:52,209 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:53:52,209 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:53:52,209 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:53:52,209 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:53:52,209 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:53:52,210 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:53:53,806 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:53:53,863 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:53:53,864 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:53:54,546 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:53:54,604 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:53:54,606 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:53:54,661 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:53:54,708 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:53:54,726 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:53:54,745 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:53:54,745 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:54,746 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:53:54,746 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:54,746 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:53:54,746 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:54,746 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:53:54,746 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:53:54,748 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:54,749 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:53:54,749 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:54,750 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:53:54,750 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:54,751 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:53:54,751 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:54,752 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:53:54,752 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:54,753 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:53:54,753 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:54,754 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:53:54,754 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:54,755 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:53:54,755 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:54,756 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:53:54,756 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:54,757 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:53:54,757 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:54,758 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:53:54,758 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:53:54,759 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:54,760 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:53:55,105 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:53:55,106 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:53:55,106 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:53:55,107 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:53:55,107 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:53:55,107 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:53:55,107 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:53:55,107 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:53:55,107 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:53:55,108 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:53:55,108 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:53:55,108 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:53:55,108 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:53:55,110 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:53:55,110 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:53:55,110 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:53:55,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:53:55,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:53:55,111 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:53:55,111 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:53:55,112 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:53:55,112 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:53:55,113 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:53:55,114 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:53:55,114 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:53:55,114 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:53:55,114 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:53:55,114 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:53:55,123 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:53:55,123 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:53:55,125 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:53:55,125 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:55,126 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:53:55,126 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:53:55,126 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:53:55,126 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:53:55,129 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:53:55,129 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:53:55,130 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:55,130 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:53:55,131 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:53:55,131 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:53:55,131 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:53:55,131 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:53:55,131 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:53:55,132 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:53:55,132 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 53, 55, 126976))
2025-04-28 18:53:55,133 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:57,128 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-28 18:53:57,131 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:53:57,132 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:53:57,132 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:53:57,133 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:57,134 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:53:57,135 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:53:57,136 - sqlalchemy.engine.Engine - INFO - [cached since 0.003675s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:53:57,137 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:57,138 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-28 18:53:57,140 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-28 18:53:57,140 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-28 18:53:57,141 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:53:57,142 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-28 18:53:57,143 - sqlalchemy.engine.Engine - INFO - [generated in 0.00071s] (None, datetime.datetime(2025, 4, 28, 18, 53, 57, 142294), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-28 18:53:57,143 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:57,151 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:53:57,151 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:53:57,151 - sqlalchemy.engine.Engine - INFO - [cached since 0.01946s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:53:57,153 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:53:57,153 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('41e256bf-5958-477a-9677-41f323b34181', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 2, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (425 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 28, 18, 53, 57, 138337), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 28, 18, 53, 57, 153408), datetime.datetime(2025, 4, 28, 18, 53, 57, 153408), 0)
2025-04-28 18:53:57,154 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:57,160 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:53:57,162 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:53:57,162 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] ('41e256bf-5958-477a-9677-41f323b34181',)
2025-04-28 18:53:57,164 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:57,166 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 41e256bf-5958-477a-9677-41f323b34181 (优先级 1) 添加到队列 0
2025-04-28 18:53:57,171 - services.sync_service - INFO - 正在同步创建任务到天风系统: 41e256bf-5958-477a-9677-41f323b34181
2025-04-28 18:53:57,171 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"41e256bf-5958-477a-9677-41f323b34181","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":false,"priority":1,"createTime":"2025-04-28 18:53:57","sceneId":"abk1235kgnbaoj2j4l6j6h3hw","needAmr":1}
2025-04-28 18:53:57,232 - services.sync_service - WARNING - 同步任务到系统任务失败: JSON parse error: Cannot deserialize value of type `java.lang.Integer` from Boolean value (token `JsonToken.VALUE_FALSE`)
2025-04-28 18:53:57,237 - services.enhanced_scheduler.task_scheduler - WARNING - 同步任务到主任务系统失败: 41e256bf-5958-477a-9677-41f323b34181
2025-04-28 18:53:57,238 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 41e256bf-5958-477a-9677-41f323b34181
2025-04-28 18:53:57,238 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1105秒
2025-04-28 18:53:57,274 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 41e256bf-5958-477a-9677-41f323b34181, 优先级: 1
2025-04-28 18:53:57,275 - services.execution.task_executor - DEBUG - 任务 41e256bf-5958-477a-9677-41f323b34181 设置超时时间: 3600秒
2025-04-28 18:53:57,276 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:53:57,276 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:53:57,277 - sqlalchemy.engine.Engine - INFO - [cached since 0.1146s ago] ('41e256bf-5958-477a-9677-41f323b34181',)
2025-04-28 18:53:57,280 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:53:57,281 - sqlalchemy.engine.Engine - INFO - [cached since 0.149s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:53:57,283 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:53:57,284 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (datetime.datetime(2025, 4, 28, 18, 53, 57, 282174), datetime.datetime(2025, 4, 28, 18, 53, 57, 283183), '41e256bf-5958-477a-9677-41f323b34181')
2025-04-28 18:53:57,285 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:57,293 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:53:57,294 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:53:57,294 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 53, 57, 294774), '41e256bf-5958-477a-9677-41f323b34181')
2025-04-28 18:53:57,295 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:57,305 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-28 18:53:57,306 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:53:57,307 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:53:57,308 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] ('e2b62b42-1026-4b52-92ee-2a3f7f382a4c', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '41e256bf-5958-477a-9677-41f323b34181', datetime.datetime(2025, 4, 28, 18, 53, 57, 305317), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 53, 57, 307320), datetime.datetime(2025, 4, 28, 18, 53, 57, 307320), 0)
2025-04-28 18:53:57,308 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:57,315 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:53:57,317 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:53:57,317 - sqlalchemy.engine.Engine - INFO - [generated in 0.00085s] ('e2b62b42-1026-4b52-92ee-2a3f7f382a4c',)
2025-04-28 18:53:57,319 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:53:57,319 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:53:57,320 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:53:57,320 - sqlalchemy.engine.Engine - INFO - [generated in 0.00078s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 53, 57, 320313), 'e2b62b42-1026-4b52-92ee-2a3f7f382a4c')
2025-04-28 18:53:57,322 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:57,329 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-28 18:53:57,330 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-28 18:53:57,330 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-28 18:53:57,331 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:53:57,331 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:53:57,332 - sqlalchemy.engine.Engine - INFO - [cached since 0.02445s ago] ('445ab197-ce65-4937-9ece-aa1d0278d721', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{"priority": "10", "vehicle": "amr1", "group": "group_amr", "keyRoute": "apt1"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '41e256bf-5958-477a-9677-41f323b34181', datetime.datetime(2025, 4, 28, 18, 53, 57, 330312), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 53, 57, 331319), datetime.datetime(2025, 4, 28, 18, 53, 57, 331319), 0)
2025-04-28 18:53:57,333 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:57,343 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 445ab197-ce65-4937-9ece-aa1d0278d721
2025-04-28 18:53:57,343 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:53:57,344 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:53:57,344 - sqlalchemy.engine.Engine - INFO - [cached since 0.02788s ago] ('445ab197-ce65-4937-9ece-aa1d0278d721',)
2025-04-28 18:53:57,345 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:53:57,346 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:53:57,346 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:53:57,346 - sqlalchemy.engine.Engine - INFO - [cached since 0.0267s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 53, 57, 346597), '445ab197-ce65-4937-9ece-aa1d0278d721')
2025-04-28 18:53:57,347 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:57,355 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-28 18:53:57,355 - services.sync_service - INFO - 正在为任务选择AMR: 41e256bf-5958-477a-9677-41f323b34181, 站点: apt1
2025-04-28 18:53:57,374 - services.sync_service - WARNING - 为任务选择AMR失败: 不支持POST请求方法，支持以下GET、
2025-04-28 18:53:57,376 - services.sync_service - INFO - 正在封口任务: 41e256bf-5958-477a-9677-41f323b34181
2025-04-28 18:53:57,410 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-28 18:53:57,411 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:53:57,412 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:53:57,412 - sqlalchemy.engine.Engine - INFO - [generated in 0.00060s] ('16dab86b-81da-4cef-aea0-69fdbd439994', 3, '{"success": false, "message": "选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "code": 405, "result": null, "timestamp": 1745837636447}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '41e256bf-5958-477a-9677-41f323b34181', datetime.datetime(2025, 4, 28, 18, 53, 57, 412525), datetime.datetime(2025, 4, 28, 18, 53, 57, 412525), 0)
2025-04-28 18:53:57,413 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:57,426 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:53:57,427 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:53:57,427 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:53:57,427 - sqlalchemy.engine.Engine - INFO - [cached since 0.1112s ago] ('445ab197-ce65-4937-9ece-aa1d0278d721',)
2025-04-28 18:53:57,429 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:53:57,429 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:53:57,430 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:53:57,430 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (datetime.datetime(2025, 4, 28, 18, 53, 57, 429107), '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 53, 57, 430115), '445ab197-ce65-4937-9ece-aa1d0278d721')
2025-04-28 18:53:57,431 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:57,448 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:53:57,449 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:53:57,449 - sqlalchemy.engine.Engine - INFO - [cached since 0.03824s ago] ('0472d3ba-e7d6-491a-864a-651eda77567d', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '41e256bf-5958-477a-9677-41f323b34181', datetime.datetime(2025, 4, 28, 18, 53, 57, 449645), datetime.datetime(2025, 4, 28, 18, 53, 57, 449645), 0)
2025-04-28 18:53:57,451 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:57,465 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:53:57,467 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:53:57,467 - sqlalchemy.engine.Engine - INFO - [cached since 0.1505s ago] ('e2b62b42-1026-4b52-92ee-2a3f7f382a4c',)
2025-04-28 18:53:57,468 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:53:57,468 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:53:57,468 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:53:57,468 - sqlalchemy.engine.Engine - INFO - [cached since 0.03829s ago] (datetime.datetime(2025, 4, 28, 18, 53, 57, 468376), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 53, 57, 468376), 'e2b62b42-1026-4b52-92ee-2a3f7f382a4c')
2025-04-28 18:53:57,469 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:57,478 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:53:57,485 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:53:57,491 - sqlalchemy.engine.Engine - INFO - [generated in 0.00548s] (datetime.datetime(2025, 4, 28, 18, 53, 57, 477862), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskStatus.FAILED: 2000>, 185, 1, datetime.datetime(2025, 4, 28, 18, 53, 57, 485901), '41e256bf-5958-477a-9677-41f323b34181')
2025-04-28 18:53:57,492 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:53:57,501 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 41e256bf-5958-477a-9677-41f323b34181, 结果: False
2025-04-28 18:54:32,128 - app - INFO - 应用程序关闭中...
2025-04-28 18:54:32,130 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:54:32,130 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:54:32,132 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:54:32,134 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:54:32,136 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:54:32,138 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:54:32,140 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:54:32,141 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:54:32,141 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:54:32,142 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:54:32,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:54:32,143 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:54:32,143 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:54:32,143 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:54:32,144 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:54:32,145 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:54:32,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:54:32,149 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:54:32,151 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:54:32,153 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:54:32,156 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:54:32,157 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:54:32,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:54:32,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:54:32,159 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:54:32,159 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:54:32,161 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:54:32,163 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:54:32,165 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:54:32,167 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:54:32,167 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:54:32,168 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:54:33,904 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:54:33,962 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:54:33,964 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:54:34,651 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:54:34,709 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:54:34,710 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:54:34,770 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:54:34,814 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:54:34,840 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:54:34,861 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:54:34,862 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:54:34,862 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:54:34,862 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:54:34,863 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:54:34,863 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:54:34,863 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:54:34,863 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:54:34,864 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:54:34,865 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:54:34,865 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:54:34,866 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:54:34,866 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:54:34,867 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:54:34,867 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:54:34,868 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:54:34,868 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:54:34,869 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:54:34,869 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:54:34,870 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:54:34,870 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:54:34,871 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:54:34,871 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:54:34,872 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:54:34,873 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:54:34,874 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:54:34,874 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:54:34,875 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:54:34,875 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:54:34,876 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:54:34,877 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:54:35,211 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:54:35,211 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:54:35,212 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:54:35,212 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:54:35,212 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:54:35,212 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:54:35,212 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:54:35,212 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:54:35,213 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:54:35,213 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:54:35,213 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:54:35,213 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:54:35,213 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:54:35,214 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:54:35,214 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:54:35,214 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:54:35,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:54:35,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:54:35,215 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:54:35,215 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:54:35,216 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:54:35,216 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:54:35,217 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:54:35,217 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:54:35,217 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:54:35,218 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:54:35,218 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:54:35,218 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:54:35,227 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:54:35,227 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:54:35,228 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:54:35,228 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:54:35,229 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:54:35,229 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:54:35,230 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:54:35,230 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:54:35,232 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:54:35,232 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:54:35,233 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:54:35,234 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:54:35,234 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:54:35,234 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:54:35,234 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:54:35,234 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:54:35,235 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:54:35,236 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:54:35,236 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 54, 35, 230320))
2025-04-28 18:54:35,237 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:54:38,133 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-28 18:54:38,136 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:54:38,137 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:54:38,140 - sqlalchemy.engine.Engine - INFO - [generated in 0.00296s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:54:38,141 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:54:38,143 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:54:38,143 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:54:38,144 - sqlalchemy.engine.Engine - INFO - [cached since 0.006754s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:54:38,145 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:54:38,145 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-28 18:54:38,145 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-28 18:54:38,145 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-28 18:54:38,146 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:54:38,147 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-28 18:54:38,147 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (None, datetime.datetime(2025, 4, 28, 18, 54, 38, 147540), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-28 18:54:38,148 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:54:38,161 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:54:38,162 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:54:38,162 - sqlalchemy.engine.Engine - INFO - [cached since 0.02469s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:54:38,164 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:54:38,164 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] ('a88c7728-b4b6-4b9d-8ba9-bc302fd74545', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 2, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (425 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 28, 18, 54, 38, 145586), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 28, 18, 54, 38, 164494), datetime.datetime(2025, 4, 28, 18, 54, 38, 164494), 0)
2025-04-28 18:54:38,165 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:54:38,173 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:54:38,174 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:54:38,174 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] ('a88c7728-b4b6-4b9d-8ba9-bc302fd74545',)
2025-04-28 18:54:38,175 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:54:38,176 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 a88c7728-b4b6-4b9d-8ba9-bc302fd74545 (优先级 1) 添加到队列 0
2025-04-28 18:54:38,179 - services.sync_service - INFO - 正在同步创建任务到天风系统: a88c7728-b4b6-4b9d-8ba9-bc302fd74545
2025-04-28 18:54:38,179 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"a88c7728-b4b6-4b9d-8ba9-bc302fd74545","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":false,"priority":1,"createTime":"2025-04-28 18:54:38","sceneId":"abk1235kgnbaoj2j4l6j6h3hw","needAmr":1}
2025-04-28 18:54:38,198 - services.sync_service - WARNING - 同步任务到系统任务失败: JSON parse error: Cannot deserialize value of type `java.lang.Integer` from Boolean value (token `JsonToken.VALUE_FALSE`)
2025-04-28 18:54:38,199 - services.enhanced_scheduler.task_scheduler - WARNING - 同步任务到主任务系统失败: a88c7728-b4b6-4b9d-8ba9-bc302fd74545
2025-04-28 18:54:38,200 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: a88c7728-b4b6-4b9d-8ba9-bc302fd74545
2025-04-28 18:54:38,200 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0665秒
2025-04-28 18:54:38,249 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: a88c7728-b4b6-4b9d-8ba9-bc302fd74545, 优先级: 1
2025-04-28 18:54:38,249 - services.execution.task_executor - DEBUG - 任务 a88c7728-b4b6-4b9d-8ba9-bc302fd74545 设置超时时间: 3600秒
2025-04-28 18:54:38,250 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:54:38,250 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:54:38,250 - sqlalchemy.engine.Engine - INFO - [cached since 0.07739s ago] ('a88c7728-b4b6-4b9d-8ba9-bc302fd74545',)
2025-04-28 18:54:38,252 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:54:38,252 - sqlalchemy.engine.Engine - INFO - [cached since 0.1151s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:54:38,254 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:54:38,257 - sqlalchemy.engine.Engine - INFO - [generated in 0.00344s] (datetime.datetime(2025, 4, 28, 18, 54, 38, 253601), datetime.datetime(2025, 4, 28, 18, 54, 38, 254597), 'a88c7728-b4b6-4b9d-8ba9-bc302fd74545')
2025-04-28 18:54:38,259 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:54:38,266 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:54:38,267 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:54:38,267 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 54, 38, 267369), 'a88c7728-b4b6-4b9d-8ba9-bc302fd74545')
2025-04-28 18:54:38,271 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:54:38,281 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-28 18:54:38,281 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:54:38,283 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:54:38,283 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] ('d279aef3-c688-4b5f-8765-380217f90f87', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a88c7728-b4b6-4b9d-8ba9-bc302fd74545', datetime.datetime(2025, 4, 28, 18, 54, 38, 281568), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 54, 38, 283568), datetime.datetime(2025, 4, 28, 18, 54, 38, 283568), 0)
2025-04-28 18:54:38,284 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:54:38,295 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:54:38,296 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:54:38,297 - sqlalchemy.engine.Engine - INFO - [generated in 0.00068s] ('d279aef3-c688-4b5f-8765-380217f90f87',)
2025-04-28 18:54:38,298 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:54:38,298 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:54:38,299 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:54:38,299 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 54, 38, 298384), 'd279aef3-c688-4b5f-8765-380217f90f87')
2025-04-28 18:54:38,300 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:54:38,307 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-28 18:54:38,307 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-28 18:54:38,307 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-28 18:54:38,307 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:54:38,308 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:54:38,308 - sqlalchemy.engine.Engine - INFO - [cached since 0.02549s ago] ('1447dbd3-4c64-4d06-a08c-992cdbc301ee', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{"priority": "10", "vehicle": "amr1", "group": "group_amr", "keyRoute": "apt1"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a88c7728-b4b6-4b9d-8ba9-bc302fd74545', datetime.datetime(2025, 4, 28, 18, 54, 38, 307995), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 54, 38, 308976), datetime.datetime(2025, 4, 28, 18, 54, 38, 308976), 0)
2025-04-28 18:54:38,310 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:54:38,316 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 1447dbd3-4c64-4d06-a08c-992cdbc301ee
2025-04-28 18:54:38,316 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:54:38,316 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:54:38,316 - sqlalchemy.engine.Engine - INFO - [cached since 0.02061s ago] ('1447dbd3-4c64-4d06-a08c-992cdbc301ee',)
2025-04-28 18:54:38,317 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:54:38,317 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:54:38,319 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:54:38,319 - sqlalchemy.engine.Engine - INFO - [cached since 0.01995s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 54, 38, 319076), '1447dbd3-4c64-4d06-a08c-992cdbc301ee')
2025-04-28 18:54:38,319 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:54:38,326 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-28 18:54:38,326 - services.sync_service - INFO - 正在为任务选择AMR: a88c7728-b4b6-4b9d-8ba9-bc302fd74545, 站点: apt1
2025-04-28 18:54:38,433 - services.sync_service - WARNING - 为任务选择AMR失败: 不支持POST请求方法，支持以下GET、
2025-04-28 18:54:38,434 - services.sync_service - INFO - 正在封口任务: a88c7728-b4b6-4b9d-8ba9-bc302fd74545
2025-04-28 18:54:38,464 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-28 18:54:38,466 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:54:38,467 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:54:38,468 - sqlalchemy.engine.Engine - INFO - [generated in 0.00067s] ('fe4a1ce7-b3ea-43e3-abe9-cfc2089db695', 3, '{"success": false, "message": "选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "code": 405, "result": null, "timestamp": 1745837677448}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a88c7728-b4b6-4b9d-8ba9-bc302fd74545', datetime.datetime(2025, 4, 28, 18, 54, 38, 467358), datetime.datetime(2025, 4, 28, 18, 54, 38, 467358), 0)
2025-04-28 18:54:38,468 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:54:38,478 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:54:38,479 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:54:38,480 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:54:38,480 - sqlalchemy.engine.Engine - INFO - [cached since 0.1833s ago] ('1447dbd3-4c64-4d06-a08c-992cdbc301ee',)
2025-04-28 18:54:38,481 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:54:38,481 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:54:38,482 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:54:38,483 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (datetime.datetime(2025, 4, 28, 18, 54, 38, 481003), '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 54, 38, 482011), '1447dbd3-4c64-4d06-a08c-992cdbc301ee')
2025-04-28 18:54:38,483 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:54:38,489 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:54:38,490 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:54:38,490 - sqlalchemy.engine.Engine - INFO - [cached since 0.0226s ago] ('3873e95f-160d-47a8-abc9-def152c79d51', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a88c7728-b4b6-4b9d-8ba9-bc302fd74545', datetime.datetime(2025, 4, 28, 18, 54, 38, 490245), datetime.datetime(2025, 4, 28, 18, 54, 38, 490245), 0)
2025-04-28 18:54:38,490 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:54:38,495 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:54:38,496 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:54:38,496 - sqlalchemy.engine.Engine - INFO - [cached since 0.2003s ago] ('d279aef3-c688-4b5f-8765-380217f90f87',)
2025-04-28 18:54:38,497 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:54:38,497 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:54:38,497 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:54:38,497 - sqlalchemy.engine.Engine - INFO - [cached since 0.01611s ago] (datetime.datetime(2025, 4, 28, 18, 54, 38, 497924), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 54, 38, 497924), 'd279aef3-c688-4b5f-8765-380217f90f87')
2025-04-28 18:54:38,498 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:54:38,504 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:54:38,505 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:54:38,505 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (datetime.datetime(2025, 4, 28, 18, 54, 38, 504827), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskStatus.FAILED: 2000>, 238, 1, datetime.datetime(2025, 4, 28, 18, 54, 38, 504827), 'a88c7728-b4b6-4b9d-8ba9-bc302fd74545')
2025-04-28 18:54:38,506 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:54:38,512 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: a88c7728-b4b6-4b9d-8ba9-bc302fd74545, 结果: False
2025-04-28 18:54:51,604 - app - INFO - 应用程序关闭中...
2025-04-28 18:54:51,604 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:54:51,604 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:54:51,604 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:54:51,604 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:54:51,604 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:54:51,604 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:54:51,604 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:54:51,605 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:54:51,605 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:54:51,605 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:54:51,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:54:51,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:54:51,605 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:54:51,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:54:51,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:54:51,605 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:54:51,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:54:51,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:54:51,605 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:54:51,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:54:51,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:54:51,605 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:54:51,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:54:51,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:54:51,606 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:54:51,606 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:54:51,606 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:54:51,606 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:54:51,606 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:54:51,606 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:54:51,606 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:54:51,606 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:55:32,382 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:55:32,438 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:55:32,440 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:55:33,133 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:55:33,191 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:55:33,193 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:55:33,253 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:55:33,300 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:55:33,332 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:55:33,349 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:55:33,350 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:55:33,351 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:55:33,351 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:55:33,351 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:55:33,351 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:55:33,351 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:55:33,352 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:55:33,352 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:55:33,353 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:55:33,353 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:55:33,354 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:55:33,354 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:55:33,355 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:55:33,355 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:55:33,356 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:55:33,357 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:55:33,357 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:55:33,358 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:55:33,358 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:55:33,359 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:55:33,359 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:55:33,360 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:55:33,360 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:55:33,360 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:55:33,361 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:55:33,361 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:55:33,362 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:55:33,362 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:55:33,363 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:55:33,363 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:55:33,704 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:55:33,705 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:55:33,705 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:55:33,705 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:55:33,705 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:55:33,706 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:55:33,706 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:55:33,706 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:55:33,706 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:55:33,706 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:55:33,706 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:55:33,706 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:55:33,707 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:55:33,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:55:33,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:55:33,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:55:33,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:55:33,709 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:55:33,709 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:55:33,709 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:55:33,722 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:55:33,723 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:55:33,723 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:55:33,724 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:55:33,724 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:55:33,725 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:55:33,725 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:55:33,725 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:55:33,735 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:55:33,735 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:55:33,736 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:55:33,737 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:55:33,738 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:55:33,738 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:55:33,738 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:55:33,739 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:55:33,740 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:55:33,741 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:55:33,742 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:55:33,742 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:55:33,742 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:55:33,743 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:55:33,743 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:55:33,743 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:55:33,743 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:55:33,744 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:55:33,744 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 55, 33, 739243))
2025-04-28 18:55:33,745 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:55:35,919 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-28 18:55:35,921 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:55:35,922 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:55:35,923 - sqlalchemy.engine.Engine - INFO - [generated in 0.00053s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:55:35,923 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:55:35,924 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:55:35,924 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:55:35,924 - sqlalchemy.engine.Engine - INFO - [cached since 0.002583s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:55:35,925 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:55:35,926 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-28 18:55:35,926 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-28 18:55:35,926 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-28 18:55:35,926 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:55:35,929 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-28 18:55:35,929 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (None, datetime.datetime(2025, 4, 28, 18, 55, 35, 929183), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-28 18:55:35,929 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:55:35,937 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:55:35,937 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:55:35,938 - sqlalchemy.engine.Engine - INFO - [cached since 0.0156s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:55:35,939 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:55:35,940 - sqlalchemy.engine.Engine - INFO - [generated in 0.00107s] ('264c5fe1-5ed4-4a1b-aa93-cc5c2cd7df99', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 2, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (425 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 28, 18, 55, 35, 926912), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 28, 18, 55, 35, 939810), datetime.datetime(2025, 4, 28, 18, 55, 35, 939810), 0)
2025-04-28 18:55:35,941 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:55:35,949 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:55:35,949 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:55:35,950 - sqlalchemy.engine.Engine - INFO - [generated in 0.00078s] ('264c5fe1-5ed4-4a1b-aa93-cc5c2cd7df99',)
2025-04-28 18:55:35,952 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:55:35,953 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 264c5fe1-5ed4-4a1b-aa93-cc5c2cd7df99 (优先级 1) 添加到队列 0
2025-04-28 18:55:35,958 - services.sync_service - INFO - 正在同步创建任务到天风系统: 264c5fe1-5ed4-4a1b-aa93-cc5c2cd7df99
2025-04-28 18:55:35,958 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"264c5fe1-5ed4-4a1b-aa93-cc5c2cd7df99","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":false,"priority":1,"createTime":"2025-04-28 18:55:35","sceneId":"abk1235kgnbaoj2j4l6j6h3hw","needAmr":1}
2025-04-28 18:55:35,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 264c5fe1-5ed4-4a1b-aa93-cc5c2cd7df99, 优先级: 1
2025-04-28 18:55:35,989 - services.execution.task_executor - DEBUG - 任务 264c5fe1-5ed4-4a1b-aa93-cc5c2cd7df99 设置超时时间: 3600秒
2025-04-28 18:55:35,990 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:55:35,990 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:55:35,991 - sqlalchemy.engine.Engine - INFO - [cached since 0.04129s ago] ('264c5fe1-5ed4-4a1b-aa93-cc5c2cd7df99',)
2025-04-28 18:55:35,992 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:55:35,992 - sqlalchemy.engine.Engine - INFO - [cached since 0.0702s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:55:35,994 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:55:35,994 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (datetime.datetime(2025, 4, 28, 18, 55, 35, 993633), datetime.datetime(2025, 4, 28, 18, 55, 35, 994634), '264c5fe1-5ed4-4a1b-aa93-cc5c2cd7df99')
2025-04-28 18:55:35,995 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:55:36,002 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:55:36,003 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:55:36,003 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 55, 36, 3632), '264c5fe1-5ed4-4a1b-aa93-cc5c2cd7df99')
2025-04-28 18:55:36,004 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:55:36,011 - services.sync_service - WARNING - 同步任务到系统任务失败: JSON parse error: Cannot deserialize value of type `java.lang.Integer` from Boolean value (token `JsonToken.VALUE_FALSE`)
2025-04-28 18:55:36,012 - services.enhanced_scheduler.task_scheduler - WARNING - 同步任务到主任务系统失败: 264c5fe1-5ed4-4a1b-aa93-cc5c2cd7df99
2025-04-28 18:55:36,012 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 264c5fe1-5ed4-4a1b-aa93-cc5c2cd7df99
2025-04-28 18:55:36,013 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0935秒
2025-04-28 18:55:36,015 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-28 18:55:36,018 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:55:36,025 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:55:36,027 - sqlalchemy.engine.Engine - INFO - [generated in 0.00132s] ('a8ca44f5-7f3d-475d-b23b-aa82d10f5c2e', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '264c5fe1-5ed4-4a1b-aa93-cc5c2cd7df99', datetime.datetime(2025, 4, 28, 18, 55, 36, 17021), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 55, 36, 25031), datetime.datetime(2025, 4, 28, 18, 55, 36, 25031), 0)
2025-04-28 18:55:36,028 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:55:36,037 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:55:36,040 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:55:36,040 - sqlalchemy.engine.Engine - INFO - [generated in 0.00059s] ('a8ca44f5-7f3d-475d-b23b-aa82d10f5c2e',)
2025-04-28 18:55:36,041 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:55:36,042 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:55:36,043 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:55:36,043 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 55, 36, 43023), 'a8ca44f5-7f3d-475d-b23b-aa82d10f5c2e')
2025-04-28 18:55:36,045 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:55:36,051 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-28 18:55:36,051 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-28 18:55:36,051 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-28 18:55:36,052 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:55:36,053 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:55:36,053 - sqlalchemy.engine.Engine - INFO - [cached since 0.02833s ago] ('392a2675-f80d-470c-965c-92ecdaa02967', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{"priority": "10", "vehicle": "amr1", "group": "group_amr", "keyRoute": "apt1"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '264c5fe1-5ed4-4a1b-aa93-cc5c2cd7df99', datetime.datetime(2025, 4, 28, 18, 55, 36, 51364), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 55, 36, 53362), datetime.datetime(2025, 4, 28, 18, 55, 36, 53362), 0)
2025-04-28 18:55:36,054 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:55:36,060 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 392a2675-f80d-470c-965c-92ecdaa02967
2025-04-28 18:55:36,061 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:55:36,061 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:55:36,061 - sqlalchemy.engine.Engine - INFO - [cached since 0.02202s ago] ('392a2675-f80d-470c-965c-92ecdaa02967',)
2025-04-28 18:55:36,062 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:55:36,063 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:55:36,063 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:55:36,064 - sqlalchemy.engine.Engine - INFO - [cached since 0.02175s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 55, 36, 63686), '392a2675-f80d-470c-965c-92ecdaa02967')
2025-04-28 18:55:36,065 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:55:36,072 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-28 18:55:36,072 - services.sync_service - INFO - 正在为任务选择AMR: 264c5fe1-5ed4-4a1b-aa93-cc5c2cd7df99, 站点: apt1
2025-04-28 18:55:36,227 - services.sync_service - WARNING - 为任务选择AMR失败: 不支持POST请求方法，支持以下GET、
2025-04-28 18:55:36,230 - services.sync_service - INFO - 正在封口任务: 264c5fe1-5ed4-4a1b-aa93-cc5c2cd7df99
2025-04-28 18:55:36,251 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-28 18:55:36,253 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:55:36,253 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:55:36,253 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('9dc7c807-5ec6-4f99-9201-a9dae4aa6975', 3, '{"success": false, "message": "选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "code": 405, "result": null, "timestamp": 1745837735206}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '264c5fe1-5ed4-4a1b-aa93-cc5c2cd7df99', datetime.datetime(2025, 4, 28, 18, 55, 36, 253581), datetime.datetime(2025, 4, 28, 18, 55, 36, 253581), 0)
2025-04-28 18:55:36,254 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:55:36,269 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:55:36,269 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:55:36,270 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:55:36,270 - sqlalchemy.engine.Engine - INFO - [cached since 0.231s ago] ('392a2675-f80d-470c-965c-92ecdaa02967',)
2025-04-28 18:55:36,272 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:55:36,272 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:55:36,272 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:55:36,272 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (datetime.datetime(2025, 4, 28, 18, 55, 36, 272152), '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 55, 36, 272152), '392a2675-f80d-470c-965c-92ecdaa02967')
2025-04-28 18:55:36,273 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:55:36,283 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:55:36,283 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:55:36,284 - sqlalchemy.engine.Engine - INFO - [cached since 0.03044s ago] ('52d235d6-8605-4aa7-8f0e-04b078f36a4d', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '264c5fe1-5ed4-4a1b-aa93-cc5c2cd7df99', datetime.datetime(2025, 4, 28, 18, 55, 36, 283835), datetime.datetime(2025, 4, 28, 18, 55, 36, 283835), 0)
2025-04-28 18:55:36,284 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:55:36,291 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:55:36,291 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:55:36,292 - sqlalchemy.engine.Engine - INFO - [cached since 0.2522s ago] ('a8ca44f5-7f3d-475d-b23b-aa82d10f5c2e',)
2025-04-28 18:55:36,292 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:55:36,292 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:55:36,292 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:55:36,293 - sqlalchemy.engine.Engine - INFO - [cached since 0.02091s ago] (datetime.datetime(2025, 4, 28, 18, 55, 36, 292367), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 55, 36, 292367), 'a8ca44f5-7f3d-475d-b23b-aa82d10f5c2e')
2025-04-28 18:55:36,293 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:55:36,300 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:55:36,300 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:55:36,301 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (datetime.datetime(2025, 4, 28, 18, 55, 36, 299875), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskStatus.FAILED: 2000>, 297, 1, datetime.datetime(2025, 4, 28, 18, 55, 36, 300876), '264c5fe1-5ed4-4a1b-aa93-cc5c2cd7df99')
2025-04-28 18:55:36,301 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:55:36,307 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 264c5fe1-5ed4-4a1b-aa93-cc5c2cd7df99, 结果: False
2025-04-28 18:56:33,726 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 18:56:33,728 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:56:33,728 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:56:33,729 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 18:56:33,729 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 18:56:33,730 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 18:56:33,732 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:56:33,733 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:56:33,733 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:56:33,733 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 18:56:33,734 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 18:56:33,734 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 18:56:33,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:56:33,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:56:33,736 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:56:33,736 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 18:56:33,736 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 18:56:33,737 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 18:56:33,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:56:33,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:56:33,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:56:33,738 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 18:56:33,738 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:56:33,748 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:56:33,748 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:56:33,749 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:56:33,749 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 56, 33, 737634))
2025-04-28 18:56:33,751 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:56:33,911 - app - INFO - 应用程序关闭中...
2025-04-28 18:56:33,911 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:56:33,912 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:56:33,912 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:56:33,913 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:56:33,913 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:56:33,914 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:56:33,914 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:56:33,915 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:56:33,915 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:56:33,915 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:56:33,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:56:33,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:56:33,915 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:56:33,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:56:33,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:56:33,916 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:56:33,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:56:33,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:56:33,917 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:56:33,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:56:33,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:56:33,918 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:56:33,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:56:33,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:56:33,918 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:56:33,918 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:56:33,919 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:56:33,919 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:56:33,919 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:56:33,920 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:56:33,920 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:56:33,921 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:56:35,063 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:56:35,120 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:56:35,121 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:56:35,181 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:56:35,229 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:56:35,263 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:56:35,283 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:56:35,283 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:35,284 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:56:35,284 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:35,284 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:56:35,285 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:35,285 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:56:35,285 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:56:35,285 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:35,286 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:56:35,286 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:35,287 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:56:35,287 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:35,288 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:56:35,289 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:35,289 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:56:35,290 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:35,291 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:56:35,291 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:35,291 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:56:35,292 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:35,292 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:56:35,293 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:35,293 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:56:35,294 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:35,294 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:56:35,295 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:35,295 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:56:35,296 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:35,296 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:56:35,297 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:56:35,646 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:56:35,647 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:56:35,647 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:56:35,647 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:56:35,648 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:56:35,648 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:56:35,648 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:56:35,648 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:56:35,648 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:56:35,648 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:56:35,648 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:56:35,648 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:56:35,649 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:56:35,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:56:35,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:56:35,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:56:35,651 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:56:35,651 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:56:35,651 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:56:35,651 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:56:35,653 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:56:35,654 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:56:35,654 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:56:35,655 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:56:35,655 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:56:35,655 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:56:35,656 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:56:35,656 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:56:35,665 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:56:35,666 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:56:35,667 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:56:35,667 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:56:35,668 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:56:35,668 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:56:35,668 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:56:35,669 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:56:35,670 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:56:35,670 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:56:35,671 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:56:35,672 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:56:35,672 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:56:35,672 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:56:35,672 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:56:35,673 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:56:35,673 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:56:35,674 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:56:35,674 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 56, 35, 668158))
2025-04-28 18:56:35,675 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:56:52,826 - app - INFO - 应用程序关闭中...
2025-04-28 18:56:52,828 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:56:52,828 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:56:52,828 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:56:52,829 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:56:52,829 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:56:52,829 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:56:52,829 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:56:52,830 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:56:52,830 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:56:52,830 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:56:52,830 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:56:52,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:56:52,831 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:56:52,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:56:52,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:56:52,831 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:56:52,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:56:52,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:56:52,832 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:56:52,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:56:52,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:56:52,832 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:56:52,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:56:52,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:56:52,832 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:56:52,832 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:56:52,833 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:56:52,833 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:56:52,833 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:56:52,833 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:56:52,833 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:56:52,834 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:56:54,665 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:56:54,727 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:56:54,728 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:56:55,428 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:56:55,487 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:56:55,488 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:56:55,549 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:56:55,597 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:56:55,629 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:56:55,630 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:56:55,631 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:55,631 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:56:55,631 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:55,631 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:56:55,631 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:55,633 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:56:55,633 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:56:55,633 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:55,634 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:56:55,634 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:55,635 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:56:55,636 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:55,636 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:56:55,637 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:55,638 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:56:55,638 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:55,640 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:56:55,640 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:55,641 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:56:55,641 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:55,642 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:56:55,642 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:55,643 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:56:55,643 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:55,644 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:56:55,644 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:55,645 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:56:55,645 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:56:55,646 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:56:55,646 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:56:55,986 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:56:55,986 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:56:55,986 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:56:55,987 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:56:55,987 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:56:55,987 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:56:55,987 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:56:55,987 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:56:55,987 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:56:55,987 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:56:55,988 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:56:55,988 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:56:55,988 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:56:55,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:56:55,990 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:56:55,990 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:56:55,990 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:56:55,990 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:56:55,990 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:56:55,990 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:56:55,991 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:56:55,992 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:56:55,992 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:56:55,993 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:56:55,993 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:56:55,993 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:56:55,994 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:56:55,994 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:56:56,003 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:56:56,004 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:56:56,005 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:56:56,005 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:56:56,006 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:56:56,006 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:56:56,006 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:56:56,007 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:56:56,008 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:56:56,009 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:56:56,010 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:56:56,011 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:56:56,011 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:56:56,011 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:56:56,011 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:56:56,012 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:56:56,012 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:56:56,015 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:56:56,015 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 56, 56, 7698))
2025-04-28 18:56:56,016 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:56:57,188 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-28 18:56:57,190 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:56:57,191 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:56:57,191 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:56:57,192 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:56:57,193 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:56:57,193 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:56:57,193 - sqlalchemy.engine.Engine - INFO - [cached since 0.002295s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:56:57,194 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:56:57,195 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-28 18:56:57,195 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-28 18:56:57,195 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-28 18:56:57,195 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:56:57,196 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-28 18:56:57,196 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (None, datetime.datetime(2025, 4, 28, 18, 56, 57, 196678), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-28 18:56:57,197 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:56:57,211 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:56:57,211 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:56:57,212 - sqlalchemy.engine.Engine - INFO - [cached since 0.01994s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:56:57,213 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:56:57,214 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] ('b32e2c0d-de7a-4415-b419-4e8149751847', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 2, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (425 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 28, 18, 56, 57, 194675), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 28, 18, 56, 57, 213091), datetime.datetime(2025, 4, 28, 18, 56, 57, 213091), 0)
2025-04-28 18:56:57,215 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:56:57,222 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:56:57,223 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:56:57,223 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] ('b32e2c0d-de7a-4415-b419-4e8149751847',)
2025-04-28 18:56:57,224 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:56:57,225 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 b32e2c0d-de7a-4415-b419-4e8149751847 (优先级 1) 添加到队列 0
2025-04-28 18:56:57,230 - services.sync_service - INFO - 正在同步创建任务到天风系统: b32e2c0d-de7a-4415-b419-4e8149751847
2025-04-28 18:56:57,230 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"b32e2c0d-de7a-4415-b419-4e8149751847","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":false,"priority":1,"createTime":"2025-04-28 18:56:57","sceneId":"abk1235kgnbaoj2j4l6j6h3hw","needAmr":1}
2025-04-28 18:56:57,291 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: b32e2c0d-de7a-4415-b419-4e8149751847, 优先级: 1
2025-04-28 18:56:57,292 - services.execution.task_executor - DEBUG - 任务 b32e2c0d-de7a-4415-b419-4e8149751847 设置超时时间: 3600秒
2025-04-28 18:56:57,292 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:56:57,293 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:56:57,293 - sqlalchemy.engine.Engine - INFO - [cached since 0.07094s ago] ('b32e2c0d-de7a-4415-b419-4e8149751847',)
2025-04-28 18:56:57,294 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:56:57,298 - sqlalchemy.engine.Engine - INFO - [cached since 0.1071s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:56:57,303 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:56:57,305 - sqlalchemy.engine.Engine - INFO - [generated in 0.00172s] (datetime.datetime(2025, 4, 28, 18, 56, 57, 302527), datetime.datetime(2025, 4, 28, 18, 56, 57, 303538), 'b32e2c0d-de7a-4415-b419-4e8149751847')
2025-04-28 18:56:57,307 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:56:57,315 - services.sync_service - WARNING - 同步任务到系统任务失败: JSON parse error: Cannot deserialize value of type `java.lang.Integer` from Boolean value (token `JsonToken.VALUE_FALSE`)
2025-04-28 18:56:57,318 - services.enhanced_scheduler.task_scheduler - WARNING - 同步任务到主任务系统失败: b32e2c0d-de7a-4415-b419-4e8149751847
2025-04-28 18:56:57,319 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: b32e2c0d-de7a-4415-b419-4e8149751847
2025-04-28 18:56:57,321 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1328秒
2025-04-28 18:56:57,323 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:56:57,325 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:56:57,326 - sqlalchemy.engine.Engine - INFO - [generated in 0.00090s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 56, 57, 325815), 'b32e2c0d-de7a-4415-b419-4e8149751847')
2025-04-28 18:56:57,327 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:56:57,335 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-28 18:56:57,337 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:56:57,338 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:56:57,341 - sqlalchemy.engine.Engine - INFO - [generated in 0.00285s] ('22e0c82f-7521-4d42-a9f2-ca33e1baa242', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'b32e2c0d-de7a-4415-b419-4e8149751847', datetime.datetime(2025, 4, 28, 18, 56, 57, 336814), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 56, 57, 338807), datetime.datetime(2025, 4, 28, 18, 56, 57, 338807), 0)
2025-04-28 18:56:57,343 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:56:57,351 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:56:57,353 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:56:57,354 - sqlalchemy.engine.Engine - INFO - [generated in 0.00086s] ('22e0c82f-7521-4d42-a9f2-ca33e1baa242',)
2025-04-28 18:56:57,355 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:56:57,355 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:56:57,356 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:56:57,357 - sqlalchemy.engine.Engine - INFO - [generated in 0.00063s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 56, 57, 356814), '22e0c82f-7521-4d42-a9f2-ca33e1baa242')
2025-04-28 18:56:57,358 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:56:57,363 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-28 18:56:57,363 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-28 18:56:57,364 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-28 18:56:57,364 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:56:57,365 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:56:57,365 - sqlalchemy.engine.Engine - INFO - [cached since 0.02724s ago] ('f22073fb-5fee-4e9b-9c76-c4fcbc71f036', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{"priority": "10", "vehicle": "amr1", "group": "group_amr", "keyRoute": "apt1"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'b32e2c0d-de7a-4415-b419-4e8149751847', datetime.datetime(2025, 4, 28, 18, 56, 57, 364855), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 56, 57, 365869), datetime.datetime(2025, 4, 28, 18, 56, 57, 365869), 0)
2025-04-28 18:56:57,370 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:56:57,379 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: f22073fb-5fee-4e9b-9c76-c4fcbc71f036
2025-04-28 18:56:57,380 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:56:57,380 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:56:57,381 - sqlalchemy.engine.Engine - INFO - [cached since 0.02838s ago] ('f22073fb-5fee-4e9b-9c76-c4fcbc71f036',)
2025-04-28 18:56:57,382 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:56:57,382 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:56:57,383 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:56:57,383 - sqlalchemy.engine.Engine - INFO - [cached since 0.02661s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 56, 57, 383680), 'f22073fb-5fee-4e9b-9c76-c4fcbc71f036')
2025-04-28 18:56:57,384 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:56:57,394 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-28 18:56:57,394 - services.sync_service - INFO - 正在为任务选择AMR: b32e2c0d-de7a-4415-b419-4e8149751847, 站点: apt1
2025-04-28 18:56:57,412 - services.sync_service - WARNING - 为任务选择AMR失败: 不支持POST请求方法，支持以下GET、
2025-04-28 18:56:57,412 - services.sync_service - INFO - 正在封口任务: b32e2c0d-de7a-4415-b419-4e8149751847
2025-04-28 18:56:57,427 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-28 18:56:57,428 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:56:57,429 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:56:57,429 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('5896f64b-2d91-48bf-8028-0bac79f762ae', 3, '{"success": false, "message": "选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "code": 405, "result": null, "timestamp": 1745837816486}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'b32e2c0d-de7a-4415-b419-4e8149751847', datetime.datetime(2025, 4, 28, 18, 56, 57, 429006), datetime.datetime(2025, 4, 28, 18, 56, 57, 429006), 0)
2025-04-28 18:56:57,429 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:56:57,442 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:56:57,443 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:56:57,444 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:56:57,444 - sqlalchemy.engine.Engine - INFO - [cached since 0.09053s ago] ('f22073fb-5fee-4e9b-9c76-c4fcbc71f036',)
2025-04-28 18:56:57,445 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:56:57,445 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:56:57,445 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:56:57,446 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (datetime.datetime(2025, 4, 28, 18, 56, 57, 445281), '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 56, 57, 445281), 'f22073fb-5fee-4e9b-9c76-c4fcbc71f036')
2025-04-28 18:56:57,447 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:56:57,453 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:56:57,454 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:56:57,455 - sqlalchemy.engine.Engine - INFO - [cached since 0.02642s ago] ('37f12c7c-b98c-4abc-8c9e-8b2d87962e1c', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'b32e2c0d-de7a-4415-b419-4e8149751847', datetime.datetime(2025, 4, 28, 18, 56, 57, 454274), datetime.datetime(2025, 4, 28, 18, 56, 57, 454274), 0)
2025-04-28 18:56:57,455 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:56:57,462 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:56:57,463 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:56:57,463 - sqlalchemy.engine.Engine - INFO - [cached since 0.1096s ago] ('22e0c82f-7521-4d42-a9f2-ca33e1baa242',)
2025-04-28 18:56:57,464 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:56:57,464 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:56:57,464 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:56:57,464 - sqlalchemy.engine.Engine - INFO - [cached since 0.01891s ago] (datetime.datetime(2025, 4, 28, 18, 56, 57, 464180), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 56, 57, 464180), '22e0c82f-7521-4d42-a9f2-ca33e1baa242')
2025-04-28 18:56:57,465 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:56:57,471 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:56:57,472 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:56:57,472 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (datetime.datetime(2025, 4, 28, 18, 56, 57, 471180), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskStatus.FAILED: 2000>, 147, 1, datetime.datetime(2025, 4, 28, 18, 56, 57, 472180), 'b32e2c0d-de7a-4415-b419-4e8149751847')
2025-04-28 18:56:57,472 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:56:57,479 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: b32e2c0d-de7a-4415-b419-4e8149751847, 结果: False
2025-04-28 18:57:37,418 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:57:37,418 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:57:37,419 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:57:37,419 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:57:37,419 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:57:37,419 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:57:37,419 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:57:37,420 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:57:37,421 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:57:37,421 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:57:37,421 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:57:37,422 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:57:37,422 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:57:37,422 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:57:37,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:57:37,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:57:37,422 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:57:37,422 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:57:39,395 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:57:39,454 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:57:39,455 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:57:40,127 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:57:40,188 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:57:40,189 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:57:40,250 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:57:40,299 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:57:40,332 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:57:40,335 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:57:40,335 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:57:40,335 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:57:40,336 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:57:40,336 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:57:40,336 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:57:40,336 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:57:40,336 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:57:40,337 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:57:40,338 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:57:40,338 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:57:40,339 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:57:40,339 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:57:40,340 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:57:40,340 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:57:40,341 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:57:40,342 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:57:40,343 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:57:40,343 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:57:40,343 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:57:40,344 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:57:40,344 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:57:40,344 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:57:40,345 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:57:40,345 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:57:40,346 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:57:40,346 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:57:40,347 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:57:40,347 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:57:40,348 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:57:40,349 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:57:40,693 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:57:40,693 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:57:40,693 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:57:40,693 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:57:40,693 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:57:40,693 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:57:40,694 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:57:40,694 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:57:40,694 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:57:40,694 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:57:40,694 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:57:40,694 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:57:40,694 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:57:40,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:57:40,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:57:40,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:57:40,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:57:40,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:57:40,697 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:57:40,697 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:57:40,698 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:57:40,698 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:57:40,699 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:57:40,699 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:57:40,699 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:57:40,700 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:57:40,700 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:57:40,700 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:57:40,709 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:57:40,709 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:57:40,710 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:57:40,710 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:57:40,711 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:57:40,711 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:57:40,711 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:57:40,712 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:57:40,713 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:57:40,713 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:57:40,714 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:57:40,714 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:57:40,715 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:57:40,715 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:57:40,715 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:57:40,715 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:57:40,715 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:57:40,717 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:57:40,717 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 57, 40, 711323))
2025-04-28 18:57:40,718 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:57:42,189 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-28 18:57:42,193 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:57:42,194 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:57:42,195 - sqlalchemy.engine.Engine - INFO - [generated in 0.00113s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:57:42,197 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:57:42,198 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:57:42,198 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:57:42,200 - sqlalchemy.engine.Engine - INFO - [cached since 0.006621s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:57:42,201 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:57:42,202 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-28 18:57:42,202 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-28 18:57:42,203 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-28 18:57:42,203 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:57:42,204 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-28 18:57:42,204 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (None, datetime.datetime(2025, 4, 28, 18, 57, 42, 204053), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-28 18:57:42,205 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:57:42,221 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:57:42,221 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:57:42,221 - sqlalchemy.engine.Engine - INFO - [cached since 0.02818s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:57:42,225 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:57:42,225 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] ('13ffdaef-eb2c-4bfb-b682-e5ba951b2537', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 2, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (425 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 28, 18, 57, 42, 202053), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 28, 18, 57, 42, 225470), datetime.datetime(2025, 4, 28, 18, 57, 42, 225470), 0)
2025-04-28 18:57:42,226 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:57:42,235 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:57:42,236 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:57:42,236 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('13ffdaef-eb2c-4bfb-b682-e5ba951b2537',)
2025-04-28 18:57:42,237 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:57:42,238 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 13ffdaef-eb2c-4bfb-b682-e5ba951b2537 (优先级 1) 添加到队列 0
2025-04-28 18:57:42,243 - services.sync_service - INFO - 正在同步创建任务到天风系统: 13ffdaef-eb2c-4bfb-b682-e5ba951b2537
2025-04-28 18:57:42,243 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"13ffdaef-eb2c-4bfb-b682-e5ba951b2537","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":false,"priority":1,"createTime":"2025-04-28 18:57:42","sceneId":"abk1235kgnbaoj2j4l6j6h3hw","needAmr":1}==========================
2025-04-28 18:57:42,277 - services.sync_service - WARNING - 同步任务到系统任务失败: JSON parse error: Cannot deserialize value of type `java.lang.Integer` from Boolean value (token `JsonToken.VALUE_FALSE`)
2025-04-28 18:57:42,278 - services.enhanced_scheduler.task_scheduler - WARNING - 同步任务到主任务系统失败: 13ffdaef-eb2c-4bfb-b682-e5ba951b2537
2025-04-28 18:57:42,278 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 13ffdaef-eb2c-4bfb-b682-e5ba951b2537
2025-04-28 18:57:42,279 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0902秒
2025-04-28 18:57:42,306 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 13ffdaef-eb2c-4bfb-b682-e5ba951b2537, 优先级: 1
2025-04-28 18:57:42,306 - services.execution.task_executor - DEBUG - 任务 13ffdaef-eb2c-4bfb-b682-e5ba951b2537 设置超时时间: 3600秒
2025-04-28 18:57:42,307 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:57:42,307 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:57:42,307 - sqlalchemy.engine.Engine - INFO - [cached since 0.07211s ago] ('13ffdaef-eb2c-4bfb-b682-e5ba951b2537',)
2025-04-28 18:57:42,308 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:57:42,308 - sqlalchemy.engine.Engine - INFO - [cached since 0.1157s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:57:42,311 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:57:42,311 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] (datetime.datetime(2025, 4, 28, 18, 57, 42, 309964), datetime.datetime(2025, 4, 28, 18, 57, 42, 311961), '13ffdaef-eb2c-4bfb-b682-e5ba951b2537')
2025-04-28 18:57:42,317 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:57:42,328 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:57:42,328 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:57:42,329 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 57, 42, 328793), '13ffdaef-eb2c-4bfb-b682-e5ba951b2537')
2025-04-28 18:57:42,332 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:57:42,340 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-28 18:57:42,342 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:57:42,344 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:57:42,344 - sqlalchemy.engine.Engine - INFO - [generated in 0.00069s] ('fde91b78-a03c-406d-a117-cc092fc5b721', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '13ffdaef-eb2c-4bfb-b682-e5ba951b2537', datetime.datetime(2025, 4, 28, 18, 57, 42, 342795), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 57, 42, 344795), datetime.datetime(2025, 4, 28, 18, 57, 42, 344795), 0)
2025-04-28 18:57:42,346 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:57:42,355 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:57:42,356 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:57:42,357 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] ('fde91b78-a03c-406d-a117-cc092fc5b721',)
2025-04-28 18:57:42,358 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:57:42,359 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:57:42,361 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:57:42,365 - sqlalchemy.engine.Engine - INFO - [generated in 0.00361s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 57, 42, 361349), 'fde91b78-a03c-406d-a117-cc092fc5b721')
2025-04-28 18:57:42,366 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:57:42,375 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-28 18:57:42,375 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-28 18:57:42,377 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-28 18:57:42,380 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:57:42,384 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:57:42,384 - sqlalchemy.engine.Engine - INFO - [cached since 0.0398s ago] ('a3557c7b-f95e-4fea-b129-0bb86a47b890', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{"priority": "10", "vehicle": "amr1", "group": "group_amr", "keyRoute": "apt1"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '13ffdaef-eb2c-4bfb-b682-e5ba951b2537', datetime.datetime(2025, 4, 28, 18, 57, 42, 379227), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 57, 42, 384220), datetime.datetime(2025, 4, 28, 18, 57, 42, 384220), 0)
2025-04-28 18:57:42,387 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:57:42,394 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: a3557c7b-f95e-4fea-b129-0bb86a47b890
2025-04-28 18:57:42,395 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:57:42,399 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:57:42,399 - sqlalchemy.engine.Engine - INFO - [cached since 0.04316s ago] ('a3557c7b-f95e-4fea-b129-0bb86a47b890',)
2025-04-28 18:57:42,400 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:57:42,402 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:57:42,404 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:57:42,406 - sqlalchemy.engine.Engine - INFO - [cached since 0.04547s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 57, 42, 404698), 'a3557c7b-f95e-4fea-b129-0bb86a47b890')
2025-04-28 18:57:42,407 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:57:42,416 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-28 18:57:42,418 - services.sync_service - INFO - 正在为任务选择AMR: 13ffdaef-eb2c-4bfb-b682-e5ba951b2537, 站点: apt1
2025-04-28 18:57:42,512 - services.sync_service - WARNING - 为任务选择AMR失败: 不支持POST请求方法，支持以下GET、
2025-04-28 18:57:42,513 - services.sync_service - INFO - 正在封口任务: 13ffdaef-eb2c-4bfb-b682-e5ba951b2537
2025-04-28 18:57:42,535 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-28 18:57:42,537 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:57:42,538 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:57:42,538 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] ('d1155f7a-49c5-40e7-94b8-b090f587ac20', 3, '{"success": false, "message": "选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "code": 405, "result": null, "timestamp": 1745837861564}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '13ffdaef-eb2c-4bfb-b682-e5ba951b2537', datetime.datetime(2025, 4, 28, 18, 57, 42, 538723), datetime.datetime(2025, 4, 28, 18, 57, 42, 538723), 0)
2025-04-28 18:57:42,539 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:57:42,559 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:57:42,560 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:57:42,560 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:57:42,561 - sqlalchemy.engine.Engine - INFO - [cached since 0.2045s ago] ('a3557c7b-f95e-4fea-b129-0bb86a47b890',)
2025-04-28 18:57:42,561 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:57:42,561 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:57:42,563 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:57:42,563 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (datetime.datetime(2025, 4, 28, 18, 57, 42, 561797), '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 57, 42, 563957), 'a3557c7b-f95e-4fea-b129-0bb86a47b890')
2025-04-28 18:57:42,564 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:57:42,574 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:57:42,575 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:57:42,575 - sqlalchemy.engine.Engine - INFO - [cached since 0.03693s ago] ('094d1d12-563a-45da-a961-c142eb1d8733', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '13ffdaef-eb2c-4bfb-b682-e5ba951b2537', datetime.datetime(2025, 4, 28, 18, 57, 42, 575606), datetime.datetime(2025, 4, 28, 18, 57, 42, 575606), 0)
2025-04-28 18:57:42,575 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:57:42,580 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:57:42,581 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:57:42,581 - sqlalchemy.engine.Engine - INFO - [cached since 0.2252s ago] ('fde91b78-a03c-406d-a117-cc092fc5b721',)
2025-04-28 18:57:42,581 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:57:42,582 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:57:42,582 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:57:42,582 - sqlalchemy.engine.Engine - INFO - [cached since 0.01965s ago] (datetime.datetime(2025, 4, 28, 18, 57, 42, 582979), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 57, 42, 582979), 'fde91b78-a03c-406d-a117-cc092fc5b721')
2025-04-28 18:57:42,583 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:57:42,592 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:57:42,592 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:57:42,593 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] (datetime.datetime(2025, 4, 28, 18, 57, 42, 591491), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskStatus.FAILED: 2000>, 263, 1, datetime.datetime(2025, 4, 28, 18, 57, 42, 592497), '13ffdaef-eb2c-4bfb-b682-e5ba951b2537')
2025-04-28 18:57:42,593 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:57:42,599 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 13ffdaef-eb2c-4bfb-b682-e5ba951b2537, 结果: False
2025-04-28 18:58:12,377 - app - INFO - 应用程序关闭中...
2025-04-28 18:58:12,377 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:58:12,377 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:58:12,377 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:58:12,377 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:58:12,378 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:58:12,378 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:58:12,378 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:58:12,378 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:58:12,378 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:58:12,378 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:58:12,378 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:58:12,378 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:58:12,378 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:58:12,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:58:12,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:58:12,379 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:58:12,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:58:12,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:58:12,379 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:58:12,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:58:12,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:58:12,379 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:58:12,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:58:12,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:58:12,380 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:58:12,380 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:58:12,380 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:58:12,380 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:58:12,380 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:58:12,380 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:58:12,380 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:58:12,381 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:58:13,529 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:58:13,590 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:58:13,591 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:58:13,651 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:58:13,698 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:58:13,718 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:58:13,736 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:58:13,738 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:58:13,739 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:58:13,739 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:58:13,739 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:58:13,739 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:58:13,739 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:58:13,740 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:58:13,740 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:58:13,740 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:58:13,742 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:58:13,742 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:58:13,742 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:58:13,744 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:58:13,745 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:58:13,746 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:58:13,746 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:58:13,747 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:58:13,747 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:58:13,748 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:58:13,748 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:58:13,749 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:58:13,749 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:58:13,752 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:58:13,753 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:58:13,758 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:58:13,758 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:58:13,759 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:58:13,759 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:58:13,760 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:58:13,761 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:58:14,105 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:58:14,106 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:58:14,106 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:58:14,107 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:58:14,107 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:58:14,107 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:58:14,108 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:58:14,108 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:58:14,108 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:58:14,109 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:58:14,109 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:58:14,109 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:58:14,109 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:58:14,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:58:14,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:58:14,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:58:14,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:58:14,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:58:14,112 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:58:14,112 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:58:14,113 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:58:14,114 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:58:14,114 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:58:14,115 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:58:14,116 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:58:14,116 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:58:14,116 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:58:14,117 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:58:14,126 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:58:14,126 - sqlalchemy.engine.Engine - INFO - [generated in 0.00063s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:58:14,127 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:58:14,127 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:58:14,128 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:58:14,128 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:58:14,130 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:58:14,130 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:58:14,132 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:58:14,132 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:58:14,151 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:58:14,153 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:58:14,153 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:58:14,154 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:58:14,154 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:58:14,154 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:58:14,155 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:58:14,156 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:58:14,156 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 58, 14, 130190))
2025-04-28 18:58:14,156 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:07,893 - app - INFO - 应用程序关闭中...
2025-04-28 18:59:07,893 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:59:07,894 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:59:07,894 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:59:07,894 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:59:07,894 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:59:07,895 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:59:07,895 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:59:07,895 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:59:07,895 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:59:07,895 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:59:07,896 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:59:07,896 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:59:07,896 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:59:07,896 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:59:07,897 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:59:07,897 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:59:07,897 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:59:07,897 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:59:07,897 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:59:07,897 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:59:07,897 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:59:07,897 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:59:07,898 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:59:07,898 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:59:07,898 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:59:07,898 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:59:07,898 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:59:07,898 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:59:07,898 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:59:07,899 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:59:07,899 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:59:07,899 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:59:09,711 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:59:09,768 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:59:09,769 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:59:10,452 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:59:10,509 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:59:10,510 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:59:10,569 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:59:10,617 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:59:10,659 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:59:10,676 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:59:10,677 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:10,677 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:59:10,677 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:10,679 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:59:10,679 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:10,679 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:10,679 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:59:10,680 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:10,681 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:59:10,681 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:10,682 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:59:10,682 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:10,683 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:59:10,683 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:10,684 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:59:10,684 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:10,685 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:59:10,686 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:10,686 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:59:10,687 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:10,687 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:59:10,688 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:10,688 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:59:10,688 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:10,689 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:59:10,689 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:10,690 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:59:10,691 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:10,691 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:10,692 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:59:11,037 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:59:11,037 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:59:11,037 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:59:11,037 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:59:11,039 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:59:11,039 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:59:11,039 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:59:11,039 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:59:11,039 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:59:11,039 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:59:11,040 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:59:11,040 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:59:11,040 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:59:11,041 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:59:11,041 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:59:11,042 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:59:11,042 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:59:11,042 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:59:11,042 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:59:11,042 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:59:11,043 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:59:11,043 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:59:11,043 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:59:11,044 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:59:11,044 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:59:11,044 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:59:11,045 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:59:11,045 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:11,054 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:59:11,054 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:59:11,055 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:59:11,055 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:11,056 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:59:11,056 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:59:11,056 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:59:11,057 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:11,058 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:59:11,059 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:59:11,060 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:11,060 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:59:11,060 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:59:11,060 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:59:11,060 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:59:11,061 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:59:11,061 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:11,062 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:59:11,062 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 59, 11, 56098))
2025-04-28 18:59:11,063 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:12,517 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-28 18:59:12,519 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:12,520 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:59:12,520 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:59:12,521 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:12,522 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:12,523 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:59:12,523 - sqlalchemy.engine.Engine - INFO - [cached since 0.002833s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:59:12,524 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:12,524 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-28 18:59:12,525 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-28 18:59:12,525 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-28 18:59:12,526 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:12,528 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-28 18:59:12,528 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (None, datetime.datetime(2025, 4, 28, 18, 59, 12, 528889), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-28 18:59:12,529 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:12,543 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:12,544 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:59:12,544 - sqlalchemy.engine.Engine - INFO - [cached since 0.02365s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:59:12,545 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:59:12,546 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] ('5bc84c8b-26ea-4171-afd3-66736e5b9105', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 2, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (425 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 28, 18, 59, 12, 524860), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 28, 18, 59, 12, 545913), datetime.datetime(2025, 4, 28, 18, 59, 12, 545913), 0)
2025-04-28 18:59:12,547 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:12,553 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:12,553 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:59:12,554 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] ('5bc84c8b-26ea-4171-afd3-66736e5b9105',)
2025-04-28 18:59:12,555 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:12,557 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 5bc84c8b-26ea-4171-afd3-66736e5b9105 (优先级 1) 添加到队列 0
2025-04-28 18:59:12,563 - services.sync_service - INFO - 正在同步创建任务到天风系统: 5bc84c8b-26ea-4171-afd3-66736e5b9105
2025-04-28 18:59:12,563 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"5bc84c8b-26ea-4171-afd3-66736e5b9105","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":false,"priority":1,"createTime":"2025-04-28 18:59:12","sceneId":"abk1235kgnbaoj2j4l6j6h3hw","needAmr":1}
2025-04-28 18:59:12,583 - services.sync_service - WARNING - 同步任务到系统任务失败: JSON parse error: Cannot deserialize value of type `java.lang.Integer` from Boolean value (token `JsonToken.VALUE_FALSE`)
2025-04-28 18:59:12,584 - services.enhanced_scheduler.task_scheduler - WARNING - 同步任务到主任务系统失败: 5bc84c8b-26ea-4171-afd3-66736e5b9105
2025-04-28 18:59:12,584 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 5bc84c8b-26ea-4171-afd3-66736e5b9105
2025-04-28 18:59:12,584 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0662秒
2025-04-28 18:59:12,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 5bc84c8b-26ea-4171-afd3-66736e5b9105, 优先级: 1
2025-04-28 18:59:12,650 - services.execution.task_executor - DEBUG - 任务 5bc84c8b-26ea-4171-afd3-66736e5b9105 设置超时时间: 3600秒
2025-04-28 18:59:12,651 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:12,653 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:59:12,654 - sqlalchemy.engine.Engine - INFO - [cached since 0.09952s ago] ('5bc84c8b-26ea-4171-afd3-66736e5b9105',)
2025-04-28 18:59:12,657 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:59:12,661 - sqlalchemy.engine.Engine - INFO - [cached since 0.1398s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:59:12,664 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:59:12,666 - sqlalchemy.engine.Engine - INFO - [generated in 0.00298s] (datetime.datetime(2025, 4, 28, 18, 59, 12, 663115), datetime.datetime(2025, 4, 28, 18, 59, 12, 663115), '5bc84c8b-26ea-4171-afd3-66736e5b9105')
2025-04-28 18:59:12,670 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:12,678 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:12,682 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:59:12,685 - sqlalchemy.engine.Engine - INFO - [generated in 0.00389s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 59, 12, 682723), '5bc84c8b-26ea-4171-afd3-66736e5b9105')
2025-04-28 18:59:12,686 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:12,695 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-28 18:59:12,695 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:12,698 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:59:12,699 - sqlalchemy.engine.Engine - INFO - [generated in 0.00159s] ('25f3e0b6-30ed-4466-a9c2-a4d3575ca8d8', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '5bc84c8b-26ea-4171-afd3-66736e5b9105', datetime.datetime(2025, 4, 28, 18, 59, 12, 695713), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 59, 12, 698714), datetime.datetime(2025, 4, 28, 18, 59, 12, 698714), 0)
2025-04-28 18:59:12,700 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:12,710 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:12,713 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:59:12,716 - sqlalchemy.engine.Engine - INFO - [generated in 0.00290s] ('25f3e0b6-30ed-4466-a9c2-a4d3575ca8d8',)
2025-04-28 18:59:12,717 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:59:12,718 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:59:12,719 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:59:12,722 - sqlalchemy.engine.Engine - INFO - [generated in 0.00325s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 59, 12, 719113), '25f3e0b6-30ed-4466-a9c2-a4d3575ca8d8')
2025-04-28 18:59:12,726 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:12,734 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-28 18:59:12,735 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-28 18:59:12,737 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-28 18:59:12,739 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:12,742 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:59:12,743 - sqlalchemy.engine.Engine - INFO - [cached since 0.04496s ago] ('d32a84d4-a626-4814-9c92-d808d4489810', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{"priority": "10", "vehicle": "amr1", "group": "group_amr", "keyRoute": "apt1"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '5bc84c8b-26ea-4171-afd3-66736e5b9105', datetime.datetime(2025, 4, 28, 18, 59, 12, 739119), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 59, 12, 742113), datetime.datetime(2025, 4, 28, 18, 59, 12, 742113), 0)
2025-04-28 18:59:12,745 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:12,754 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: d32a84d4-a626-4814-9c92-d808d4489810
2025-04-28 18:59:12,755 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:12,757 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:59:12,758 - sqlalchemy.engine.Engine - INFO - [cached since 0.0452s ago] ('d32a84d4-a626-4814-9c92-d808d4489810',)
2025-04-28 18:59:12,760 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:59:12,760 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:59:12,761 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:59:12,761 - sqlalchemy.engine.Engine - INFO - [cached since 0.04201s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 59, 12, 761196), 'd32a84d4-a626-4814-9c92-d808d4489810')
2025-04-28 18:59:12,762 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:12,767 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-28 18:59:12,771 - services.sync_service - INFO - 正在为任务选择AMR: 5bc84c8b-26ea-4171-afd3-66736e5b9105, 站点: apt1
2025-04-28 18:59:12,817 - services.sync_service - WARNING - 为任务选择AMR失败: 不支持POST请求方法，支持以下GET、
2025-04-28 18:59:12,820 - services.sync_service - INFO - 正在封口任务: 5bc84c8b-26ea-4171-afd3-66736e5b9105
2025-04-28 18:59:12,867 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-28 18:59:12,869 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:12,871 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:59:12,871 - sqlalchemy.engine.Engine - INFO - [generated in 0.00092s] ('913357a1-bc5d-4c3d-8c74-a502e7a54c60', 3, '{"success": false, "message": "选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "code": 405, "result": null, "timestamp": 1745837951878}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '5bc84c8b-26ea-4171-afd3-66736e5b9105', datetime.datetime(2025, 4, 28, 18, 59, 12, 870398), datetime.datetime(2025, 4, 28, 18, 59, 12, 870398), 0)
2025-04-28 18:59:12,873 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:12,886 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:59:12,889 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:12,890 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:59:12,891 - sqlalchemy.engine.Engine - INFO - [cached since 0.1785s ago] ('d32a84d4-a626-4814-9c92-d808d4489810',)
2025-04-28 18:59:12,893 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:59:12,893 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:59:12,895 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:59:12,895 - sqlalchemy.engine.Engine - INFO - [generated in 0.00067s] (datetime.datetime(2025, 4, 28, 18, 59, 12, 894968), '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 59, 12, 895967), 'd32a84d4-a626-4814-9c92-d808d4489810')
2025-04-28 18:59:12,899 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:12,907 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:12,907 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:59:12,907 - sqlalchemy.engine.Engine - INFO - [cached since 0.03691s ago] ('42c17843-158a-467b-9b60-f9bfc26ef336', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '5bc84c8b-26ea-4171-afd3-66736e5b9105', datetime.datetime(2025, 4, 28, 18, 59, 12, 907309), datetime.datetime(2025, 4, 28, 18, 59, 12, 907309), 0)
2025-04-28 18:59:12,908 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:12,915 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:12,915 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:59:12,915 - sqlalchemy.engine.Engine - INFO - [cached since 0.2023s ago] ('25f3e0b6-30ed-4466-a9c2-a4d3575ca8d8',)
2025-04-28 18:59:12,916 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:59:12,916 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:59:12,917 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:59:12,917 - sqlalchemy.engine.Engine - INFO - [cached since 0.02177s ago] (datetime.datetime(2025, 4, 28, 18, 59, 12, 916302), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 59, 12, 917302), '25f3e0b6-30ed-4466-a9c2-a4d3575ca8d8')
2025-04-28 18:59:12,918 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:12,924 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:12,925 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:59:12,925 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] (datetime.datetime(2025, 4, 28, 18, 59, 12, 924608), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskStatus.FAILED: 2000>, 245, 1, datetime.datetime(2025, 4, 28, 18, 59, 12, 925600), '5bc84c8b-26ea-4171-afd3-66736e5b9105')
2025-04-28 18:59:12,926 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:12,932 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 5bc84c8b-26ea-4171-afd3-66736e5b9105, 结果: False
2025-04-28 18:59:51,601 - app - INFO - 应用程序关闭中...
2025-04-28 18:59:51,601 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 18:59:51,601 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 18:59:51,601 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 18:59:51,601 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 18:59:51,603 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 18:59:51,603 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 18:59:51,604 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 18:59:51,604 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 18:59:51,604 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 18:59:51,604 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 18:59:51,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 18:59:51,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 18:59:51,604 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 18:59:51,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 18:59:51,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 18:59:51,605 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 18:59:51,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 18:59:51,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 18:59:51,605 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 18:59:51,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 18:59:51,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 18:59:51,606 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 18:59:51,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 18:59:51,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 18:59:51,607 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 18:59:51,607 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 18:59:51,607 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 18:59:51,607 - app - INFO - 增强版任务调度器已停止
2025-04-28 18:59:51,608 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 18:59:51,609 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 18:59:51,609 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 18:59:51,609 - data.session - INFO - 数据库连接已关闭
2025-04-28 18:59:54,050 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:59:54,109 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:59:54,110 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:59:54,765 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 18:59:54,824 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:59:54,833 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 18:59:54,891 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 18:59:54,937 - data.session - INFO - 正在初始化数据库...
2025-04-28 18:59:54,970 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 18:59:54,972 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:59:54,973 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:54,973 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:59:54,974 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:54,975 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:59:54,977 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:54,979 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:54,981 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 18:59:54,985 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:54,990 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 18:59:54,993 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:54,996 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 18:59:54,998 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:54,999 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 18:59:55,002 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:55,004 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 18:59:55,006 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:55,006 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 18:59:55,007 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:55,007 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 18:59:55,008 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:55,008 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 18:59:55,009 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:55,010 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 18:59:55,011 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:55,011 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 18:59:55,012 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:55,012 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 18:59:55,013 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 18:59:55,013 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:55,014 - data.session - INFO - 数据库表初始化完成
2025-04-28 18:59:55,358 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 18:59:55,359 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 18:59:55,359 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 18:59:55,359 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 18:59:55,360 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 18:59:55,360 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 18:59:55,360 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 18:59:55,360 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 18:59:55,360 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 18:59:55,361 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 18:59:55,361 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 18:59:55,361 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 18:59:55,361 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 18:59:55,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 18:59:55,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 18:59:55,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 18:59:55,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 18:59:55,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 18:59:55,363 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 18:59:55,363 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 18:59:55,364 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:59:55,365 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 18:59:55,365 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:59:55,366 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 18:59:55,366 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:59:55,366 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 18:59:55,367 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 18:59:55,368 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:55,378 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 18:59:55,378 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 18:59:55,379 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 18:59:55,379 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:55,380 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 18:59:55,380 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 18:59:55,380 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 18:59:55,381 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:55,383 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 18:59:55,383 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 18:59:55,386 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:55,387 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 18:59:55,387 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 18:59:55,387 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 18:59:55,387 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 18:59:55,388 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 18:59:55,388 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:55,391 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 18:59:55,391 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 17, 59, 55, 381310))
2025-04-28 18:59:55,392 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:57,199 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-28 18:59:57,202 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:57,204 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:59:57,204 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:59:57,205 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:57,206 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:57,207 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:59:57,207 - sqlalchemy.engine.Engine - INFO - [cached since 0.003531s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:59:57,208 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:57,209 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-28 18:59:57,209 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-28 18:59:57,209 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-28 18:59:57,210 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:57,210 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-28 18:59:57,211 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (None, datetime.datetime(2025, 4, 28, 18, 59, 57, 210210), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-28 18:59:57,211 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:57,225 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:57,226 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:59:57,226 - sqlalchemy.engine.Engine - INFO - [cached since 0.02289s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:59:57,228 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:59:57,228 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] ('36a42745-3335-4290-8b7c-23746b4708ca', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 2, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (425 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 28, 18, 59, 57, 209210), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 28, 18, 59, 57, 228787), datetime.datetime(2025, 4, 28, 18, 59, 57, 228787), 0)
2025-04-28 18:59:57,229 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:57,237 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:57,238 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:59:57,239 - sqlalchemy.engine.Engine - INFO - [generated in 0.00079s] ('36a42745-3335-4290-8b7c-23746b4708ca',)
2025-04-28 18:59:57,240 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:57,241 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 36a42745-3335-4290-8b7c-23746b4708ca (优先级 1) 添加到队列 0
2025-04-28 18:59:57,246 - services.sync_service - INFO - 正在同步创建任务到天风系统: 36a42745-3335-4290-8b7c-23746b4708ca
2025-04-28 18:59:57,246 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"36a42745-3335-4290-8b7c-23746b4708ca","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-28 18:59:57","sceneId":"abk1235kgnbaoj2j4l6j6h3hw","needAmr":1}
2025-04-28 18:59:57,277 - services.sync_service - WARNING - 同步任务到系统任务失败: 此场景id不存在
2025-04-28 18:59:57,278 - services.enhanced_scheduler.task_scheduler - WARNING - 同步任务到主任务系统失败: 36a42745-3335-4290-8b7c-23746b4708ca
2025-04-28 18:59:57,278 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 36a42745-3335-4290-8b7c-23746b4708ca
2025-04-28 18:59:57,279 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0805秒
2025-04-28 18:59:57,315 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 36a42745-3335-4290-8b7c-23746b4708ca, 优先级: 1
2025-04-28 18:59:57,316 - services.execution.task_executor - DEBUG - 任务 36a42745-3335-4290-8b7c-23746b4708ca 设置超时时间: 3600秒
2025-04-28 18:59:57,317 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:57,317 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 18:59:57,318 - sqlalchemy.engine.Engine - INFO - [cached since 0.07972s ago] ('36a42745-3335-4290-8b7c-23746b4708ca',)
2025-04-28 18:59:57,319 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 18:59:57,319 - sqlalchemy.engine.Engine - INFO - [cached since 0.1161s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 18:59:57,321 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:59:57,321 - sqlalchemy.engine.Engine - INFO - [generated in 0.00022s] (datetime.datetime(2025, 4, 28, 18, 59, 57, 321180), datetime.datetime(2025, 4, 28, 18, 59, 57, 321180), '36a42745-3335-4290-8b7c-23746b4708ca')
2025-04-28 18:59:57,322 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:57,329 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:57,330 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:59:57,330 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 59, 57, 330616), '36a42745-3335-4290-8b7c-23746b4708ca')
2025-04-28 18:59:57,331 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:57,338 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-28 18:59:57,339 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:57,340 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:59:57,341 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] ('ccb83d73-7bae-46ac-a1e4-a67d48b56125', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '36a42745-3335-4290-8b7c-23746b4708ca', datetime.datetime(2025, 4, 28, 18, 59, 57, 338613), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 59, 57, 340614), datetime.datetime(2025, 4, 28, 18, 59, 57, 340614), 0)
2025-04-28 18:59:57,342 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:57,350 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:57,355 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:59:57,357 - sqlalchemy.engine.Engine - INFO - [generated in 0.00142s] ('ccb83d73-7bae-46ac-a1e4-a67d48b56125',)
2025-04-28 18:59:57,358 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:59:57,358 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:59:57,360 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:59:57,363 - sqlalchemy.engine.Engine - INFO - [generated in 0.00272s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 59, 57, 360624), 'ccb83d73-7bae-46ac-a1e4-a67d48b56125')
2025-04-28 18:59:57,364 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:57,369 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-28 18:59:57,369 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-28 18:59:57,373 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-28 18:59:57,374 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:57,375 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:59:57,378 - sqlalchemy.engine.Engine - INFO - [cached since 0.0379s ago] ('1ce8ec87-baf7-47db-a9e0-87b4d5d872be', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{"priority": "10", "vehicle": "amr1", "group": "group_amr", "keyRoute": "apt1"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '36a42745-3335-4290-8b7c-23746b4708ca', datetime.datetime(2025, 4, 28, 18, 59, 57, 374613), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 28, 18, 59, 57, 375623), datetime.datetime(2025, 4, 28, 18, 59, 57, 375623), 0)
2025-04-28 18:59:57,379 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:57,387 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 1ce8ec87-baf7-47db-a9e0-87b4d5d872be
2025-04-28 18:59:57,387 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:57,389 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:59:57,390 - sqlalchemy.engine.Engine - INFO - [cached since 0.03426s ago] ('1ce8ec87-baf7-47db-a9e0-87b4d5d872be',)
2025-04-28 18:59:57,393 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:59:57,393 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:59:57,393 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:59:57,394 - sqlalchemy.engine.Engine - INFO - [cached since 0.0334s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 28, 18, 59, 57, 393988), '1ce8ec87-baf7-47db-a9e0-87b4d5d872be')
2025-04-28 18:59:57,394 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:57,400 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-28 18:59:57,400 - services.sync_service - INFO - 正在为任务选择AMR: 36a42745-3335-4290-8b7c-23746b4708ca, 站点: apt1
2025-04-28 18:59:57,421 - services.sync_service - WARNING - 为任务选择AMR失败: 不支持POST请求方法，支持以下GET、
2025-04-28 18:59:57,422 - services.sync_service - INFO - 正在封口任务: 36a42745-3335-4290-8b7c-23746b4708ca
2025-04-28 18:59:57,462 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-28 18:59:57,465 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:57,469 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:59:57,470 - sqlalchemy.engine.Engine - INFO - [generated in 0.00155s] ('f4255852-1747-421c-a4c8-b083dd601c64', 3, '{"success": false, "message": "选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "code": 405, "result": null, "timestamp": 1745837996493}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '36a42745-3335-4290-8b7c-23746b4708ca', datetime.datetime(2025, 4, 28, 18, 59, 57, 469724), datetime.datetime(2025, 4, 28, 18, 59, 57, 469724), 0)
2025-04-28 18:59:57,471 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:57,487 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 18:59:57,488 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:57,489 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:59:57,489 - sqlalchemy.engine.Engine - INFO - [cached since 0.1336s ago] ('1ce8ec87-baf7-47db-a9e0-87b4d5d872be',)
2025-04-28 18:59:57,490 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 18:59:57,490 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 18:59:57,491 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:59:57,492 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (datetime.datetime(2025, 4, 28, 18, 59, 57, 490723), '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 59, 57, 491724), '1ce8ec87-baf7-47db-a9e0-87b4d5d872be')
2025-04-28 18:59:57,494 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:57,510 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:57,511 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 18:59:57,512 - sqlalchemy.engine.Engine - INFO - [cached since 0.04373s ago] ('f44f53cd-39ca-440e-844c-30c8bc915f6f', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '36a42745-3335-4290-8b7c-23746b4708ca', datetime.datetime(2025, 4, 28, 18, 59, 57, 511722), datetime.datetime(2025, 4, 28, 18, 59, 57, 511722), 0)
2025-04-28 18:59:57,514 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:57,527 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:57,528 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 18:59:57,528 - sqlalchemy.engine.Engine - INFO - [cached since 0.1729s ago] ('ccb83d73-7bae-46ac-a1e4-a67d48b56125',)
2025-04-28 18:59:57,530 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 18:59:57,530 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 18:59:57,530 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 18:59:57,530 - sqlalchemy.engine.Engine - INFO - [cached since 0.03918s ago] (datetime.datetime(2025, 4, 28, 18, 59, 57, 530723), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 18, 59, 57, 530723), 'ccb83d73-7bae-46ac-a1e4-a67d48b56125')
2025-04-28 18:59:57,531 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:57,543 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 18:59:57,544 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 18:59:57,545 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] (datetime.datetime(2025, 4, 28, 18, 59, 57, 543722), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskStatus.FAILED: 2000>, 214, 1, datetime.datetime(2025, 4, 28, 18, 59, 57, 544723), '36a42745-3335-4290-8b7c-23746b4708ca')
2025-04-28 18:59:57,547 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 18:59:57,556 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 36a42745-3335-4290-8b7c-23746b4708ca, 结果: False
2025-04-28 19:00:55,396 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 19:00:55,397 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 19:00:55,397 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 19:00:55,397 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 19:00:55,397 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 19:00:55,398 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 19:00:55,398 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:00:55,400 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 19:00:55,404 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 0, 55, 396131))
2025-04-28 19:00:55,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 19:00:55,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 19:00:55,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 19:00:55,409 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 19:00:55,411 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 19:00:55,411 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 19:00:55,413 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 19:00:55,413 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 19:00:55,414 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 19:00:55,414 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 19:00:55,414 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 19:00:55,414 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 19:00:55,417 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:00:55,420 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 19:00:55,421 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 19:00:55,421 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 19:00:55,422 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 19:00:55,424 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 19:00:55,435 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 19:01:09,387 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-28 19:01:09,388 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:01:09,388 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 19:01:09,389 - sqlalchemy.engine.Engine - INFO - [cached since 72.18s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 19:01:09,389 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:01:09,390 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:01:09,391 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 19:01:09,391 - sqlalchemy.engine.Engine - INFO - [cached since 72.19s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 19:01:09,391 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:01:09,392 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-28 19:01:09,392 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-28 19:01:09,392 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-28 19:01:09,392 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:01:09,393 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-28 19:01:09,393 - sqlalchemy.engine.Engine - INFO - [cached since 72.18s ago] (None, datetime.datetime(2025, 4, 28, 19, 1, 9, 393062), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-28 19:01:09,393 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:01:09,400 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:01:09,404 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 19:01:09,405 - sqlalchemy.engine.Engine - INFO - [cached since 72.2s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 19:01:09,408 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 19:01:09,409 - sqlalchemy.engine.Engine - INFO - [cached since 72.18s ago] ('0339834d-742f-4494-8ec4-1adc8c25afcc', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 2, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (425 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 28, 19, 1, 9, 392065), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 28, 19, 1, 9, 408932), datetime.datetime(2025, 4, 28, 19, 1, 9, 408932), 0)
2025-04-28 19:01:09,411 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:01:09,419 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:01:09,421 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 19:01:09,421 - sqlalchemy.engine.Engine - INFO - [cached since 72.18s ago] ('0339834d-742f-4494-8ec4-1adc8c25afcc',)
2025-04-28 19:01:09,424 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:01:09,427 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 0339834d-742f-4494-8ec4-1adc8c25afcc (优先级 1) 添加到队列 0
2025-04-28 19:01:09,427 - services.sync_service - INFO - 正在同步创建任务到天风系统: 0339834d-742f-4494-8ec4-1adc8c25afcc
2025-04-28 19:01:09,428 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"0339834d-742f-4494-8ec4-1adc8c25afcc","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-28 19:01:09","sceneId":"1912043207186550785","needAmr":1}
2025-04-28 19:01:09,490 - services.sync_service - INFO - 成功同步任务到系统任务: 0339834d-742f-4494-8ec4-1adc8c25afcc
2025-04-28 19:01:09,493 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 0339834d-742f-4494-8ec4-1adc8c25afcc
2025-04-28 19:01:09,494 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 0339834d-742f-4494-8ec4-1adc8c25afcc
2025-04-28 19:01:09,494 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1079秒
2025-04-28 19:01:09,535 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 0339834d-742f-4494-8ec4-1adc8c25afcc, 优先级: 1
2025-04-28 19:01:09,536 - services.execution.task_executor - DEBUG - 任务 0339834d-742f-4494-8ec4-1adc8c25afcc 设置超时时间: 3600秒
2025-04-28 19:01:09,536 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:01:09,537 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 19:01:09,540 - sqlalchemy.engine.Engine - INFO - [cached since 72.3s ago] ('0339834d-742f-4494-8ec4-1adc8c25afcc',)
2025-04-28 19:01:09,541 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 19:01:09,544 - sqlalchemy.engine.Engine - INFO - [cached since 72.34s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 19:01:09,546 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 19:01:09,547 - sqlalchemy.engine.Engine - INFO - [cached since 72.23s ago] (datetime.datetime(2025, 4, 28, 19, 1, 9, 546493), datetime.datetime(2025, 4, 28, 19, 1, 9, 546493), '0339834d-742f-4494-8ec4-1adc8c25afcc')
2025-04-28 19:01:09,548 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:01:09,558 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:01:09,560 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 19:01:09,560 - sqlalchemy.engine.Engine - INFO - [cached since 72.23s ago] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 19, 1, 9, 559495), '0339834d-742f-4494-8ec4-1adc8c25afcc')
2025-04-28 19:01:09,561 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:01:09,571 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-28 19:01:09,572 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:01:09,573 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 19:01:09,573 - sqlalchemy.engine.Engine - INFO - [cached since 72.23s ago] ('38a81307-f7db-462d-b4d3-ac15913d1171', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0339834d-742f-4494-8ec4-1adc8c25afcc', datetime.datetime(2025, 4, 28, 19, 1, 9, 572501), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 28, 19, 1, 9, 573501), datetime.datetime(2025, 4, 28, 19, 1, 9, 573501), 0)
2025-04-28 19:01:09,574 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:01:09,581 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:01:09,582 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 19:01:09,582 - sqlalchemy.engine.Engine - INFO - [cached since 72.23s ago] ('38a81307-f7db-462d-b4d3-ac15913d1171',)
2025-04-28 19:01:09,583 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 19:01:09,584 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 19:01:09,585 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 19:01:09,585 - sqlalchemy.engine.Engine - INFO - [cached since 72.23s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 28, 19, 1, 9, 585551), '38a81307-f7db-462d-b4d3-ac15913d1171')
2025-04-28 19:01:09,586 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:01:09,591 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-28 19:01:09,591 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-28 19:01:09,592 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-28 19:01:09,592 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:01:09,592 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 19:01:09,594 - sqlalchemy.engine.Engine - INFO - [cached since 72.25s ago] ('11c5e44b-c762-4cc1-ace6-9ef4d5927dc8', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{"priority": "10", "vehicle": "amr1", "group": "group_amr", "keyRoute": "apt1"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0339834d-742f-4494-8ec4-1adc8c25afcc', datetime.datetime(2025, 4, 28, 19, 1, 9, 592961), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 28, 19, 1, 9, 592961), datetime.datetime(2025, 4, 28, 19, 1, 9, 592961), 0)
2025-04-28 19:01:09,594 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:01:09,602 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 11c5e44b-c762-4cc1-ace6-9ef4d5927dc8
2025-04-28 19:01:09,603 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:01:09,603 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 19:01:09,604 - sqlalchemy.engine.Engine - INFO - [cached since 72.25s ago] ('11c5e44b-c762-4cc1-ace6-9ef4d5927dc8',)
2025-04-28 19:01:09,605 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 19:01:09,605 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 19:01:09,605 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 19:01:09,605 - sqlalchemy.engine.Engine - INFO - [cached since 72.24s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 28, 19, 1, 9, 605056), '11c5e44b-c762-4cc1-ace6-9ef4d5927dc8')
2025-04-28 19:01:09,606 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:01:09,613 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-28 19:01:09,613 - services.sync_service - INFO - 正在为任务选择AMR: 0339834d-742f-4494-8ec4-1adc8c25afcc, 站点: apt1
2025-04-28 19:01:09,637 - services.sync_service - WARNING - 为任务选择AMR失败: 不支持POST请求方法，支持以下GET、
2025-04-28 19:01:09,637 - services.sync_service - INFO - 正在封口任务: 0339834d-742f-4494-8ec4-1adc8c25afcc
2025-04-28 19:01:09,666 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-28 19:01:09,667 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:01:09,668 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 19:01:09,668 - sqlalchemy.engine.Engine - INFO - [cached since 72.2s ago] ('4d476e98-0647-4492-9478-986aee573c51', 3, '{"success": false, "message": "选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "code": 405, "result": null, "timestamp": 1745838068706}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0339834d-742f-4494-8ec4-1adc8c25afcc', datetime.datetime(2025, 4, 28, 19, 1, 9, 667200), datetime.datetime(2025, 4, 28, 19, 1, 9, 667200), 0)
2025-04-28 19:01:09,669 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:01:09,678 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 19:01:09,678 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:01:09,679 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 19:01:09,679 - sqlalchemy.engine.Engine - INFO - [cached since 72.32s ago] ('11c5e44b-c762-4cc1-ace6-9ef4d5927dc8',)
2025-04-28 19:01:09,680 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 19:01:09,680 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 19:01:09,680 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 19:01:09,680 - sqlalchemy.engine.Engine - INFO - [cached since 72.19s ago] (datetime.datetime(2025, 4, 28, 19, 1, 9, 680293), '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 19, 1, 9, 680293), '11c5e44b-c762-4cc1-ace6-9ef4d5927dc8')
2025-04-28 19:01:09,681 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:01:09,688 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:01:09,688 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 19:01:09,688 - sqlalchemy.engine.Engine - INFO - [cached since 72.22s ago] ('d42dc5f5-d450-4d0a-b71c-34f01bf88618', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0339834d-742f-4494-8ec4-1adc8c25afcc', datetime.datetime(2025, 4, 28, 19, 1, 9, 688300), datetime.datetime(2025, 4, 28, 19, 1, 9, 688300), 0)
2025-04-28 19:01:09,689 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:01:09,695 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:01:09,696 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 19:01:09,696 - sqlalchemy.engine.Engine - INFO - [cached since 72.34s ago] ('38a81307-f7db-462d-b4d3-ac15913d1171',)
2025-04-28 19:01:09,696 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 19:01:09,696 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 19:01:09,696 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 19:01:09,697 - sqlalchemy.engine.Engine - INFO - [cached since 72.21s ago] (datetime.datetime(2025, 4, 28, 19, 1, 9, 696331), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', datetime.datetime(2025, 4, 28, 19, 1, 9, 696331), '38a81307-f7db-462d-b4d3-ac15913d1171')
2025-04-28 19:01:09,697 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:01:09,704 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:01:09,705 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 19:01:09,705 - sqlalchemy.engine.Engine - INFO - [cached since 72.16s ago] (datetime.datetime(2025, 4, 28, 19, 1, 9, 704349), '子块 1 执行失败: 选择执行机器人失败: 不支持POST请求方法，支持以下GET、', <TaskStatus.FAILED: 2000>, 145, 1, datetime.datetime(2025, 4, 28, 19, 1, 9, 705340), '0339834d-742f-4494-8ec4-1adc8c25afcc')
2025-04-28 19:01:09,705 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:01:09,711 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 完成任务: 0339834d-742f-4494-8ec4-1adc8c25afcc, 结果: False
2025-04-28 19:01:10,430 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 19:01:10,431 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 19:01:10,431 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 19:01:10,431 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 19:01:10,431 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 19:01:10,431 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 19:01:55,317 - app - INFO - 应用程序关闭中...
2025-04-28 19:01:55,317 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 19:01:55,318 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 19:01:55,318 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 19:01:55,318 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 19:01:55,318 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 19:01:55,318 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 19:01:55,318 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 19:01:55,318 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 19:01:55,318 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 19:01:55,318 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 19:01:55,318 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 19:01:55,318 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 19:01:55,318 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 19:01:55,318 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 19:01:55,319 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 19:01:55,319 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-28 19:01:55,319 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 19:01:55,319 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 19:01:55,319 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-28 19:01:55,319 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 19:01:55,319 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 19:01:55,319 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-28 19:01:55,319 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 19:01:55,319 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 19:01:55,319 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-28 19:01:55,319 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 19:01:55,319 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 19:01:55,319 - app - INFO - 增强版任务调度器已停止
2025-04-28 19:01:55,320 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 19:01:55,320 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 19:01:55,320 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 19:01:55,321 - data.session - INFO - 数据库连接已关闭
2025-04-28 19:01:56,471 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 19:01:56,531 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 19:01:56,532 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 19:01:56,592 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 19:01:56,636 - data.session - INFO - 正在初始化数据库...
2025-04-28 19:01:56,667 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 19:01:56,669 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 19:01:56,670 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:01:56,670 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 19:01:56,671 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:01:56,671 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 19:01:56,671 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:01:56,672 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:01:56,672 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 19:01:56,672 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:01:56,673 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 19:01:56,673 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:01:56,675 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 19:01:56,675 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:01:56,676 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 19:01:56,677 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:01:56,678 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 19:01:56,678 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:01:56,679 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 19:01:56,680 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:01:56,680 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 19:01:56,681 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:01:56,681 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 19:01:56,682 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:01:56,683 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 19:01:56,683 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:01:56,684 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 19:01:56,684 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:01:56,685 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 19:01:56,686 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:01:56,686 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:01:56,687 - data.session - INFO - 数据库表初始化完成
2025-04-28 19:01:57,032 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 19:01:57,033 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 19:01:57,033 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 19:01:57,033 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 19:01:57,033 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 19:01:57,034 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 19:01:57,034 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 19:01:57,034 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 19:01:57,034 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 19:01:57,034 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 19:01:57,034 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 19:01:57,035 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 19:01:57,035 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 19:01:57,036 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 19:01:57,036 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 19:01:57,036 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 19:01:57,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 19:01:57,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 19:01:57,038 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 19:01:57,038 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 19:01:57,039 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 19:01:57,040 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 19:01:57,040 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 19:01:57,041 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 19:01:57,041 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 19:01:57,042 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 19:01:57,042 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 19:01:57,043 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:01:57,051 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 19:01:57,052 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 19:01:57,053 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 19:01:57,055 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:01:57,056 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 19:01:57,056 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 19:01:57,056 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 19:01:57,057 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:01:57,058 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 19:01:57,059 - sqlalchemy.engine.Engine - INFO - [generated in 0.00078s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 19:01:57,084 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:01:57,085 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 19:01:57,085 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 19:01:57,085 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 19:01:57,085 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 19:01:57,085 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 19:01:57,086 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:01:57,087 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 19:01:57,087 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 1, 57, 56155))
2025-04-28 19:01:57,088 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:02:57,086 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 19:02:57,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 19:02:57,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 19:02:57,089 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 19:02:57,089 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 19:02:57,090 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 19:02:57,090 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 19:02:57,092 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 19:02:57,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 19:02:57,095 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:02:57,098 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 19:02:57,100 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 2, 57, 87988))
2025-04-28 19:02:57,102 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 19:02:57,103 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 19:02:57,103 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 19:02:57,106 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 19:02:57,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 19:02:57,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 19:02:57,110 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 19:02:57,111 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 19:02:57,112 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 19:02:57,117 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:02:57,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 19:02:57,121 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 19:02:57,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 19:02:57,126 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 19:02:57,127 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 19:02:57,128 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 19:02:57,130 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 19:02:57,130 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 19:02:57,130 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 19:02:57,131 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 19:02:57,131 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 19:02:57,138 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 19:03:57,139 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 19:03:57,139 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 19:03:57,139 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 19:03:57,140 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 19:03:57,140 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 19:03:57,140 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 19:03:57,141 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 19:03:57,141 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 19:03:57,141 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 19:03:57,141 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:03:57,142 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 19:03:57,142 - sqlalchemy.engine.Engine - INFO - [cached since 120.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 3, 57, 138852))
2025-04-28 19:03:57,142 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 19:03:57,143 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 19:03:57,143 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 19:03:57,143 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 19:03:57,143 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 19:03:57,143 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 19:03:57,143 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 19:03:57,144 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 19:03:57,145 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 19:03:57,145 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:03:57,145 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 19:03:57,146 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 19:03:57,146 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 19:03:57,146 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 19:03:57,146 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 19:03:57,146 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 19:03:57,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 19:03:57,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 19:03:57,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 19:03:57,147 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 19:03:57,147 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 19:03:57,152 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 19:04:43,347 - app - INFO - 应用程序关闭中...
2025-04-28 19:04:43,347 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 19:04:43,347 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 19:04:43,348 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 19:04:43,348 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 19:04:43,348 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 19:04:43,348 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 19:04:43,348 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 19:04:43,349 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 19:04:43,349 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 19:04:43,349 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 19:04:43,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 19:04:43,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 19:04:43,350 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 19:04:43,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 19:04:43,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 19:04:43,350 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 19:04:43,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 19:04:43,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 19:04:43,350 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 19:04:43,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 19:04:43,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 19:04:43,352 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 19:04:43,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 19:04:43,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 19:04:43,352 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 19:04:43,353 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 19:04:43,353 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 19:04:43,353 - app - INFO - 增强版任务调度器已停止
2025-04-28 19:04:43,353 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 19:04:43,354 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 19:04:43,354 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 19:04:43,354 - data.session - INFO - 数据库连接已关闭
2025-04-28 19:04:44,574 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 19:04:44,642 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 19:04:44,644 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 19:04:44,706 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 19:04:44,752 - data.session - INFO - 正在初始化数据库...
2025-04-28 19:04:44,785 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 19:04:44,786 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 19:04:44,786 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:04:44,787 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 19:04:44,787 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:04:44,787 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 19:04:44,788 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:04:44,788 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:04:44,789 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 19:04:44,789 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:04:44,790 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 19:04:44,790 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:04:44,791 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 19:04:44,792 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:04:44,792 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 19:04:44,793 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:04:44,793 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 19:04:44,794 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:04:44,795 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 19:04:44,795 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:04:44,796 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 19:04:44,796 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:04:44,797 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 19:04:44,797 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:04:44,798 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 19:04:44,798 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:04:44,799 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 19:04:44,800 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:04:44,800 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 19:04:44,800 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:04:44,801 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:04:44,802 - data.session - INFO - 数据库表初始化完成
2025-04-28 19:04:45,150 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 19:04:45,150 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 19:04:45,152 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 19:04:45,155 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 19:04:45,156 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 19:04:45,158 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 19:04:45,160 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 19:04:45,162 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 19:04:45,162 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 19:04:45,163 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 19:04:45,163 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 19:04:45,163 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 19:04:45,163 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 19:04:45,164 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 19:04:45,164 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 19:04:45,165 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 19:04:45,165 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 19:04:45,165 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 19:04:45,165 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 19:04:45,165 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 19:04:45,166 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 19:04:45,166 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 19:04:45,166 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 19:04:45,167 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 19:04:45,167 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 19:04:45,167 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 19:04:45,168 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 19:04:45,168 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:04:45,178 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 19:04:45,179 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 19:04:45,180 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 19:04:45,180 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:04:45,181 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 19:04:45,181 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 19:04:45,181 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 19:04:45,181 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:04:45,183 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 19:04:45,183 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 19:04:45,184 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:04:45,185 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 19:04:45,185 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 19:04:45,186 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 19:04:45,186 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 19:04:45,186 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 19:04:45,186 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:04:45,187 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 19:04:45,187 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 4, 45, 181632))
2025-04-28 19:04:45,188 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:04:47,526 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-28 19:04:47,529 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:04:47,529 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 19:04:47,530 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 19:04:47,531 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:04:47,532 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:04:47,532 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 19:04:47,532 - sqlalchemy.engine.Engine - INFO - [cached since 0.002849s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 19:04:47,533 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:04:47,534 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-28 19:04:47,534 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-28 19:04:47,534 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-28 19:04:47,535 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:04:47,535 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-28 19:04:47,535 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (None, datetime.datetime(2025, 4, 28, 19, 4, 47, 535590), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-28 19:04:47,536 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:04:47,551 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:04:47,552 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 19:04:47,552 - sqlalchemy.engine.Engine - INFO - [cached since 0.02247s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 19:04:47,554 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 19:04:47,555 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] ('283b93a8-6f18-4803-aca2-593a14f0d387', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 2, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (425 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 28, 19, 4, 47, 534785), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 28, 19, 4, 47, 554180), datetime.datetime(2025, 4, 28, 19, 4, 47, 554180), 0)
2025-04-28 19:04:47,556 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:04:47,563 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:04:47,564 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 19:04:47,564 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] ('283b93a8-6f18-4803-aca2-593a14f0d387',)
2025-04-28 19:04:47,566 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:04:47,566 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 283b93a8-6f18-4803-aca2-593a14f0d387 (优先级 1) 添加到队列 0
2025-04-28 19:04:47,572 - services.sync_service - INFO - 正在同步创建任务到天风系统: 283b93a8-6f18-4803-aca2-593a14f0d387
2025-04-28 19:04:47,572 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"283b93a8-6f18-4803-aca2-593a14f0d387","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-28 19:04:47","sceneId":"1912043207186550785","needAmr":1}
2025-04-28 19:04:47,597 - services.sync_service - INFO - 成功同步任务到系统任务: 283b93a8-6f18-4803-aca2-593a14f0d387
2025-04-28 19:04:47,599 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 283b93a8-6f18-4803-aca2-593a14f0d387
2025-04-28 19:04:47,600 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 283b93a8-6f18-4803-aca2-593a14f0d387
2025-04-28 19:04:47,600 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0734秒
2025-04-28 19:04:47,647 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 283b93a8-6f18-4803-aca2-593a14f0d387, 优先级: 1
2025-04-28 19:04:47,649 - services.execution.task_executor - DEBUG - 任务 283b93a8-6f18-4803-aca2-593a14f0d387 设置超时时间: 3600秒
2025-04-28 19:04:47,650 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:04:47,651 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 19:04:47,652 - sqlalchemy.engine.Engine - INFO - [cached since 0.08872s ago] ('283b93a8-6f18-4803-aca2-593a14f0d387',)
2025-04-28 19:04:47,653 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 19:04:47,655 - sqlalchemy.engine.Engine - INFO - [cached since 0.126s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 19:04:47,661 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 19:04:47,662 - sqlalchemy.engine.Engine - INFO - [generated in 0.00064s] (datetime.datetime(2025, 4, 28, 19, 4, 47, 660778), datetime.datetime(2025, 4, 28, 19, 4, 47, 661856), '283b93a8-6f18-4803-aca2-593a14f0d387')
2025-04-28 19:04:47,665 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:04:47,675 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:04:47,676 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 19:04:47,678 - sqlalchemy.engine.Engine - INFO - [generated in 0.00166s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 19, 4, 47, 676984), '283b93a8-6f18-4803-aca2-593a14f0d387')
2025-04-28 19:04:47,680 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:04:47,689 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-28 19:04:47,690 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:04:47,692 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 19:04:47,692 - sqlalchemy.engine.Engine - INFO - [generated in 0.00053s] ('94f7a94d-b7b0-4a1c-b909-bb43de22f5d7', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '283b93a8-6f18-4803-aca2-593a14f0d387', datetime.datetime(2025, 4, 28, 19, 4, 47, 689703), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 28, 19, 4, 47, 692839), datetime.datetime(2025, 4, 28, 19, 4, 47, 692839), 0)
2025-04-28 19:04:47,693 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:04:47,700 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:04:47,701 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 19:04:47,702 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] ('94f7a94d-b7b0-4a1c-b909-bb43de22f5d7',)
2025-04-28 19:04:47,703 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 19:04:47,703 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 19:04:47,705 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 19:04:47,705 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 28, 19, 4, 47, 704868), '94f7a94d-b7b0-4a1c-b909-bb43de22f5d7')
2025-04-28 19:04:47,706 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:04:47,713 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-28 19:04:47,714 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-28 19:04:47,716 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-28 19:04:47,717 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:04:47,718 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 19:04:47,720 - sqlalchemy.engine.Engine - INFO - [cached since 0.02868s ago] ('e0818b7c-3e72-4689-880b-f104f2260557', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{"priority": "10", "vehicle": "amr1", "group": "group_amr", "keyRoute": "apt1"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '283b93a8-6f18-4803-aca2-593a14f0d387', datetime.datetime(2025, 4, 28, 19, 4, 47, 717870), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 28, 19, 4, 47, 718872), datetime.datetime(2025, 4, 28, 19, 4, 47, 718872), 0)
2025-04-28 19:04:47,721 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:04:47,729 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: e0818b7c-3e72-4689-880b-f104f2260557
2025-04-28 19:04:47,729 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:04:47,729 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 19:04:47,731 - sqlalchemy.engine.Engine - INFO - [cached since 0.02916s ago] ('e0818b7c-3e72-4689-880b-f104f2260557',)
2025-04-28 19:04:47,732 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 19:04:47,732 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 19:04:47,733 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 19:04:47,734 - sqlalchemy.engine.Engine - INFO - [cached since 0.02969s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 28, 19, 4, 47, 733588), 'e0818b7c-3e72-4689-880b-f104f2260557')
2025-04-28 19:04:47,737 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:04:47,746 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-28 19:04:47,747 - services.sync_service - INFO - 正在为任务选择AMR: 283b93a8-6f18-4803-aca2-593a14f0d387, 站点: apt1
2025-04-28 19:04:47,772 - services.sync_service - WARNING - 为任务选择AMR失败: 关键站点名称不能为空
2025-04-28 19:04:47,773 - services.sync_service - INFO - 正在封口任务: 283b93a8-6f18-4803-aca2-593a14f0d387
2025-04-28 19:04:47,793 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-28 19:04:47,794 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:04:47,795 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 19:04:47,795 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] ('777bc3ce-2eab-45ef-988d-d4bdcf1e3b33', 3, '{"success": false, "message": "选择执行机器人失败: 关键站点名称不能为空", "code": 400, "result": null, "timestamp": 1745838286847}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '283b93a8-6f18-4803-aca2-593a14f0d387', datetime.datetime(2025, 4, 28, 19, 4, 47, 795064), datetime.datetime(2025, 4, 28, 19, 4, 47, 795064), 0)
2025-04-28 19:04:47,796 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:04:47,805 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人失败: 关键站点名称不能为空
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 19:04:47,806 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:04:47,806 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 19:04:47,807 - sqlalchemy.engine.Engine - INFO - [cached since 0.1045s ago] ('e0818b7c-3e72-4689-880b-f104f2260557',)
2025-04-28 19:04:47,808 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 19:04:47,808 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 19:04:47,815 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 19:04:47,816 - sqlalchemy.engine.Engine - INFO - [generated in 0.00159s] (datetime.datetime(2025, 4, 28, 19, 4, 47, 809175), '选择执行机器人失败: 关键站点名称不能为空', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人失败: 关键站点名称不能为空', datetime.datetime(2025, 4, 28, 19, 4, 47, 814141), 'e0818b7c-3e72-4689-880b-f104f2260557')
2025-04-28 19:04:47,818 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:04:47,827 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:04:47,828 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 19:04:47,828 - sqlalchemy.engine.Engine - INFO - [cached since 0.03384s ago] ('643acf3f-970b-4c74-a786-e757de2ceb5c', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人失败: 关键站点名称不能为空", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '283b93a8-6f18-4803-aca2-593a14f0d387', datetime.datetime(2025, 4, 28, 19, 4, 47, 828467), datetime.datetime(2025, 4, 28, 19, 4, 47, 828467), 0)
2025-04-28 19:04:47,829 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:04:47,840 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:04:47,840 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 19:04:47,841 - sqlalchemy.engine.Engine - INFO - [cached since 0.1394s ago] ('94f7a94d-b7b0-4a1c-b909-bb43de22f5d7',)
2025-04-28 19:04:47,842 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 19:04:47,842 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 19:04:47,842 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 19:04:47,842 - sqlalchemy.engine.Engine - INFO - [cached since 0.02883s ago] (datetime.datetime(2025, 4, 28, 19, 4, 47, 842908), '子块 1 执行失败: 选择执行机器人失败: 关键站点名称不能为空', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人失败: 关键站点名称不能为空', datetime.datetime(2025, 4, 28, 19, 4, 47, 842908), '94f7a94d-b7b0-4a1c-b909-bb43de22f5d7')
2025-04-28 19:04:47,843 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:04:47,850 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:04:47,851 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 19:04:47,851 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] (datetime.datetime(2025, 4, 28, 19, 4, 47, 849883), '子块 1 执行失败: 选择执行机器人失败: 关键站点名称不能为空', <TaskStatus.FAILED: 2000>, 174, 1, datetime.datetime(2025, 4, 28, 19, 4, 47, 851986), '283b93a8-6f18-4803-aca2-593a14f0d387')
2025-04-28 19:04:47,860 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:04:47,877 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 283b93a8-6f18-4803-aca2-593a14f0d387, 结果: False
2025-04-28 19:05:45,193 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 19:05:45,194 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 19:05:45,194 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 19:05:45,195 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 19:05:45,195 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 19:05:45,196 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 19:05:45,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 19:05:45,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 19:05:45,197 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 19:05:45,197 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:05:45,197 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 19:05:45,198 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 5, 45, 194726))
2025-04-28 19:05:45,198 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 19:05:45,198 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 19:05:45,199 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 19:05:45,199 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 19:05:45,199 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 19:05:45,199 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 19:05:45,199 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 19:05:45,199 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 19:05:45,200 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 19:05:45,200 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:05:45,200 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 19:05:45,200 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 19:05:45,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 19:05:45,201 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 19:05:45,201 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 19:05:45,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 19:06:00,225 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 19:06:00,228 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 19:06:00,228 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 19:06:00,230 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 19:06:00,230 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 19:06:00,231 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 19:06:43,000 - app - INFO - 应用程序关闭中...
2025-04-28 19:06:43,009 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 19:06:43,009 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 19:06:43,009 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 19:06:43,010 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 19:06:43,010 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 19:06:43,010 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 19:06:43,011 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 19:06:43,011 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 19:06:43,011 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 19:06:43,011 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 19:06:43,012 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 19:06:43,012 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 19:06:43,012 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 19:06:43,012 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 19:06:43,012 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 19:06:43,012 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-28 19:06:43,012 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 19:06:43,013 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 19:06:43,013 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-28 19:06:43,013 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 19:06:43,013 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 19:06:43,013 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-28 19:06:43,013 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 19:06:43,013 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 19:06:43,013 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-28 19:06:43,013 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 19:06:43,014 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 19:06:43,014 - app - INFO - 增强版任务调度器已停止
2025-04-28 19:06:43,014 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 19:06:43,014 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 19:06:43,014 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 19:06:43,015 - data.session - INFO - 数据库连接已关闭
2025-04-28 19:06:44,207 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 19:06:44,265 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 19:06:44,266 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 19:06:44,327 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 19:06:44,374 - data.session - INFO - 正在初始化数据库...
2025-04-28 19:06:44,412 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 19:06:44,436 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 19:06:44,436 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:06:44,438 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 19:06:44,438 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:06:44,439 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 19:06:44,440 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:06:44,441 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:06:44,442 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 19:06:44,442 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:06:44,444 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 19:06:44,444 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:06:44,445 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 19:06:44,446 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:06:44,447 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 19:06:44,447 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:06:44,448 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 19:06:44,448 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:06:44,449 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 19:06:44,450 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:06:44,452 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 19:06:44,452 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:06:44,454 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 19:06:44,454 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:06:44,455 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 19:06:44,456 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:06:44,457 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 19:06:44,457 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:06:44,458 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 19:06:44,459 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:06:44,459 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:06:44,461 - data.session - INFO - 数据库表初始化完成
2025-04-28 19:06:44,798 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 19:06:44,799 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 19:06:44,799 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 19:06:44,800 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 19:06:44,801 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 19:06:44,801 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 19:06:44,801 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 19:06:44,801 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 19:06:44,802 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 19:06:44,802 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 19:06:44,802 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 19:06:44,802 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 19:06:44,803 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 19:06:44,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 19:06:44,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 19:06:44,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 19:06:44,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 19:06:44,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 19:06:44,805 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 19:06:44,805 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 19:06:44,806 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 19:06:44,807 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 19:06:44,807 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 19:06:44,807 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 19:06:44,808 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 19:06:44,808 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 19:06:44,808 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 19:06:44,808 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:06:44,817 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 19:06:44,818 - sqlalchemy.engine.Engine - INFO - [generated in 0.00053s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 19:06:44,819 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 19:06:44,819 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:06:44,820 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 19:06:44,820 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 19:06:44,820 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 19:06:44,821 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:06:44,822 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 19:06:44,822 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 19:06:44,824 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:06:44,824 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 19:06:44,824 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 19:06:44,824 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 19:06:44,824 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 19:06:44,825 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 19:06:44,825 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:06:44,825 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 19:06:44,825 - sqlalchemy.engine.Engine - INFO - [generated in 0.00022s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 6, 44, 820379))
2025-04-28 19:06:44,826 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:06:47,692 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-28 19:06:47,694 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:06:47,695 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 19:06:47,696 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 19:06:47,697 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:06:47,698 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:06:47,698 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 19:06:47,699 - sqlalchemy.engine.Engine - INFO - [cached since 0.003493s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 19:06:47,700 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:06:47,700 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-28 19:06:47,701 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-28 19:06:47,701 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-28 19:06:47,701 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:06:47,702 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-28 19:06:47,703 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] (None, datetime.datetime(2025, 4, 28, 19, 6, 47, 702936), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-28 19:06:47,703 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:06:47,720 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:06:47,720 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 19:06:47,721 - sqlalchemy.engine.Engine - INFO - [cached since 0.0245s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 19:06:47,723 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 19:06:47,723 - sqlalchemy.engine.Engine - INFO - [generated in 0.00067s] ('7aa0e42c-2a1c-4092-8e1b-28635bc01f45', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 2, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (425 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 28, 19, 6, 47, 700929), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 28, 19, 6, 47, 722928), datetime.datetime(2025, 4, 28, 19, 6, 47, 722928), 0)
2025-04-28 19:06:47,725 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:06:47,732 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:06:47,733 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 19:06:47,733 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] ('7aa0e42c-2a1c-4092-8e1b-28635bc01f45',)
2025-04-28 19:06:47,735 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:06:47,736 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 7aa0e42c-2a1c-4092-8e1b-28635bc01f45 (优先级 1) 添加到队列 0
2025-04-28 19:06:47,742 - services.sync_service - INFO - 正在同步创建任务到天风系统: 7aa0e42c-2a1c-4092-8e1b-28635bc01f45
2025-04-28 19:06:47,743 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"7aa0e42c-2a1c-4092-8e1b-28635bc01f45","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-28 19:06:47","sceneId":"1912043207186550785","needAmr":1}
2025-04-28 19:06:47,820 - services.sync_service - INFO - 成功同步任务到系统任务: 7aa0e42c-2a1c-4092-8e1b-28635bc01f45
2025-04-28 19:06:47,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 7aa0e42c-2a1c-4092-8e1b-28635bc01f45, 优先级: 1
2025-04-28 19:06:47,834 - services.execution.task_executor - DEBUG - 任务 7aa0e42c-2a1c-4092-8e1b-28635bc01f45 设置超时时间: 3600秒
2025-04-28 19:06:47,843 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 7aa0e42c-2a1c-4092-8e1b-28635bc01f45
2025-04-28 19:06:47,843 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 7aa0e42c-2a1c-4092-8e1b-28635bc01f45
2025-04-28 19:06:47,844 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:06:47,850 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 19:06:47,862 - sqlalchemy.engine.Engine - INFO - [cached since 0.129s ago] ('7aa0e42c-2a1c-4092-8e1b-28635bc01f45',)
2025-04-28 19:06:47,873 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1804秒
2025-04-28 19:06:47,878 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 19:06:47,882 - sqlalchemy.engine.Engine - INFO - [cached since 0.1862s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 19:06:47,890 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 19:06:47,904 - sqlalchemy.engine.Engine - INFO - [generated in 0.01378s] (datetime.datetime(2025, 4, 28, 19, 6, 47, 890505), datetime.datetime(2025, 4, 28, 19, 6, 47, 890505), '7aa0e42c-2a1c-4092-8e1b-28635bc01f45')
2025-04-28 19:06:47,905 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:06:47,938 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:06:47,950 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 19:06:47,964 - sqlalchemy.engine.Engine - INFO - [generated in 0.01360s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 19, 6, 47, 950776), '7aa0e42c-2a1c-4092-8e1b-28635bc01f45')
2025-04-28 19:06:47,966 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:06:47,995 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-28 19:06:48,007 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:06:48,027 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 19:06:48,028 - sqlalchemy.engine.Engine - INFO - [generated in 0.00145s] ('e327e0fe-74b2-4343-831a-428d5815e460', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '7aa0e42c-2a1c-4092-8e1b-28635bc01f45', datetime.datetime(2025, 4, 28, 19, 6, 48, 6891), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 28, 19, 6, 48, 26878), datetime.datetime(2025, 4, 28, 19, 6, 48, 26878), 0)
2025-04-28 19:06:48,030 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:06:48,043 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:06:48,044 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 19:06:48,045 - sqlalchemy.engine.Engine - INFO - [generated in 0.00091s] ('e327e0fe-74b2-4343-831a-428d5815e460',)
2025-04-28 19:06:48,047 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 19:06:48,048 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 19:06:48,053 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 19:06:48,054 - sqlalchemy.engine.Engine - INFO - [generated in 0.00144s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 28, 19, 6, 48, 53948), 'e327e0fe-74b2-4343-831a-428d5815e460')
2025-04-28 19:06:48,056 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:06:48,065 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-28 19:06:48,066 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-28 19:06:48,067 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-28 19:06:48,070 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:06:48,073 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 19:06:48,073 - sqlalchemy.engine.Engine - INFO - [cached since 0.04701s ago] ('884e85aa-561b-4102-a1c6-db72e658a181', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{"priority": "10", "vehicle": "amr1", "group": "group_amr", "keyRoute": "apt1"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '7aa0e42c-2a1c-4092-8e1b-28635bc01f45', datetime.datetime(2025, 4, 28, 19, 6, 48, 69870), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "vehicle": {"type": "Simple", "value": "amr1", "required": null}, "group": {"type": "Simple", "value": "group_amr", "required": null}, "keyRoute": {"type": "Simple", "value": "apt1", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 28, 19, 6, 48, 72878), datetime.datetime(2025, 4, 28, 19, 6, 48, 72878), 0)
2025-04-28 19:06:48,075 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:06:48,082 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 884e85aa-561b-4102-a1c6-db72e658a181
2025-04-28 19:06:48,083 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:06:48,085 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 19:06:48,086 - sqlalchemy.engine.Engine - INFO - [cached since 0.04177s ago] ('884e85aa-561b-4102-a1c6-db72e658a181',)
2025-04-28 19:06:48,089 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 19:06:48,090 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 19:06:48,092 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 19:06:48,093 - sqlalchemy.engine.Engine - INFO - [cached since 0.03945s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 28, 19, 6, 48, 92649), '884e85aa-561b-4102-a1c6-db72e658a181')
2025-04-28 19:06:48,095 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:06:48,103 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-28 19:06:48,104 - services.sync_service - INFO - 正在为任务选择AMR: 7aa0e42c-2a1c-4092-8e1b-28635bc01f45, 站点: apt1
2025-04-28 19:06:48,142 - services.sync_service - WARNING - 为任务选择AMR失败: apt1关键站点不存在
2025-04-28 19:06:48,142 - services.sync_service - INFO - 正在封口任务: 7aa0e42c-2a1c-4092-8e1b-28635bc01f45
2025-04-28 19:06:48,170 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-28 19:06:48,172 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:06:48,176 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 19:06:48,177 - sqlalchemy.engine.Engine - INFO - [generated in 0.00132s] ('13c5917a-1ceb-4b5b-bc91-ea4cc3888e81', 3, '{"success": false, "message": "选择执行机器人失败: apt1关键站点不存在", "code": 400, "result": null, "timestamp": 1745838407218}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '7aa0e42c-2a1c-4092-8e1b-28635bc01f45', datetime.datetime(2025, 4, 28, 19, 6, 48, 176141), datetime.datetime(2025, 4, 28, 19, 6, 48, 176141), 0)
2025-04-28 19:06:48,179 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:06:48,193 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人失败: apt1关键站点不存在
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 19:06:48,197 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:06:48,199 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 19:06:48,200 - sqlalchemy.engine.Engine - INFO - [cached since 0.1549s ago] ('884e85aa-561b-4102-a1c6-db72e658a181',)
2025-04-28 19:06:48,202 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 19:06:48,202 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 19:06:48,203 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 19:06:48,206 - sqlalchemy.engine.Engine - INFO - [generated in 0.00273s] (datetime.datetime(2025, 4, 28, 19, 6, 48, 202217), '选择执行机器人失败: apt1关键站点不存在', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人失败: apt1关键站点不存在', datetime.datetime(2025, 4, 28, 19, 6, 48, 203217), '884e85aa-561b-4102-a1c6-db72e658a181')
2025-04-28 19:06:48,208 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:06:48,213 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:06:48,217 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 19:06:48,218 - sqlalchemy.engine.Engine - INFO - [cached since 0.04329s ago] ('34b7177e-115d-48ce-a1e4-8ece1be5f8c5', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人失败: apt1关键站点不存在", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '7aa0e42c-2a1c-4092-8e1b-28635bc01f45', datetime.datetime(2025, 4, 28, 19, 6, 48, 217646), datetime.datetime(2025, 4, 28, 19, 6, 48, 217646), 0)
2025-04-28 19:06:48,220 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:06:48,230 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:06:48,230 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 19:06:48,230 - sqlalchemy.engine.Engine - INFO - [cached since 0.1861s ago] ('e327e0fe-74b2-4343-831a-428d5815e460',)
2025-04-28 19:06:48,231 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 19:06:48,231 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 19:06:48,232 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 19:06:48,232 - sqlalchemy.engine.Engine - INFO - [cached since 0.0294s ago] (datetime.datetime(2025, 4, 28, 19, 6, 48, 231818), '子块 1 执行失败: 选择执行机器人失败: apt1关键站点不存在', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人失败: apt1关键站点不存在', datetime.datetime(2025, 4, 28, 19, 6, 48, 232902), 'e327e0fe-74b2-4343-831a-428d5815e460')
2025-04-28 19:06:48,233 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:06:48,242 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:06:48,244 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 19:06:48,245 - sqlalchemy.engine.Engine - INFO - [generated in 0.00143s] (datetime.datetime(2025, 4, 28, 19, 6, 48, 241932), '子块 1 执行失败: 选择执行机器人失败: apt1关键站点不存在', <TaskStatus.FAILED: 2000>, 303, 1, datetime.datetime(2025, 4, 28, 19, 6, 48, 244811), '7aa0e42c-2a1c-4092-8e1b-28635bc01f45')
2025-04-28 19:06:48,247 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:06:48,253 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 7aa0e42c-2a1c-4092-8e1b-28635bc01f45, 结果: False
2025-04-28 19:07:42,263 - app - INFO - 请求开始: POST /api/vwed-task-edit/save 来自 127.0.0.1
2025-04-28 19:07:42,265 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:07:42,266 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 19:07:42,266 - sqlalchemy.engine.Engine - INFO - [cached since 54.57s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 19:07:42,267 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:07:42,269 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:07:42,269 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 19:07:42,269 - sqlalchemy.engine.Engine - INFO - [cached since 54.57s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 19:07:42,271 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET version=%s, detail=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-28 19:07:42,271 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (3, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (290 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', datetime.datetime(2025, 4, 28, 19, 7, 42, 271164), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-28 19:07:42,272 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:07:42,287 - app - INFO - 请求完成: POST /api/vwed-task-edit/save 状态码: 200 耗时: 0.0236秒
2025-04-28 19:07:44,833 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 19:07:44,836 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 19:07:44,836 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 19:07:44,837 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 19:07:44,838 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 19:07:44,838 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 19:07:44,839 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 19:07:44,839 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 19:07:44,840 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 19:07:44,840 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:07:44,841 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 19:07:44,842 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 7, 44, 833285))
2025-04-28 19:07:44,842 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 19:07:44,843 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 19:07:44,843 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 19:07:44,843 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 19:07:44,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 19:07:44,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 19:07:44,844 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 19:07:44,844 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 19:07:44,844 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 19:07:44,844 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:07:44,845 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 19:07:44,845 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 19:07:44,845 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 19:07:44,845 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 19:07:44,845 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 19:07:44,850 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 19:07:46,726 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-28 19:07:46,728 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:07:46,728 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 19:07:46,729 - sqlalchemy.engine.Engine - INFO - [cached since 59.03s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 19:07:46,730 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:07:46,731 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:07:46,732 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 19:07:46,732 - sqlalchemy.engine.Engine - INFO - [cached since 59.04s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 19:07:46,732 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:07:46,733 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-28 19:07:46,733 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-28 19:07:46,733 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-28 19:07:46,733 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:07:46,734 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-28 19:07:46,734 - sqlalchemy.engine.Engine - INFO - [cached since 59.03s ago] (None, datetime.datetime(2025, 4, 28, 19, 7, 46, 734567), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-28 19:07:46,734 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:07:46,749 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:07:46,749 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 19:07:46,749 - sqlalchemy.engine.Engine - INFO - [cached since 59.05s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 19:07:46,750 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 19:07:46,750 - sqlalchemy.engine.Engine - INFO - [cached since 59.03s ago] ('cc286a50-f1f8-4c20-93e4-ff8a84842520', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 3, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (290 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 28, 19, 7, 46, 733592), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 28, 19, 7, 46, 750780), datetime.datetime(2025, 4, 28, 19, 7, 46, 750780), 0)
2025-04-28 19:07:46,751 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:07:46,759 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:07:46,759 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 19:07:46,761 - sqlalchemy.engine.Engine - INFO - [cached since 59.03s ago] ('cc286a50-f1f8-4c20-93e4-ff8a84842520',)
2025-04-28 19:07:46,762 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:07:46,762 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 cc286a50-f1f8-4c20-93e4-ff8a84842520 (优先级 1) 添加到队列 0
2025-04-28 19:07:46,763 - services.sync_service - INFO - 正在同步创建任务到天风系统: cc286a50-f1f8-4c20-93e4-ff8a84842520
2025-04-28 19:07:46,763 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"cc286a50-f1f8-4c20-93e4-ff8a84842520","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-28 19:07:46","sceneId":"1912043207186550785","needAmr":1}
2025-04-28 19:07:46,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: cc286a50-f1f8-4c20-93e4-ff8a84842520, 优先级: 1
2025-04-28 19:07:46,802 - services.execution.task_executor - DEBUG - 任务 cc286a50-f1f8-4c20-93e4-ff8a84842520 设置超时时间: 3600秒
2025-04-28 19:07:46,803 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:07:46,804 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 19:07:46,805 - sqlalchemy.engine.Engine - INFO - [cached since 59.07s ago] ('cc286a50-f1f8-4c20-93e4-ff8a84842520',)
2025-04-28 19:07:46,808 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 19:07:46,809 - sqlalchemy.engine.Engine - INFO - [cached since 59.11s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 19:07:46,810 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 19:07:46,810 - sqlalchemy.engine.Engine - INFO - [cached since 58.92s ago] (datetime.datetime(2025, 4, 28, 19, 7, 46, 809531), datetime.datetime(2025, 4, 28, 19, 7, 46, 810539), 'cc286a50-f1f8-4c20-93e4-ff8a84842520')
2025-04-28 19:07:46,811 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:07:46,820 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:07:46,823 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 19:07:46,823 - sqlalchemy.engine.Engine - INFO - [cached since 58.87s ago] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 19, 7, 46, 823966), 'cc286a50-f1f8-4c20-93e4-ff8a84842520')
2025-04-28 19:07:46,825 - services.sync_service - INFO - 成功同步任务到系统任务: cc286a50-f1f8-4c20-93e4-ff8a84842520
2025-04-28 19:07:46,825 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: cc286a50-f1f8-4c20-93e4-ff8a84842520
2025-04-28 19:07:46,825 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: cc286a50-f1f8-4c20-93e4-ff8a84842520
2025-04-28 19:07:46,826 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:07:46,828 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1023秒
2025-04-28 19:07:46,833 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-28 19:07:46,836 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:07:46,838 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 19:07:46,838 - sqlalchemy.engine.Engine - INFO - [cached since 58.81s ago] ('97b0fb87-4db2-41e1-b45a-e75655e6cf1c', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'cc286a50-f1f8-4c20-93e4-ff8a84842520', datetime.datetime(2025, 4, 28, 19, 7, 46, 835611), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 28, 19, 7, 46, 838610), datetime.datetime(2025, 4, 28, 19, 7, 46, 838610), 0)
2025-04-28 19:07:46,840 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:07:46,847 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:07:46,848 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 19:07:46,848 - sqlalchemy.engine.Engine - INFO - [cached since 58.8s ago] ('97b0fb87-4db2-41e1-b45a-e75655e6cf1c',)
2025-04-28 19:07:46,850 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 19:07:46,851 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 19:07:46,853 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 19:07:46,853 - sqlalchemy.engine.Engine - INFO - [cached since 58.8s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 28, 19, 7, 46, 853953), '97b0fb87-4db2-41e1-b45a-e75655e6cf1c')
2025-04-28 19:07:46,856 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:07:46,864 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-28 19:07:46,865 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-28 19:07:46,866 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-28 19:07:46,869 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:07:46,871 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 19:07:46,872 - sqlalchemy.engine.Engine - INFO - [cached since 58.85s ago] ('937471c8-1174-43c7-9bcb-424645bb64af', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"priority": "10", "keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'cc286a50-f1f8-4c20-93e4-ff8a84842520', datetime.datetime(2025, 4, 28, 19, 7, 46, 867946), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 28, 19, 7, 46, 871944), datetime.datetime(2025, 4, 28, 19, 7, 46, 871944), 0)
2025-04-28 19:07:46,875 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:07:46,883 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 937471c8-1174-43c7-9bcb-424645bb64af
2025-04-28 19:07:46,883 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:07:46,884 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 19:07:46,885 - sqlalchemy.engine.Engine - INFO - [cached since 58.84s ago] ('937471c8-1174-43c7-9bcb-424645bb64af',)
2025-04-28 19:07:46,890 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 19:07:46,891 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 19:07:46,893 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 19:07:46,894 - sqlalchemy.engine.Engine - INFO - [cached since 58.84s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 28, 19, 7, 46, 893944), '937471c8-1174-43c7-9bcb-424645bb64af')
2025-04-28 19:07:46,896 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:07:46,904 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-28 19:07:46,907 - services.sync_service - INFO - 正在为任务选择AMR: cc286a50-f1f8-4c20-93e4-ff8a84842520, 站点: TK01
2025-04-28 19:07:46,980 - services.sync_service - INFO - 成功为任务选择AMR: cc286a50-f1f8-4c20-93e4-ff8a84842520, AMR: None
2025-04-28 19:07:46,981 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 
2025-04-28 19:07:46,981 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: []
2025-04-28 19:07:46,981 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 
2025-04-28 19:07:46,981 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 0 个
2025-04-28 19:07:46,981 - services.sync_service - INFO - 正在封口任务: cc286a50-f1f8-4c20-93e4-ff8a84842520
2025-04-28 19:07:47,014 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-28 19:07:47,019 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:07:47,022 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 19:07:47,023 - sqlalchemy.engine.Engine - INFO - [cached since 58.85s ago] ('3d6ce01e-03b0-40f4-9602-66ca6ca9e3f6', 1, '{"success": true, "message": "选择执行机器人成功: ", "code": 200, "result": {"taskBlockId": "1916811571817082881"}, "timestamp": 1745838466018}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'cc286a50-f1f8-4c20-93e4-ff8a84842520', datetime.datetime(2025, 4, 28, 19, 7, 47, 22375), datetime.datetime(2025, 4, 28, 19, 7, 47, 22375), 0)
2025-04-28 19:07:47,025 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:07:47,039 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:07:47,042 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 19:07:47,043 - sqlalchemy.engine.Engine - INFO - [cached since 59s ago] ('937471c8-1174-43c7-9bcb-424645bb64af',)
2025-04-28 19:07:47,051 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 19:07:47,058 - services.execution.block_executor - INFO - 为块 b1 存储输出: ['selectedAgvId']
2025-04-28 19:07:47,065 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 19:07:47,068 - sqlalchemy.engine.Engine - INFO - [generated in 0.00276s] ('{"selectedAgvId": ""}', datetime.datetime(2025, 4, 28, 19, 7, 47, 63912), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '{"blocks": {"b1": {"selectedAgvId": ""}}}', '执行成功', datetime.datetime(2025, 4, 28, 19, 7, 47, 65910), '937471c8-1174-43c7-9bcb-424645bb64af')
2025-04-28 19:07:47,070 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:07:47,086 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:07:47,089 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 19:07:47,090 - sqlalchemy.engine.Engine - INFO - [cached since 58.91s ago] ('80dd5717-78e5-45bf-84a8-bc2cb2067dc7', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {}}]}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'cc286a50-f1f8-4c20-93e4-ff8a84842520', datetime.datetime(2025, 4, 28, 19, 7, 47, 89910), datetime.datetime(2025, 4, 28, 19, 7, 47, 89910), 0)
2025-04-28 19:07:47,091 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:07:47,100 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:07:47,101 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 19:07:47,102 - sqlalchemy.engine.Engine - INFO - [cached since 59.06s ago] ('97b0fb87-4db2-41e1-b45a-e75655e6cf1c',)
2025-04-28 19:07:47,104 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 19:07:47,105 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 19:07:47,109 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 19:07:47,112 - sqlalchemy.engine.Engine - INFO - [cached since 58.91s ago] (datetime.datetime(2025, 4, 28, 19, 7, 47, 108904), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 28, 19, 7, 47, 109461), '97b0fb87-4db2-41e1-b45a-e75655e6cf1c')
2025-04-28 19:07:47,113 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:07:47,121 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:07:47,122 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 19:07:47,122 - sqlalchemy.engine.Engine - INFO - [cached since 58.88s ago] (datetime.datetime(2025, 4, 28, 19, 7, 47, 120765), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 299, 1, datetime.datetime(2025, 4, 28, 19, 7, 47, 122721), 'cc286a50-f1f8-4c20-93e4-ff8a84842520')
2025-04-28 19:07:47,125 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:07:47,131 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: cc286a50-f1f8-4c20-93e4-ff8a84842520, 结果: True
2025-04-28 19:08:44,849 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:08:44,849 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 19:08:44,850 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 8, 44, 848937))
2025-04-28 19:08:44,852 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:08:44,895 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 19:08:44,896 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 19:08:44,896 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 19:08:44,897 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 19:08:44,898 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 19:08:44,900 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 19:08:44,901 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 19:08:44,901 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 19:08:44,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 19:08:44,903 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 19:08:44,903 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 19:08:44,904 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 19:08:44,907 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 19:08:44,907 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 19:08:44,908 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 19:08:44,908 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 19:08:44,909 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 19:08:44,910 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 19:08:44,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 19:08:44,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 19:08:44,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 19:08:44,912 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 19:08:44,914 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 19:08:44,922 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 19:08:59,924 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 19:08:59,925 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 19:08:59,926 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 19:08:59,926 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 19:08:59,927 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 19:08:59,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 19:09:08,179 - app - INFO - 应用程序关闭中...
2025-04-28 19:09:08,180 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 19:09:08,180 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 19:09:08,180 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 19:09:08,180 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 19:09:08,180 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 19:09:08,180 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 19:09:08,182 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 19:09:08,182 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 19:09:08,182 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 19:09:08,182 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 19:09:08,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 19:09:08,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 19:09:08,182 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 19:09:08,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 19:09:08,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 19:09:08,182 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-28 19:09:08,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 19:09:08,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 19:09:08,183 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-28 19:09:08,183 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 19:09:08,183 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 19:09:08,184 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-28 19:09:08,184 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 19:09:08,184 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 19:09:08,184 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-28 19:09:08,184 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 19:09:08,184 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 19:09:08,184 - app - INFO - 增强版任务调度器已停止
2025-04-28 19:09:08,184 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 19:09:08,184 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 19:09:08,184 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 19:09:08,186 - data.session - INFO - 数据库连接已关闭
2025-04-28 19:09:10,165 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 19:09:10,224 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 19:09:10,225 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 19:09:10,915 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 19:09:10,973 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 19:09:10,974 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 19:09:11,039 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 19:09:11,086 - data.session - INFO - 正在初始化数据库...
2025-04-28 19:09:11,109 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 19:09:11,135 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 19:09:11,135 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:09:11,135 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 19:09:11,136 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:09:11,136 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 19:09:11,136 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:09:11,137 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:09:11,137 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 19:09:11,137 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:09:11,139 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 19:09:11,139 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:09:11,140 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 19:09:11,140 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:09:11,141 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 19:09:11,141 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:09:11,142 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 19:09:11,143 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:09:11,144 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 19:09:11,144 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:09:11,145 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 19:09:11,145 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:09:11,146 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 19:09:11,146 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:09:11,147 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 19:09:11,148 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:09:11,148 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 19:09:11,149 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:09:11,150 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 19:09:11,150 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:09:11,151 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:09:11,152 - data.session - INFO - 数据库表初始化完成
2025-04-28 19:09:11,489 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 19:09:11,490 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 19:09:11,490 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 19:09:11,491 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 19:09:11,491 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 19:09:11,491 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 19:09:11,491 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 19:09:11,491 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 19:09:11,491 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 19:09:11,491 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 19:09:11,492 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 19:09:11,492 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 19:09:11,492 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 19:09:11,493 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 19:09:11,493 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 19:09:11,494 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 19:09:11,494 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 19:09:11,494 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 19:09:11,494 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 19:09:11,494 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 19:09:11,505 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 19:09:11,506 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 19:09:11,506 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 19:09:11,507 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 19:09:11,507 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 19:09:11,508 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 19:09:11,508 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 19:09:11,508 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:09:11,517 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 19:09:11,518 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 19:09:11,519 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 19:09:11,519 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:09:11,520 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 19:09:11,520 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 19:09:11,521 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 19:09:11,522 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:09:11,523 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 19:09:11,524 - sqlalchemy.engine.Engine - INFO - [generated in 0.00053s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 19:09:11,536 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:09:11,538 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 19:09:11,538 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 19:09:11,538 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 19:09:11,538 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 19:09:11,538 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 19:09:11,539 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:09:11,540 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 19:09:11,540 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 9, 11, 521096))
2025-04-28 19:09:11,541 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:09:14,087 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-28 19:09:14,091 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:09:14,091 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 19:09:14,092 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 19:09:14,095 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:09:14,096 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:09:14,096 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 19:09:14,096 - sqlalchemy.engine.Engine - INFO - [cached since 0.004205s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 19:09:14,097 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:09:14,097 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-28 19:09:14,097 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-28 19:09:14,097 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-28 19:09:14,099 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:09:14,100 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-28 19:09:14,100 - sqlalchemy.engine.Engine - INFO - [generated in 0.00063s] (None, datetime.datetime(2025, 4, 28, 19, 9, 14, 100300), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-28 19:09:14,101 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:09:14,110 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:09:14,110 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 19:09:14,110 - sqlalchemy.engine.Engine - INFO - [cached since 0.01904s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 19:09:14,112 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 19:09:14,114 - sqlalchemy.engine.Engine - INFO - [generated in 0.00208s] ('344c04ce-28b2-4c93-94d1-aae5fff107ff', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 3, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (290 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 28, 19, 9, 14, 97193), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 28, 19, 9, 14, 112710), datetime.datetime(2025, 4, 28, 19, 9, 14, 112710), 0)
2025-04-28 19:09:14,116 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:09:14,122 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:09:14,123 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 19:09:14,124 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] ('344c04ce-28b2-4c93-94d1-aae5fff107ff',)
2025-04-28 19:09:14,125 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:09:14,126 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 344c04ce-28b2-4c93-94d1-aae5fff107ff (优先级 1) 添加到队列 0
2025-04-28 19:09:14,129 - services.sync_service - INFO - 正在同步创建任务到天风系统: 344c04ce-28b2-4c93-94d1-aae5fff107ff
2025-04-28 19:09:14,129 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"344c04ce-28b2-4c93-94d1-aae5fff107ff","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-28 19:09:14","sceneId":"1912043207186550785","needAmr":1}
2025-04-28 19:09:14,182 - services.sync_service - INFO - 成功同步任务到系统任务: 344c04ce-28b2-4c93-94d1-aae5fff107ff
2025-04-28 19:09:14,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 344c04ce-28b2-4c93-94d1-aae5fff107ff, 优先级: 1
2025-04-28 19:09:14,183 - services.execution.task_executor - DEBUG - 任务 344c04ce-28b2-4c93-94d1-aae5fff107ff 设置超时时间: 3600秒
2025-04-28 19:09:14,183 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 344c04ce-28b2-4c93-94d1-aae5fff107ff
2025-04-28 19:09:14,183 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 344c04ce-28b2-4c93-94d1-aae5fff107ff
2025-04-28 19:09:14,184 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:09:14,184 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-28 19:09:14,184 - sqlalchemy.engine.Engine - INFO - [cached since 0.06119s ago] ('344c04ce-28b2-4c93-94d1-aae5fff107ff',)
2025-04-28 19:09:14,184 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0971秒
2025-04-28 19:09:14,186 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-28 19:09:14,186 - sqlalchemy.engine.Engine - INFO - [cached since 0.0952s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-28 19:09:14,188 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 19:09:14,189 - sqlalchemy.engine.Engine - INFO - [generated in 0.00108s] (datetime.datetime(2025, 4, 28, 19, 9, 14, 187933), datetime.datetime(2025, 4, 28, 19, 9, 14, 188938), '344c04ce-28b2-4c93-94d1-aae5fff107ff')
2025-04-28 19:09:14,193 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:09:14,202 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:09:14,204 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 19:09:14,204 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 19, 9, 14, 204066), '344c04ce-28b2-4c93-94d1-aae5fff107ff')
2025-04-28 19:09:14,205 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:09:14,211 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-28 19:09:14,212 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:09:14,213 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 19:09:14,214 - sqlalchemy.engine.Engine - INFO - [generated in 0.00071s] ('4e1d9925-9d6b-4612-aa0a-2811cdf68853', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '344c04ce-28b2-4c93-94d1-aae5fff107ff', datetime.datetime(2025, 4, 28, 19, 9, 14, 211068), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 28, 19, 9, 14, 213067), datetime.datetime(2025, 4, 28, 19, 9, 14, 213067), 0)
2025-04-28 19:09:14,215 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:09:14,224 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:09:14,228 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 19:09:14,229 - sqlalchemy.engine.Engine - INFO - [generated in 0.00134s] ('4e1d9925-9d6b-4612-aa0a-2811cdf68853',)
2025-04-28 19:09:14,233 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 19:09:14,235 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 19:09:14,236 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 19:09:14,241 - sqlalchemy.engine.Engine - INFO - [generated in 0.00478s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 28, 19, 9, 14, 236430), '4e1d9925-9d6b-4612-aa0a-2811cdf68853')
2025-04-28 19:09:14,243 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:09:14,252 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-28 19:09:14,254 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-28 19:09:14,256 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-28 19:09:14,257 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:09:14,259 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 19:09:14,263 - sqlalchemy.engine.Engine - INFO - [cached since 0.05043s ago] ('3dba61a6-718b-4744-b4a5-8985244b0f87', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"priority": "10", "keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '344c04ce-28b2-4c93-94d1-aae5fff107ff', datetime.datetime(2025, 4, 28, 19, 9, 14, 257424), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 28, 19, 9, 14, 259423), datetime.datetime(2025, 4, 28, 19, 9, 14, 259423), 0)
2025-04-28 19:09:14,265 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:09:14,272 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 3dba61a6-718b-4744-b4a5-8985244b0f87
2025-04-28 19:09:14,272 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:09:14,273 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 19:09:14,274 - sqlalchemy.engine.Engine - INFO - [cached since 0.04677s ago] ('3dba61a6-718b-4744-b4a5-8985244b0f87',)
2025-04-28 19:09:14,275 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 19:09:14,276 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-28 19:09:14,279 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 19:09:14,280 - sqlalchemy.engine.Engine - INFO - [cached since 0.04453s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 28, 19, 9, 14, 279705), '3dba61a6-718b-4744-b4a5-8985244b0f87')
2025-04-28 19:09:14,281 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:09:14,286 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-28 19:09:14,289 - services.sync_service - INFO - 正在为任务选择AMR: 344c04ce-28b2-4c93-94d1-aae5fff107ff, 站点: TK01
2025-04-28 19:09:14,318 - services.sync_service - INFO - 成功为任务选择AMR: 344c04ce-28b2-4c93-94d1-aae5fff107ff, AMR: None
2025-04-28 19:09:14,319 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 
2025-04-28 19:09:14,319 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: []
2025-04-28 19:09:14,319 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 
2025-04-28 19:09:14,319 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 0 个
2025-04-28 19:09:14,319 - services.sync_service - INFO - 正在封口任务: 344c04ce-28b2-4c93-94d1-aae5fff107ff
2025-04-28 19:09:14,335 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-28 19:09:14,336 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:09:14,337 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 19:09:14,337 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('0fcc2179-460a-43c2-93c7-8498c8e3912f', 1, '{"success": true, "message": "选择执行机器人成功: ", "code": 200, "result": {"taskBlockId": "1916811938290200578"}, "timestamp": 1745838553392}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '344c04ce-28b2-4c93-94d1-aae5fff107ff', datetime.datetime(2025, 4, 28, 19, 9, 14, 337726), datetime.datetime(2025, 4, 28, 19, 9, 14, 337726), 0)
2025-04-28 19:09:14,338 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:09:14,347 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:09:14,347 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 19:09:14,347 - sqlalchemy.engine.Engine - INFO - [cached since 0.1201s ago] ('3dba61a6-718b-4744-b4a5-8985244b0f87',)
2025-04-28 19:09:14,348 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-28 19:09:14,348 - services.execution.block_executor - INFO - 为块 b1 存储输出: ['selectedAgvId']
2025-04-28 19:09:14,350 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 19:09:14,350 - sqlalchemy.engine.Engine - INFO - [generated in 0.00080s] ('{"selectedAgvId": ""}', datetime.datetime(2025, 4, 28, 19, 9, 14, 348857), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '{"blocks": {"b1": {"selectedAgvId": ""}}}', '执行成功', datetime.datetime(2025, 4, 28, 19, 9, 14, 350862), '3dba61a6-718b-4744-b4a5-8985244b0f87')
2025-04-28 19:09:14,351 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:09:14,358 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:09:14,359 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-28 19:09:14,359 - sqlalchemy.engine.Engine - INFO - [cached since 0.02269s ago] ('9cd23af1-1742-4cc2-81aa-a1be04d80c4e', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {}}]}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '344c04ce-28b2-4c93-94d1-aae5fff107ff', datetime.datetime(2025, 4, 28, 19, 9, 14, 359869), datetime.datetime(2025, 4, 28, 19, 9, 14, 359869), 0)
2025-04-28 19:09:14,361 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:09:14,367 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:09:14,368 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-28 19:09:14,368 - sqlalchemy.engine.Engine - INFO - [cached since 0.1404s ago] ('4e1d9925-9d6b-4612-aa0a-2811cdf68853',)
2025-04-28 19:09:14,369 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-28 19:09:14,369 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-28 19:09:14,369 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-28 19:09:14,370 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (datetime.datetime(2025, 4, 28, 19, 9, 14, 369523), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 28, 19, 9, 14, 369523), '4e1d9925-9d6b-4612-aa0a-2811cdf68853')
2025-04-28 19:09:14,370 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:09:14,377 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:09:14,378 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-28 19:09:14,378 - sqlalchemy.engine.Engine - INFO - [generated in 0.00021s] (datetime.datetime(2025, 4, 28, 19, 9, 14, 377521), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 175, 1, datetime.datetime(2025, 4, 28, 19, 9, 14, 378525), '344c04ce-28b2-4c93-94d1-aae5fff107ff')
2025-04-28 19:09:14,378 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:09:14,385 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 344c04ce-28b2-4c93-94d1-aae5fff107ff, 结果: True
2025-04-28 19:10:11,516 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 19:10:11,516 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 19:10:11,516 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 19:10:11,517 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 19:10:11,517 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 19:10:11,517 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 19:10:11,517 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 19:10:11,518 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 19:10:11,518 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 19:10:11,518 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 19:10:11,518 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 19:10:11,518 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 19:10:11,518 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 19:10:11,518 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 19:10:11,518 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 19:10:11,519 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 19:10:11,519 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 19:10:11,519 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 19:10:11,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 19:10:11,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 19:10:11,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 19:10:11,519 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 19:10:11,519 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 19:10:11,526 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 19:10:11,547 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:10:11,548 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 19:10:11,548 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 10, 11, 547887))
2025-04-28 19:10:11,549 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:10:11,735 - app - INFO - 应用程序关闭中...
2025-04-28 19:10:11,735 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-28 19:10:11,735 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-28 19:10:11,735 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-28 19:10:11,735 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-28 19:10:11,736 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-28 19:10:11,736 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-28 19:10:11,737 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-28 19:10:11,737 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-28 19:10:11,737 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-28 19:10:11,737 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-28 19:10:11,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 19:10:11,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 19:10:11,737 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 19:10:11,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 19:10:11,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 19:10:11,738 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-28 19:10:11,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 19:10:11,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 19:10:11,739 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-28 19:10:11,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 19:10:11,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 19:10:11,739 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-28 19:10:11,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 19:10:11,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 19:10:11,739 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-28 19:10:11,739 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-28 19:10:11,739 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-28 19:10:11,739 - app - INFO - 增强版任务调度器已停止
2025-04-28 19:10:11,739 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-28 19:10:11,740 - data.session - INFO - 异步数据库连接已关闭
2025-04-28 19:10:11,740 - data.session - INFO - 正在关闭数据库连接...
2025-04-28 19:10:11,740 - data.session - INFO - 数据库连接已关闭
2025-04-28 19:10:12,892 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-28 19:10:12,952 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-28 19:10:12,955 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-28 19:10:13,019 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-28 19:10:13,066 - data.session - INFO - 正在初始化数据库...
2025-04-28 19:10:13,103 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-28 19:10:13,122 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 19:10:13,122 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:10:13,123 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 19:10:13,123 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:10:13,124 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 19:10:13,124 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:10:13,125 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:10:13,125 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-28 19:10:13,125 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:10:13,126 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-28 19:10:13,127 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:10:13,128 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-28 19:10:13,128 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:10:13,129 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-28 19:10:13,129 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:10:13,130 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-28 19:10:13,130 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:10:13,130 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-28 19:10:13,131 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:10:13,131 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-28 19:10:13,132 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:10:13,132 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-28 19:10:13,132 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:10:13,133 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-28 19:10:13,133 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:10:13,134 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-28 19:10:13,134 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:10:13,135 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-28 19:10:13,135 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-28 19:10:13,136 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:10:13,137 - data.session - INFO - 数据库表初始化完成
2025-04-28 19:10:13,481 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-28 19:10:13,483 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-28 19:10:13,485 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-28 19:10:13,487 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-28 19:10:13,488 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-28 19:10:13,491 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-28 19:10:13,492 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-28 19:10:13,492 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-28 19:10:13,492 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-28 19:10:13,493 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-28 19:10:13,493 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 19:10:13,493 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-28 19:10:13,494 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-28 19:10:13,496 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 19:10:13,496 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 19:10:13,500 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 19:10:13,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 19:10:13,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 19:10:13,503 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-28 19:10:13,504 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-28 19:10:13,505 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 19:10:13,506 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-28 19:10:13,508 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 19:10:13,509 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-28 19:10:13,509 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 19:10:13,512 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-28 19:10:13,515 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-28 19:10:13,518 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:10:13,531 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-28 19:10:13,536 - sqlalchemy.engine.Engine - INFO - [generated in 0.00448s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-28 19:10:13,542 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-28 19:10:13,545 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:10:13,552 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-28 19:10:13,555 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-28 19:10:13,555 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-28 19:10:13,558 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:10:13,560 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-28 19:10:13,561 - sqlalchemy.engine.Engine - INFO - [generated in 0.00093s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-28 19:10:13,562 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:10:13,568 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-28 19:10:13,570 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-28 19:10:13,570 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-28 19:10:13,571 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-28 19:10:13,571 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-28 19:10:13,572 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:10:13,573 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 19:10:13,573 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 10, 13, 558768))
2025-04-28 19:10:13,575 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:11:13,557 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 19:11:13,563 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 19:11:13,565 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 19:11:13,567 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 19:11:13,569 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 19:11:13,571 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 19:11:13,572 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 19:11:13,573 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 19:11:13,573 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 19:11:13,573 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 19:11:13,575 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 19:11:13,575 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 19:11:13,579 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:11:13,581 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 19:11:13,587 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 11, 13, 567374))
2025-04-28 19:11:13,589 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 19:11:13,589 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 19:11:13,589 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 19:11:13,590 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 19:11:13,590 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 19:11:13,590 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 19:11:13,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 19:11:13,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 19:11:13,591 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 19:11:13,591 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:11:13,591 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 19:11:13,591 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 19:11:13,592 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 19:11:13,592 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 19:11:13,592 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 19:11:13,592 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 19:11:13,594 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 19:11:13,594 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 19:11:13,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 19:12:13,611 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 19:12:13,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 19:12:13,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 19:12:13,612 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 19:12:13,612 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 19:12:13,612 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 19:12:13,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 19:12:13,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 19:12:13,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 19:12:13,613 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:12:13,613 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 19:12:13,613 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 12, 13, 611511))
2025-04-28 19:12:13,613 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 19:12:13,613 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 19:12:13,613 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 19:12:13,614 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 19:12:13,614 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 19:12:13,614 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 19:12:13,614 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 19:12:13,614 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 19:12:13,614 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 19:12:13,615 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:12:13,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 19:12:13,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 19:12:13,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 19:12:13,615 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 19:12:13,615 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 19:12:13,615 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 19:12:13,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 19:12:13,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 19:12:13,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 19:12:13,616 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 19:12:13,616 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 19:12:13,621 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-28 19:13:13,625 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-28 19:13:13,626 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-28 19:13:13,631 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 28, 18, 13, 13, 624756))
2025-04-28 19:13:13,635 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-28 19:13:13,640 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-28 19:13:13,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-28 19:13:13,643 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-28 19:13:13,645 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-28 19:13:13,646 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-28 19:13:13,647 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-28 19:13:13,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-28 19:13:13,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-28 19:13:13,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-28 19:13:13,651 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-28 19:13:13,653 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-28 19:13:13,653 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-28 19:13:13,655 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-28 19:13:13,655 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-28 19:13:13,655 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-28 19:13:13,656 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-28 19:13:13,657 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-28 19:13:13,657 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-28 19:13:13,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-28 19:13:13,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-28 19:13:13,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-28 19:13:13,658 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-28 19:13:13,658 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-28 19:13:13,658 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-28 19:13:13,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-28 19:13:13,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-28 19:13:13,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-28 19:13:13,659 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-28 19:13:13,660 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-28 19:13:13,666 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:13:42,616 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:13:42,685 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:13:42,687 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:13:43,373 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:13:43,432 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:13:43,433 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:13:43,504 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:13:43,558 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:13:43,587 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:13:43,605 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:13:43,605 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:13:43,608 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:13:43,609 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:13:43,609 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:13:43,609 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:13:43,610 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:13:43,610 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:13:43,611 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:13:43,612 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:13:43,612 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:13:43,613 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:13:43,614 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:13:43,615 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:13:43,616 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:13:43,617 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:13:43,617 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:13:43,618 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:13:43,618 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:13:43,619 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:13:43,619 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:13:43,620 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:13:43,621 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:13:43,622 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:13:43,623 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:13:43,626 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:13:43,626 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:13:43,627 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:13:43,627 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:13:43,628 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:13:43,628 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:13:44,020 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 08:13:44,021 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 08:13:44,021 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 08:13:44,021 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 08:13:44,022 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 08:13:44,022 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 08:13:44,022 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 08:13:44,022 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 08:13:44,022 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 08:13:44,022 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 08:13:44,022 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:13:44,022 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 08:13:44,022 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 08:13:44,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:13:44,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:13:44,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:13:44,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:13:44,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:13:44,024 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 08:13:44,024 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 08:13:44,025 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:13:44,025 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:13:44,025 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:13:44,025 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:13:44,027 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:13:44,027 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:13:44,027 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:13:44,028 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:13:44,038 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 08:13:44,038 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 08:13:44,039 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 08:13:44,039 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:13:44,039 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 08:13:44,040 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 08:13:44,040 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 08:13:44,043 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:13:44,044 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 08:13:44,045 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 08:13:44,045 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:13:44,046 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:13:44,047 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 08:13:44,047 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 08:13:44,047 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 08:13:44,047 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 08:13:44,047 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:13:44,049 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:13:44,050 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 13, 44, 43522))
2025-04-29 08:13:44,051 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:14:10,207 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 08:14:10,212 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:14:10,214 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:14:10,215 - sqlalchemy.engine.Engine - INFO - [generated in 0.00135s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:14:10,216 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:14:10,217 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:14:10,218 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:14:10,218 - sqlalchemy.engine.Engine - INFO - [cached since 0.004757s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:14:10,218 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:14:10,220 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 08:14:10,220 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 08:14:10,220 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 08:14:10,221 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:14:10,223 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 08:14:10,229 - sqlalchemy.engine.Engine - INFO - [generated in 0.00679s] (None, datetime.datetime(2025, 4, 29, 8, 14, 10, 223750), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 08:14:10,231 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:14:10,237 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:14:10,237 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:14:10,238 - sqlalchemy.engine.Engine - INFO - [cached since 0.02558s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:14:10,241 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:14:10,243 - sqlalchemy.engine.Engine - INFO - [generated in 0.00222s] ('dfa1e6d4-cf22-414d-bff8-cd37c513dcfb', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 3, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (290 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 8, 14, 10, 220728), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 8, 14, 10, 241325), datetime.datetime(2025, 4, 29, 8, 14, 10, 241325), 0)
2025-04-29 08:14:10,248 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:14:10,254 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:14:10,255 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:14:10,255 - sqlalchemy.engine.Engine - INFO - [generated in 0.00076s] ('dfa1e6d4-cf22-414d-bff8-cd37c513dcfb',)
2025-04-29 08:14:10,256 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:14:10,259 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 dfa1e6d4-cf22-414d-bff8-cd37c513dcfb (优先级 1) 添加到队列 0
2025-04-29 08:14:10,263 - services.sync_service - INFO - 正在同步创建任务到天风系统: dfa1e6d4-cf22-414d-bff8-cd37c513dcfb
2025-04-29 08:14:10,263 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"dfa1e6d4-cf22-414d-bff8-cd37c513dcfb","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 08:14:10","sceneId":"1912043207186550785","needAmr":1}
2025-04-29 08:14:10,319 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: dfa1e6d4-cf22-414d-bff8-cd37c513dcfb, 优先级: 1
2025-04-29 08:14:10,319 - services.execution.task_executor - DEBUG - 任务 dfa1e6d4-cf22-414d-bff8-cd37c513dcfb 设置超时时间: 3600秒
2025-04-29 08:14:10,320 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:14:10,320 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:14:10,320 - sqlalchemy.engine.Engine - INFO - [cached since 0.06666s ago] ('dfa1e6d4-cf22-414d-bff8-cd37c513dcfb',)
2025-04-29 08:14:10,322 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:14:10,323 - sqlalchemy.engine.Engine - INFO - [cached since 0.109s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:14:10,324 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 08:14:10,327 - sqlalchemy.engine.Engine - INFO - [generated in 0.00270s] (datetime.datetime(2025, 4, 29, 8, 14, 10, 324098), datetime.datetime(2025, 4, 29, 8, 14, 10, 324098), 'dfa1e6d4-cf22-414d-bff8-cd37c513dcfb')
2025-04-29 08:14:10,328 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:14:10,335 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:14:10,337 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 08:14:10,337 - sqlalchemy.engine.Engine - INFO - [generated in 0.00021s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 14, 10, 337305), 'dfa1e6d4-cf22-414d-bff8-cd37c513dcfb')
2025-04-29 08:14:10,338 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:14:10,344 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 08:14:10,345 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:14:10,347 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:14:10,348 - sqlalchemy.engine.Engine - INFO - [generated in 0.00121s] ('f611bdf1-9b24-4fbb-ae71-8f592e30bbfd', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'dfa1e6d4-cf22-414d-bff8-cd37c513dcfb', datetime.datetime(2025, 4, 29, 8, 14, 10, 344857), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 8, 14, 10, 347769), datetime.datetime(2025, 4, 29, 8, 14, 10, 347769), 0)
2025-04-29 08:14:10,348 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:14:10,356 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:14:10,357 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:14:10,360 - sqlalchemy.engine.Engine - INFO - [generated in 0.00299s] ('f611bdf1-9b24-4fbb-ae71-8f592e30bbfd',)
2025-04-29 08:14:10,362 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 08:14:10,363 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 08:14:10,363 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:14:10,364 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 8, 14, 10, 363991), 'f611bdf1-9b24-4fbb-ae71-8f592e30bbfd')
2025-04-29 08:14:10,366 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:14:10,371 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 08:14:10,371 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 08:14:10,372 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-29 08:14:10,372 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:14:10,373 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:14:10,376 - sqlalchemy.engine.Engine - INFO - [cached since 0.02965s ago] ('843f204f-1e83-4943-bdea-deb63bbcf280', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"priority": "10", "keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'dfa1e6d4-cf22-414d-bff8-cd37c513dcfb', datetime.datetime(2025, 4, 29, 8, 14, 10, 372619), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 29, 8, 14, 10, 373661), datetime.datetime(2025, 4, 29, 8, 14, 10, 373661), 0)
2025-04-29 08:14:10,378 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:14:10,383 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 843f204f-1e83-4943-bdea-deb63bbcf280
2025-04-29 08:14:10,384 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:14:10,384 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:14:10,384 - sqlalchemy.engine.Engine - INFO - [cached since 0.02684s ago] ('843f204f-1e83-4943-bdea-deb63bbcf280',)
2025-04-29 08:14:10,385 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 08:14:10,386 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 08:14:10,386 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:14:10,387 - sqlalchemy.engine.Engine - INFO - [cached since 0.02351s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 29, 8, 14, 10, 386735), '843f204f-1e83-4943-bdea-deb63bbcf280')
2025-04-29 08:14:10,388 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:14:10,395 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-29 08:14:10,396 - services.sync_service - INFO - 正在为任务选择AMR: dfa1e6d4-cf22-414d-bff8-cd37c513dcfb, 站点: TK01
2025-04-29 08:14:10,448 - services.sync_service - WARNING - 为任务选择AMR失败: dfa1e6d4-cf22-414d-bff8-cd37c513dcfb此天风任务id不存在
2025-04-29 08:14:10,452 - services.sync_service - INFO - 正在封口任务: dfa1e6d4-cf22-414d-bff8-cd37c513dcfb
2025-04-29 08:14:10,476 - services.sync_service - INFO - 成功同步任务到系统任务: dfa1e6d4-cf22-414d-bff8-cd37c513dcfb
2025-04-29 08:14:10,478 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: dfa1e6d4-cf22-414d-bff8-cd37c513dcfb
2025-04-29 08:14:10,479 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: dfa1e6d4-cf22-414d-bff8-cd37c513dcfb
2025-04-29 08:14:10,481 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.2742秒
2025-04-29 08:14:10,519 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-29 08:14:10,522 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:14:10,524 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:14:10,526 - sqlalchemy.engine.Engine - INFO - [generated in 0.00168s] ('1b0d2331-ed54-420c-aaf0-8dda4f056768', 3, '{"success": false, "message": "选择执行机器人失败: dfa1e6d4-cf22-414d-bff8-cd37c513dcfb此天风任务id不存在", "code": 400, "result": null, "timestamp": 1745885650500}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'dfa1e6d4-cf22-414d-bff8-cd37c513dcfb', datetime.datetime(2025, 4, 29, 8, 14, 10, 524452), datetime.datetime(2025, 4, 29, 8, 14, 10, 524452), 0)
2025-04-29 08:14:10,527 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:14:10,550 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人失败: dfa1e6d4-cf22-414d-bff8-cd37c513dcfb此天风任务id不存在
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:14:10,551 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:14:10,552 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:14:10,552 - sqlalchemy.engine.Engine - INFO - [cached since 0.1949s ago] ('843f204f-1e83-4943-bdea-deb63bbcf280',)
2025-04-29 08:14:10,554 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 08:14:10,554 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 08:14:10,556 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:14:10,556 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (datetime.datetime(2025, 4, 29, 8, 14, 10, 555054), '选择执行机器人失败: dfa1e6d4-cf22-414d-bff8-cd37c513dcfb此天风任务id不存在', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人失败: dfa1e6d4-cf22-414d-bff8-cd37c513dcfb此天风任务id不存在', datetime.datetime(2025, 4, 29, 8, 14, 10, 556054), '843f204f-1e83-4943-bdea-deb63bbcf280')
2025-04-29 08:14:10,561 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:14:10,570 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:14:10,571 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:14:10,572 - sqlalchemy.engine.Engine - INFO - [cached since 0.0471s ago] ('9d8377b5-416e-4dee-b21c-73b3a4959add', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人失败: dfa1e6d4-cf22-414d-bff8-cd37c513dcfb此天风任务id不存在", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'dfa1e6d4-cf22-414d-bff8-cd37c513dcfb', datetime.datetime(2025, 4, 29, 8, 14, 10, 571059), datetime.datetime(2025, 4, 29, 8, 14, 10, 571059), 0)
2025-04-29 08:14:10,573 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:14:10,582 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:14:10,582 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:14:10,582 - sqlalchemy.engine.Engine - INFO - [cached since 0.2249s ago] ('f611bdf1-9b24-4fbb-ae71-8f592e30bbfd',)
2025-04-29 08:14:10,583 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 08:14:10,583 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 08:14:10,584 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:14:10,584 - sqlalchemy.engine.Engine - INFO - [cached since 0.0288s ago] (datetime.datetime(2025, 4, 29, 8, 14, 10, 584566), '子块 1 执行失败: 选择执行机器人失败: dfa1e6d4-cf22-414d-bff8-cd37c513dcfb此天风任务id不存在', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人失败: dfa1e6d4-cf22-414d-bff8-cd37c513dcfb此天风任务id不存在', datetime.datetime(2025, 4, 29, 8, 14, 10, 584566), 'f611bdf1-9b24-4fbb-ae71-8f592e30bbfd')
2025-04-29 08:14:10,584 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:14:10,591 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:14:10,591 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 08:14:10,592 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (datetime.datetime(2025, 4, 29, 8, 14, 10, 590048), '子块 1 执行失败: 选择执行机器人失败: dfa1e6d4-cf22-414d-bff8-cd37c513dcfb此天风任务id不存在', <TaskStatus.FAILED: 2000>, 255, 1, datetime.datetime(2025, 4, 29, 8, 14, 10, 591055), 'dfa1e6d4-cf22-414d-bff8-cd37c513dcfb')
2025-04-29 08:14:10,593 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:14:10,598 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 完成任务: dfa1e6d4-cf22-414d-bff8-cd37c513dcfb, 结果: False
2025-04-29 08:14:44,050 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:14:44,051 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:14:44,051 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 14, 44, 50873))
2025-04-29 08:14:44,053 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:14:44,082 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:14:44,083 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:14:44,084 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:14:44,084 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:14:44,084 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:14:44,084 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:14:44,085 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:14:44,085 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:14:44,087 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:14:44,089 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:14:44,090 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:14:44,090 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:14:44,092 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:14:44,092 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:14:44,092 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:14:44,092 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:14:44,094 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:14:44,095 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:14:44,095 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:14:44,096 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:14:44,096 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:14:44,096 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:14:44,096 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:14:44,102 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:15:14,111 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:15:14,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:15:14,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:15:14,113 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:15:14,113 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:15:14,113 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:15:14,228 - app - INFO - 应用程序关闭中...
2025-04-29 08:15:14,228 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 08:15:14,229 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 08:15:14,229 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 08:15:14,229 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 08:15:14,229 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 08:15:14,230 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 08:15:14,230 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 08:15:14,230 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 08:15:14,230 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 08:15:14,230 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 08:15:14,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:15:14,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:15:14,230 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:15:14,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:15:14,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:15:14,230 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 08:15:14,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:15:14,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:15:14,230 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 08:15:14,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:15:14,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:15:14,230 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 08:15:14,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:15:14,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:15:14,230 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 08:15:14,230 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 08:15:14,230 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 08:15:14,230 - app - INFO - 增强版任务调度器已停止
2025-04-29 08:15:14,230 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 08:15:14,230 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 08:15:14,230 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 08:15:14,230 - data.session - INFO - 数据库连接已关闭
2025-04-29 08:15:17,463 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:15:17,530 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:15:17,530 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:15:18,194 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:15:18,241 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:15:18,257 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:15:18,310 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:15:18,352 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:15:18,389 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:15:18,416 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:15:18,416 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:18,416 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:15:18,416 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:18,416 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:15:18,416 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:18,416 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:18,416 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:15:18,416 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:18,416 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:15:18,416 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:18,416 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:15:18,416 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:18,416 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:15:18,416 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:18,416 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:15:18,416 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:18,416 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:15:18,416 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:18,416 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:15:18,416 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:18,416 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:15:18,416 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:18,416 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:15:18,416 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:18,432 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:15:18,432 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:18,432 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:15:18,432 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:18,432 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:18,432 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:15:18,781 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 08:15:18,781 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 08:15:18,781 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 08:15:18,781 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 08:15:18,793 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 08:15:18,793 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 08:15:18,796 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 08:15:18,796 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 08:15:18,796 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 08:15:18,796 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 08:15:18,796 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:15:18,796 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 08:15:18,812 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 08:15:18,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:15:18,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:15:18,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:15:18,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:15:18,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:15:18,812 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 08:15:18,812 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 08:15:18,828 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:15:18,828 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:15:18,828 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:15:18,828 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:15:18,828 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:15:18,828 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:15:18,828 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:15:18,828 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:18,844 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 08:15:18,844 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 08:15:18,844 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 08:15:18,844 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:18,844 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 08:15:18,844 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 08:15:18,844 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 08:15:18,844 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:18,844 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 08:15:18,844 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 08:15:18,860 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:18,860 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 08:15:18,860 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 08:15:18,860 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 08:15:18,860 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 08:15:18,860 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:15:18,860 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:18,860 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:15:18,860 - sqlalchemy.engine.Engine - INFO - [generated in 0.00063s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 15, 18, 844217))
2025-04-29 08:15:18,860 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:20,896 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 08:15:20,906 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:20,908 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:15:20,910 - sqlalchemy.engine.Engine - INFO - [generated in 0.00158s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:15:20,911 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:20,911 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:20,911 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:15:20,911 - sqlalchemy.engine.Engine - INFO - [cached since 0.007804s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:15:20,911 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:20,911 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 08:15:20,911 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 08:15:20,911 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 08:15:20,911 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:20,911 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 08:15:20,911 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (None, datetime.datetime(2025, 4, 29, 8, 15, 20, 911406), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 08:15:20,911 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:20,925 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:20,925 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:15:20,925 - sqlalchemy.engine.Engine - INFO - [cached since 0.02027s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:15:20,925 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:15:20,925 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] ('72ac305c-044e-4787-988a-7aa5cc112cd7', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 3, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (290 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 8, 15, 20, 911406), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 8, 15, 20, 925385), datetime.datetime(2025, 4, 29, 8, 15, 20, 925385), 0)
2025-04-29 08:15:20,925 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:20,940 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:20,945 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:15:20,945 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] ('72ac305c-044e-4787-988a-7aa5cc112cd7',)
2025-04-29 08:15:20,945 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:20,945 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 72ac305c-044e-4787-988a-7aa5cc112cd7 (优先级 1) 添加到队列 0
2025-04-29 08:15:20,945 - services.sync_service - INFO - 正在同步创建任务到天风系统: 72ac305c-044e-4787-988a-7aa5cc112cd7
2025-04-29 08:15:20,945 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"72ac305c-044e-4787-988a-7aa5cc112cd7","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 08:15:20","sceneId":"1912043207186550785","needAmr":1}
2025-04-29 08:15:20,996 - services.sync_service - INFO - 成功同步任务到系统任务: 72ac305c-044e-4787-988a-7aa5cc112cd7
2025-04-29 08:15:20,996 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 72ac305c-044e-4787-988a-7aa5cc112cd7
2025-04-29 08:15:20,996 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 72ac305c-044e-4787-988a-7aa5cc112cd7
2025-04-29 08:15:21,007 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1111秒
2025-04-29 08:15:21,044 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 72ac305c-044e-4787-988a-7aa5cc112cd7, 优先级: 1
2025-04-29 08:15:21,045 - services.execution.task_executor - DEBUG - 任务 72ac305c-044e-4787-988a-7aa5cc112cd7 设置超时时间: 3600秒
2025-04-29 08:15:21,045 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:21,045 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:15:21,046 - sqlalchemy.engine.Engine - INFO - [cached since 0.1022s ago] ('72ac305c-044e-4787-988a-7aa5cc112cd7',)
2025-04-29 08:15:21,046 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:15:21,046 - sqlalchemy.engine.Engine - INFO - [cached since 0.14s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:15:21,046 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 08:15:21,046 - sqlalchemy.engine.Engine - INFO - [generated in 0.00075s] (datetime.datetime(2025, 4, 29, 8, 15, 21, 46590), datetime.datetime(2025, 4, 29, 8, 15, 21, 46590), '72ac305c-044e-4787-988a-7aa5cc112cd7')
2025-04-29 08:15:21,046 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:21,059 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:21,061 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 08:15:21,061 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 15, 21, 61288), '72ac305c-044e-4787-988a-7aa5cc112cd7')
2025-04-29 08:15:21,062 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:21,067 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 08:15:21,068 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:21,069 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:15:21,069 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('79a5d289-1678-4d0f-bd53-c30de3e00691', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '72ac305c-044e-4787-988a-7aa5cc112cd7', datetime.datetime(2025, 4, 29, 8, 15, 21, 68292), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 8, 15, 21, 69293), datetime.datetime(2025, 4, 29, 8, 15, 21, 69293), 0)
2025-04-29 08:15:21,070 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:21,077 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:21,079 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:15:21,080 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('79a5d289-1678-4d0f-bd53-c30de3e00691',)
2025-04-29 08:15:21,081 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 08:15:21,081 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 08:15:21,081 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:15:21,082 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 8, 15, 21, 81064), '79a5d289-1678-4d0f-bd53-c30de3e00691')
2025-04-29 08:15:21,082 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:21,083 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 08:15:21,083 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 08:15:21,083 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-29 08:15:21,083 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:21,083 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:15:21,083 - sqlalchemy.engine.Engine - INFO - [cached since 0.02045s ago] ('a466e997-3022-45ba-81fd-6144098e5ca8', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"priority": "10", "keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '72ac305c-044e-4787-988a-7aa5cc112cd7', datetime.datetime(2025, 4, 29, 8, 15, 21, 83068), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 29, 8, 15, 21, 83068), datetime.datetime(2025, 4, 29, 8, 15, 21, 83068), 0)
2025-04-29 08:15:21,090 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:21,096 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: a466e997-3022-45ba-81fd-6144098e5ca8
2025-04-29 08:15:21,096 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:21,096 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:15:21,096 - sqlalchemy.engine.Engine - INFO - [cached since 0.01773s ago] ('a466e997-3022-45ba-81fd-6144098e5ca8',)
2025-04-29 08:15:21,097 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 08:15:21,097 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 08:15:21,097 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:15:21,097 - sqlalchemy.engine.Engine - INFO - [cached since 0.017s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 29, 8, 15, 21, 97713), 'a466e997-3022-45ba-81fd-6144098e5ca8')
2025-04-29 08:15:21,099 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:21,105 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-29 08:15:21,106 - services.sync_service - INFO - 正在为任务选择AMR: 72ac305c-044e-4787-988a-7aa5cc112cd7, 站点: TK01
2025-04-29 08:15:21,148 - services.sync_service - INFO - 成功为任务选择AMR: 72ac305c-044e-4787-988a-7aa5cc112cd7, AMR: None
2025-04-29 08:15:21,148 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 
2025-04-29 08:15:21,149 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: []
2025-04-29 08:15:21,149 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 
2025-04-29 08:15:21,149 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 0 个
2025-04-29 08:15:21,149 - services.sync_service - INFO - 正在封口任务: 72ac305c-044e-4787-988a-7aa5cc112cd7
2025-04-29 08:15:21,199 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-29 08:15:21,200 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:21,201 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:15:21,201 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] ('dc261fa1-c828-441e-a009-1b8d8929ab48', 1, '{"success": true, "message": "选择执行机器人成功: ", "code": 200, "result": {"taskBlockId": "1917009774365630466"}, "timestamp": 1745885721190}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '72ac305c-044e-4787-988a-7aa5cc112cd7', datetime.datetime(2025, 4, 29, 8, 15, 21, 201483), datetime.datetime(2025, 4, 29, 8, 15, 21, 201483), 0)
2025-04-29 08:15:21,202 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:21,214 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:21,215 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:15:21,222 - sqlalchemy.engine.Engine - INFO - [cached since 0.1433s ago] ('a466e997-3022-45ba-81fd-6144098e5ca8',)
2025-04-29 08:15:21,225 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 08:15:21,226 - services.execution.block_executor - INFO - 为块 b1 存储输出: ['selectedAgvId']
2025-04-29 08:15:21,229 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:15:21,230 - sqlalchemy.engine.Engine - INFO - [generated in 0.00060s] ('{"selectedAgvId": ""}', datetime.datetime(2025, 4, 29, 8, 15, 21, 228719), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '{"blocks": {"b1": {"selectedAgvId": ""}}}', '执行成功', datetime.datetime(2025, 4, 29, 8, 15, 21, 229806), 'a466e997-3022-45ba-81fd-6144098e5ca8')
2025-04-29 08:15:21,231 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:21,243 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:21,246 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:15:21,250 - sqlalchemy.engine.Engine - INFO - [cached since 0.04934s ago] ('f176fd5a-85e5-4421-8cfb-5176c841457c', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {}}]}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '72ac305c-044e-4787-988a-7aa5cc112cd7', datetime.datetime(2025, 4, 29, 8, 15, 21, 246560), datetime.datetime(2025, 4, 29, 8, 15, 21, 246560), 0)
2025-04-29 08:15:21,254 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:21,259 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:21,259 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:15:21,259 - sqlalchemy.engine.Engine - INFO - [cached since 0.1901s ago] ('79a5d289-1678-4d0f-bd53-c30de3e00691',)
2025-04-29 08:15:21,259 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 08:15:21,259 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 08:15:21,275 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:15:21,277 - sqlalchemy.engine.Engine - INFO - [generated in 0.00183s] (datetime.datetime(2025, 4, 29, 8, 15, 21, 275213), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 8, 15, 21, 275213), '79a5d289-1678-4d0f-bd53-c30de3e00691')
2025-04-29 08:15:21,281 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:21,291 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:21,291 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 08:15:21,293 - sqlalchemy.engine.Engine - INFO - [generated in 0.00179s] (datetime.datetime(2025, 4, 29, 8, 15, 21, 289440), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 229, 1, datetime.datetime(2025, 4, 29, 8, 15, 21, 291756), '72ac305c-044e-4787-988a-7aa5cc112cd7')
2025-04-29 08:15:21,299 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:21,308 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 72ac305c-044e-4787-988a-7aa5cc112cd7, 结果: True
2025-04-29 08:15:39,832 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 08:15:39,832 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:39,832 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:15:39,832 - sqlalchemy.engine.Engine - INFO - [cached since 18.93s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:15:39,832 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:39,832 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:39,832 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:15:39,832 - sqlalchemy.engine.Engine - INFO - [cached since 18.94s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:15:39,832 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:39,832 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 08:15:39,832 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 08:15:39,832 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 08:15:39,848 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:39,848 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 08:15:39,848 - sqlalchemy.engine.Engine - INFO - [cached since 18.93s ago] (None, datetime.datetime(2025, 4, 29, 8, 15, 39, 848618), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 08:15:39,848 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:39,866 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:39,866 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:15:39,868 - sqlalchemy.engine.Engine - INFO - [cached since 18.96s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:15:39,868 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:15:39,868 - sqlalchemy.engine.Engine - INFO - [cached since 18.94s ago] ('e465bd54-4149-44b0-aa7c-f19dc0642966', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 3, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (290 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 8, 15, 39, 832409), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 8, 15, 39, 868449), datetime.datetime(2025, 4, 29, 8, 15, 39, 868449), 0)
2025-04-29 08:15:39,868 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:39,881 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:39,881 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:15:39,881 - sqlalchemy.engine.Engine - INFO - [cached since 18.95s ago] ('e465bd54-4149-44b0-aa7c-f19dc0642966',)
2025-04-29 08:15:39,898 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:39,898 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 e465bd54-4149-44b0-aa7c-f19dc0642966 (优先级 1) 添加到队列 0
2025-04-29 08:15:39,898 - services.sync_service - INFO - 正在同步创建任务到天风系统: e465bd54-4149-44b0-aa7c-f19dc0642966
2025-04-29 08:15:39,898 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"e465bd54-4149-44b0-aa7c-f19dc0642966","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 08:15:39","sceneId":"1912043207186550785","needAmr":1}
2025-04-29 08:15:39,932 - services.sync_service - INFO - 成功同步任务到系统任务: e465bd54-4149-44b0-aa7c-f19dc0642966
2025-04-29 08:15:39,932 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: e465bd54-4149-44b0-aa7c-f19dc0642966, 优先级: 1
2025-04-29 08:15:39,932 - services.execution.task_executor - DEBUG - 任务 e465bd54-4149-44b0-aa7c-f19dc0642966 设置超时时间: 3600秒
2025-04-29 08:15:39,932 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: e465bd54-4149-44b0-aa7c-f19dc0642966
2025-04-29 08:15:39,932 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: e465bd54-4149-44b0-aa7c-f19dc0642966
2025-04-29 08:15:39,932 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0998秒
2025-04-29 08:15:39,948 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:39,948 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:15:39,948 - sqlalchemy.engine.Engine - INFO - [cached since 19.01s ago] ('e465bd54-4149-44b0-aa7c-f19dc0642966',)
2025-04-29 08:15:39,948 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:15:39,948 - sqlalchemy.engine.Engine - INFO - [cached since 19.04s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:15:39,948 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 08:15:39,948 - sqlalchemy.engine.Engine - INFO - [cached since 18.91s ago] (datetime.datetime(2025, 4, 29, 8, 15, 39, 948102), datetime.datetime(2025, 4, 29, 8, 15, 39, 948102), 'e465bd54-4149-44b0-aa7c-f19dc0642966')
2025-04-29 08:15:39,948 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:39,968 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:39,968 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 08:15:39,968 - sqlalchemy.engine.Engine - INFO - [cached since 18.91s ago] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 15, 39, 968463), 'e465bd54-4149-44b0-aa7c-f19dc0642966')
2025-04-29 08:15:39,968 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:39,980 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 08:15:39,982 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:39,984 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:15:39,984 - sqlalchemy.engine.Engine - INFO - [cached since 18.92s ago] ('aa97f22f-89c3-4a7f-955d-87597e7bb681', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'e465bd54-4149-44b0-aa7c-f19dc0642966', datetime.datetime(2025, 4, 29, 8, 15, 39, 980543), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 8, 15, 39, 984339), datetime.datetime(2025, 4, 29, 8, 15, 39, 984339), 0)
2025-04-29 08:15:39,984 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:39,998 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:39,999 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:15:39,999 - sqlalchemy.engine.Engine - INFO - [cached since 18.92s ago] ('aa97f22f-89c3-4a7f-955d-87597e7bb681',)
2025-04-29 08:15:40,000 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 08:15:40,000 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 08:15:40,001 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:15:40,001 - sqlalchemy.engine.Engine - INFO - [cached since 18.92s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 8, 15, 40, 1426), 'aa97f22f-89c3-4a7f-955d-87597e7bb681')
2025-04-29 08:15:40,002 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:40,014 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 08:15:40,014 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 08:15:40,015 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-29 08:15:40,016 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:40,016 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:15:40,017 - sqlalchemy.engine.Engine - INFO - [cached since 18.95s ago] ('f563e717-d8f6-47c4-b40b-9ff8fbf6e793', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"priority": "10", "keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'e465bd54-4149-44b0-aa7c-f19dc0642966', datetime.datetime(2025, 4, 29, 8, 15, 40, 15957), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 29, 8, 15, 40, 16956), datetime.datetime(2025, 4, 29, 8, 15, 40, 16956), 0)
2025-04-29 08:15:40,019 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:40,026 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: f563e717-d8f6-47c4-b40b-9ff8fbf6e793
2025-04-29 08:15:40,027 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:40,027 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:15:40,028 - sqlalchemy.engine.Engine - INFO - [cached since 18.95s ago] ('f563e717-d8f6-47c4-b40b-9ff8fbf6e793',)
2025-04-29 08:15:40,029 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 08:15:40,030 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 08:15:40,030 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:15:40,030 - sqlalchemy.engine.Engine - INFO - [cached since 18.95s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 29, 8, 15, 40, 30956), 'f563e717-d8f6-47c4-b40b-9ff8fbf6e793')
2025-04-29 08:15:40,032 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:40,039 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-29 08:15:40,040 - services.sync_service - INFO - 正在为任务选择AMR: e465bd54-4149-44b0-aa7c-f19dc0642966, 站点: TK01
2025-04-29 08:15:40,083 - services.sync_service - INFO - 成功为任务选择AMR: e465bd54-4149-44b0-aa7c-f19dc0642966, AMR: None
2025-04-29 08:15:40,083 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 
2025-04-29 08:15:40,084 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: []
2025-04-29 08:15:40,084 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 
2025-04-29 08:15:40,084 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 0 个
2025-04-29 08:15:40,084 - services.sync_service - INFO - 正在封口任务: e465bd54-4149-44b0-aa7c-f19dc0642966
2025-04-29 08:15:40,139 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-29 08:15:40,140 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:40,143 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:15:40,143 - sqlalchemy.engine.Engine - INFO - [cached since 18.94s ago] ('207a0b72-7a19-466c-a3f4-619242cf1fba', 1, '{"success": true, "message": "选择执行机器人成功: ", "code": 200, "result": {"taskBlockId": "1917009853839302657"}, "timestamp": 1745885740136}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'e465bd54-4149-44b0-aa7c-f19dc0642966', datetime.datetime(2025, 4, 29, 8, 15, 40, 143124), datetime.datetime(2025, 4, 29, 8, 15, 40, 143124), 0)
2025-04-29 08:15:40,144 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:40,152 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:40,152 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:15:40,152 - sqlalchemy.engine.Engine - INFO - [cached since 19.08s ago] ('f563e717-d8f6-47c4-b40b-9ff8fbf6e793',)
2025-04-29 08:15:40,152 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 08:15:40,152 - services.execution.block_executor - INFO - 为块 b1 存储输出: ['selectedAgvId']
2025-04-29 08:15:40,152 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:15:40,152 - sqlalchemy.engine.Engine - INFO - [cached since 18.93s ago] ('{"selectedAgvId": ""}', datetime.datetime(2025, 4, 29, 8, 15, 40, 152068), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '{"blocks": {"b1": {"selectedAgvId": ""}}}', '执行成功', datetime.datetime(2025, 4, 29, 8, 15, 40, 152068), 'f563e717-d8f6-47c4-b40b-9ff8fbf6e793')
2025-04-29 08:15:40,152 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:40,175 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:40,175 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:15:40,176 - sqlalchemy.engine.Engine - INFO - [cached since 18.97s ago] ('911299e5-0791-4e5d-9868-dfe255f900b6', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {}}]}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'e465bd54-4149-44b0-aa7c-f19dc0642966', datetime.datetime(2025, 4, 29, 8, 15, 40, 175236), datetime.datetime(2025, 4, 29, 8, 15, 40, 175236), 0)
2025-04-29 08:15:40,177 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:40,190 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:40,191 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:15:40,191 - sqlalchemy.engine.Engine - INFO - [cached since 19.11s ago] ('aa97f22f-89c3-4a7f-955d-87597e7bb681',)
2025-04-29 08:15:40,192 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 08:15:40,193 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 08:15:40,193 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:15:40,193 - sqlalchemy.engine.Engine - INFO - [cached since 18.92s ago] (datetime.datetime(2025, 4, 29, 8, 15, 40, 193146), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 8, 15, 40, 193146), 'aa97f22f-89c3-4a7f-955d-87597e7bb681')
2025-04-29 08:15:40,194 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:40,200 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:40,200 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 08:15:40,200 - sqlalchemy.engine.Engine - INFO - [cached since 18.92s ago] (datetime.datetime(2025, 4, 29, 8, 15, 40, 200917), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 232, 1, datetime.datetime(2025, 4, 29, 8, 15, 40, 200917), 'e465bd54-4149-44b0-aa7c-f19dc0642966')
2025-04-29 08:15:40,200 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:40,224 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 完成任务: e465bd54-4149-44b0-aa7c-f19dc0642966, 结果: True
2025-04-29 08:15:43,440 - app - INFO - 应用程序关闭中...
2025-04-29 08:15:43,440 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 08:15:43,440 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 08:15:43,440 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 08:15:43,440 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 08:15:43,440 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 08:15:43,440 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 08:15:43,440 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 08:15:43,440 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 08:15:43,440 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 08:15:43,440 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 08:15:43,440 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:15:43,440 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:15:43,440 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:15:43,440 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:15:43,440 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:15:43,440 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 08:15:43,440 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:15:43,440 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:15:43,440 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 08:15:43,440 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:15:43,440 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:15:43,440 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 08:15:43,440 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:15:43,440 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:15:43,440 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 08:15:43,440 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 08:15:43,448 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 08:15:43,448 - app - INFO - 增强版任务调度器已停止
2025-04-29 08:15:43,448 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 08:15:43,448 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 08:15:43,448 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 08:15:43,448 - data.session - INFO - 数据库连接已关闭
2025-04-29 08:15:45,557 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:15:45,620 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:15:45,620 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:15:46,334 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:15:46,399 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:15:46,415 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:15:46,478 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:15:46,525 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:15:46,550 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:15:46,573 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:15:46,573 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:46,573 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:15:46,573 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:46,573 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:15:46,573 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:46,573 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:46,573 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:15:46,573 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:46,573 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:15:46,573 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:46,583 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:15:46,583 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:46,583 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:15:46,583 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:46,583 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:15:46,583 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:46,583 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:15:46,583 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:46,583 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:15:46,589 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:46,589 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:15:46,589 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:46,589 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:15:46,589 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:46,589 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:15:46,589 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:46,589 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:15:46,589 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:15:46,589 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:46,589 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:15:46,970 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 08:15:46,970 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 08:15:46,970 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 08:15:46,970 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 08:15:46,970 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 08:15:46,970 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 08:15:46,970 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 08:15:46,970 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 08:15:46,970 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 08:15:46,970 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 08:15:46,970 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:15:46,970 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 08:15:46,970 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 08:15:46,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:15:46,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:15:46,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:15:46,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:15:46,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:15:46,970 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 08:15:46,970 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 08:15:46,983 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:15:46,983 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:15:46,983 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:15:46,983 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:15:46,983 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:15:46,986 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:15:46,986 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:15:46,986 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:46,986 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 08:15:46,986 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 08:15:47,002 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 08:15:47,002 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:47,002 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 08:15:47,002 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 08:15:47,002 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 08:15:47,002 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:47,002 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 08:15:47,002 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 08:15:47,002 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:47,002 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:15:47,002 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 08:15:47,002 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 08:15:47,002 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 08:15:47,002 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 08:15:47,002 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:47,002 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:15:47,002 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 15, 47, 2131))
2025-04-29 08:15:47,002 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:48,988 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 08:15:48,993 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:48,995 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:15:48,996 - sqlalchemy.engine.Engine - INFO - [generated in 0.00296s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:15:48,996 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:48,996 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:48,996 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:15:48,996 - sqlalchemy.engine.Engine - INFO - [cached since 0.009027s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:15:48,996 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:48,996 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 08:15:48,996 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 08:15:48,996 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 08:15:48,996 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:48,996 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 08:15:49,011 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (None, datetime.datetime(2025, 4, 29, 8, 15, 48, 996709), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 08:15:49,013 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:49,020 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:49,023 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:15:49,025 - sqlalchemy.engine.Engine - INFO - [cached since 0.0297s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:15:49,028 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:15:49,028 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] ('6dddc02d-292e-4731-ab82-9ff73b6327fc', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 3, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (290 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 8, 15, 48, 996709), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 8, 15, 49, 28044), datetime.datetime(2025, 4, 29, 8, 15, 49, 28044), 0)
2025-04-29 08:15:49,030 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:49,036 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:49,037 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:15:49,038 - sqlalchemy.engine.Engine - INFO - [generated in 0.00104s] ('6dddc02d-292e-4731-ab82-9ff73b6327fc',)
2025-04-29 08:15:49,039 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:49,040 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 6dddc02d-292e-4731-ab82-9ff73b6327fc (优先级 1) 添加到队列 0
2025-04-29 08:15:49,044 - services.sync_service - INFO - 正在同步创建任务到天风系统: 6dddc02d-292e-4731-ab82-9ff73b6327fc
2025-04-29 08:15:49,044 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"6dddc02d-292e-4731-ab82-9ff73b6327fc","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 08:15:49","sceneId":"1912043207186550785","needAmr":1}
2025-04-29 08:15:49,077 - services.sync_service - INFO - 成功同步任务到系统任务: 6dddc02d-292e-4731-ab82-9ff73b6327fc
2025-04-29 08:15:49,077 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 6dddc02d-292e-4731-ab82-9ff73b6327fc
2025-04-29 08:15:49,077 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 6dddc02d-292e-4731-ab82-9ff73b6327fc
2025-04-29 08:15:49,077 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0891秒
2025-04-29 08:15:49,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 6dddc02d-292e-4731-ab82-9ff73b6327fc, 优先级: 1
2025-04-29 08:15:49,111 - services.execution.task_executor - DEBUG - 任务 6dddc02d-292e-4731-ab82-9ff73b6327fc 设置超时时间: 3600秒
2025-04-29 08:15:49,111 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:49,112 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:15:49,112 - sqlalchemy.engine.Engine - INFO - [cached since 0.07529s ago] ('6dddc02d-292e-4731-ab82-9ff73b6327fc',)
2025-04-29 08:15:49,114 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:15:49,114 - sqlalchemy.engine.Engine - INFO - [cached since 0.119s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:15:49,116 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 08:15:49,116 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] (datetime.datetime(2025, 4, 29, 8, 15, 49, 115236), datetime.datetime(2025, 4, 29, 8, 15, 49, 116285), '6dddc02d-292e-4731-ab82-9ff73b6327fc')
2025-04-29 08:15:49,117 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:49,120 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:49,120 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 08:15:49,120 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 15, 49, 120335), '6dddc02d-292e-4731-ab82-9ff73b6327fc')
2025-04-29 08:15:49,120 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:49,133 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 08:15:49,135 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:49,136 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:15:49,136 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] ('51a79ca5-e50a-41a5-ad7e-278bfb49cd8a', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6dddc02d-292e-4731-ab82-9ff73b6327fc', datetime.datetime(2025, 4, 29, 8, 15, 49, 134657), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 8, 15, 49, 136938), datetime.datetime(2025, 4, 29, 8, 15, 49, 136938), 0)
2025-04-29 08:15:49,137 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:49,143 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:49,145 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:15:49,145 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] ('51a79ca5-e50a-41a5-ad7e-278bfb49cd8a',)
2025-04-29 08:15:49,146 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 08:15:49,147 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 08:15:49,148 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:15:49,149 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 8, 15, 49, 148014), '51a79ca5-e50a-41a5-ad7e-278bfb49cd8a')
2025-04-29 08:15:49,149 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:49,154 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 08:15:49,154 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 08:15:49,155 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-29 08:15:49,155 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:49,155 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:15:49,155 - sqlalchemy.engine.Engine - INFO - [cached since 0.01933s ago] ('18d9dbaf-f802-4b2a-abba-134f28110783', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"priority": "10", "keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6dddc02d-292e-4731-ab82-9ff73b6327fc', datetime.datetime(2025, 4, 29, 8, 15, 49, 155366), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 29, 8, 15, 49, 155366), datetime.datetime(2025, 4, 29, 8, 15, 49, 155366), 0)
2025-04-29 08:15:49,156 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:49,162 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 18d9dbaf-f802-4b2a-abba-134f28110783
2025-04-29 08:15:49,162 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:49,163 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:15:49,163 - sqlalchemy.engine.Engine - INFO - [cached since 0.01869s ago] ('18d9dbaf-f802-4b2a-abba-134f28110783',)
2025-04-29 08:15:49,163 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 08:15:49,163 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 08:15:49,163 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:15:49,163 - sqlalchemy.engine.Engine - INFO - [cached since 0.01711s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 29, 8, 15, 49, 163833), '18d9dbaf-f802-4b2a-abba-134f28110783')
2025-04-29 08:15:49,163 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:49,163 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-29 08:15:49,163 - services.sync_service - INFO - 正在为任务选择AMR: 6dddc02d-292e-4731-ab82-9ff73b6327fc, 站点: TK01
2025-04-29 08:15:49,272 - services.sync_service - INFO - 成功为任务选择AMR: 6dddc02d-292e-4731-ab82-9ff73b6327fc, AMR: None
2025-04-29 08:15:49,274 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 
2025-04-29 08:15:49,274 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: []
2025-04-29 08:15:49,274 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 
2025-04-29 08:15:49,281 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 0 个
2025-04-29 08:15:49,282 - services.sync_service - INFO - 正在封口任务: 6dddc02d-292e-4731-ab82-9ff73b6327fc
2025-04-29 08:15:49,313 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-29 08:15:49,313 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:49,327 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:15:49,328 - sqlalchemy.engine.Engine - INFO - [generated in 0.00092s] ('a758b5df-68a1-4c1c-a26f-c1359b3899d0', 1, '{"success": true, "message": "选择执行机器人成功: ", "code": 200, "result": {"taskBlockId": "1917009892158464001"}, "timestamp": 1745885749272}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6dddc02d-292e-4731-ab82-9ff73b6327fc', datetime.datetime(2025, 4, 29, 8, 15, 49, 327192), datetime.datetime(2025, 4, 29, 8, 15, 49, 327192), 0)
2025-04-29 08:15:49,331 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:49,339 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:49,342 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:15:49,343 - sqlalchemy.engine.Engine - INFO - [cached since 0.1987s ago] ('18d9dbaf-f802-4b2a-abba-134f28110783',)
2025-04-29 08:15:49,344 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 08:15:49,344 - services.execution.block_executor - INFO - 为块 b1 存储输出: ['selectedAgvId']
2025-04-29 08:15:49,344 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:15:49,344 - sqlalchemy.engine.Engine - INFO - [generated in 0.00080s] ('{"selectedAgvId": ""}', datetime.datetime(2025, 4, 29, 8, 15, 49, 344197), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '{"blocks": {"b1": {"selectedAgvId": ""}}}', '执行成功', datetime.datetime(2025, 4, 29, 8, 15, 49, 344197), '18d9dbaf-f802-4b2a-abba-134f28110783')
2025-04-29 08:15:49,344 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:49,360 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:49,360 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:15:49,360 - sqlalchemy.engine.Engine - INFO - [cached since 0.04632s ago] ('c50697ef-8e4e-4a62-8b94-541b5821e548', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {}}]}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6dddc02d-292e-4731-ab82-9ff73b6327fc', datetime.datetime(2025, 4, 29, 8, 15, 49, 360035), datetime.datetime(2025, 4, 29, 8, 15, 49, 360035), 0)
2025-04-29 08:15:49,376 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:49,376 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:49,376 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:15:49,376 - sqlalchemy.engine.Engine - INFO - [cached since 0.2436s ago] ('51a79ca5-e50a-41a5-ad7e-278bfb49cd8a',)
2025-04-29 08:15:49,376 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 08:15:49,392 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 08:15:49,392 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:15:49,393 - sqlalchemy.engine.Engine - INFO - [generated in 0.00210s] (datetime.datetime(2025, 4, 29, 8, 15, 49, 392285), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 8, 15, 49, 392285), '51a79ca5-e50a-41a5-ad7e-278bfb49cd8a')
2025-04-29 08:15:49,393 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:49,404 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:15:49,408 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 08:15:49,410 - sqlalchemy.engine.Engine - INFO - [generated in 0.00242s] (datetime.datetime(2025, 4, 29, 8, 15, 49, 403063), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 282, 1, datetime.datetime(2025, 4, 29, 8, 15, 49, 408280), '6dddc02d-292e-4731-ab82-9ff73b6327fc')
2025-04-29 08:15:49,411 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:15:49,421 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 6dddc02d-292e-4731-ab82-9ff73b6327fc, 结果: True
2025-04-29 08:16:46,985 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:16:46,985 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:16:46,985 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:16:46,985 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:16:46,985 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:16:46,985 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:16:46,985 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:16:46,985 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:16:46,985 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:16:46,985 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:16:46,985 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:16:46,985 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:16:46,985 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:16:46,985 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:16:46,985 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:16:46,985 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:16:46,985 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:16:46,985 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:16:47,001 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:16:47,001 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:16:47,001 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:16:47,001 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:16:47,001 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:16:47,006 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:16:47,006 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:16:47,006 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:16:47,006 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 16, 47, 6675))
2025-04-29 08:16:47,006 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:17:02,006 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:17:02,006 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:17:02,006 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:17:02,006 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:17:02,006 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:17:02,006 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:17:47,008 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:17:47,008 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:17:47,008 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 17, 47, 8771))
2025-04-29 08:17:47,013 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:17:47,040 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:17:47,040 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:17:47,040 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:17:47,040 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:17:47,040 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:17:47,040 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:17:47,040 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:17:47,040 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:17:47,040 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:17:47,040 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:17:47,040 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:17:47,040 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:17:47,040 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:17:47,040 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:17:47,040 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:17:47,040 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:17:47,040 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:17:47,040 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:17:47,040 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:17:47,040 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:17:47,040 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:17:47,040 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:17:47,040 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:17:47,040 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:18:02,047 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:18:02,047 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:18:02,047 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:18:02,047 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:18:02,047 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:18:02,047 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:18:47,010 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:18:47,010 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:18:47,010 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 18, 47, 10854))
2025-04-29 08:18:47,010 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:18:47,057 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:18:47,058 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:18:47,058 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:18:47,058 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:18:47,058 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:18:47,058 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:18:47,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:18:47,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:18:47,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:18:47,067 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:18:47,067 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:18:47,067 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:18:47,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:18:47,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:18:47,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:18:47,067 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:18:47,067 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:18:47,067 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:18:47,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:18:47,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:18:47,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:18:47,074 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:18:47,074 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:18:47,079 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:19:02,085 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:19:02,086 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:19:02,086 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:19:02,087 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:19:02,088 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:19:02,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:19:47,010 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:19:47,010 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:19:47,010 - sqlalchemy.engine.Engine - INFO - [cached since 240s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 19, 47, 10693))
2025-04-29 08:19:47,010 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:19:47,111 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:19:47,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:19:47,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:19:47,112 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:19:47,112 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:19:47,112 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:19:47,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:19:47,113 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:19:47,113 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:19:47,113 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:19:47,113 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:19:47,113 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:19:47,113 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:19:47,113 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:19:47,113 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:19:47,113 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:19:47,115 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:19:47,115 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:19:47,115 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:19:47,115 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:19:47,115 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:19:47,115 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:19:47,115 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:19:47,118 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:20:02,120 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:20:02,122 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:20:02,124 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:20:02,124 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:20:02,124 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:20:02,124 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:20:47,012 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:20:47,014 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:20:47,015 - sqlalchemy.engine.Engine - INFO - [cached since 300s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 20, 47, 12671))
2025-04-29 08:20:47,015 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:21:02,109 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:21:02,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:21:02,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:21:02,109 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:21:02,109 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:21:02,109 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:21:02,114 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:21:02,114 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:21:02,116 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:21:02,116 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:21:02,116 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:21:02,116 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:21:02,116 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:21:02,116 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:21:02,116 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:21:02,116 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:21:02,116 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:21:02,116 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:21:02,116 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:21:02,116 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:21:02,116 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:21:02,116 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:21:02,116 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:21:02,129 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:21:17,136 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:21:17,136 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:21:17,136 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:21:17,136 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:21:17,136 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:21:17,136 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:21:47,022 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:21:47,022 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:21:47,022 - sqlalchemy.engine.Engine - INFO - [cached since 360s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 21, 47, 22045))
2025-04-29 08:21:47,022 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:22:02,142 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:22:02,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:22:02,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:22:02,142 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:22:02,142 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:22:02,142 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:22:02,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:22:02,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:22:02,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:22:02,142 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:22:02,142 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:22:02,142 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:22:02,158 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:22:02,158 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:22:02,158 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:22:02,158 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:22:02,158 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:22:02,158 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:22:02,158 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:22:02,158 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:22:02,158 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:22:02,171 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:22:02,171 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:22:02,180 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:22:17,189 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:22:17,191 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:22:17,191 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:22:17,196 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:22:17,197 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:22:17,197 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:22:47,023 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:22:47,023 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:22:47,023 - sqlalchemy.engine.Engine - INFO - [cached since 420s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 22, 47, 22832))
2025-04-29 08:22:47,028 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:23:02,217 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:23:02,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:23:02,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:23:02,217 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:23:02,217 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:23:02,217 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:23:02,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:23:02,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:23:02,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:23:02,217 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:23:02,217 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:23:02,217 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:23:02,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:23:02,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:23:02,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:23:02,217 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:23:02,217 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:23:02,217 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:23:02,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:23:02,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:23:02,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:23:02,217 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:23:02,217 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:23:02,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:23:17,210 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:23:17,211 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:23:17,211 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:23:17,211 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:23:17,211 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:23:17,211 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:23:47,029 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:23:47,029 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:23:47,031 - sqlalchemy.engine.Engine - INFO - [cached since 480s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 23, 47, 29598))
2025-04-29 08:23:47,032 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:24:17,217 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:24:17,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:24:17,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:24:17,217 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:24:17,217 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:24:17,217 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:24:17,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:24:17,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:24:17,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:24:17,233 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:24:17,234 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:24:17,234 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:24:17,234 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:24:17,234 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:24:17,234 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:24:17,234 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:24:17,234 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:24:17,234 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:24:17,234 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:24:17,234 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:24:17,234 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:24:17,234 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:24:17,234 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:24:17,234 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:24:17,234 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:24:17,234 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:24:17,248 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:24:17,249 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:24:17,249 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:24:17,249 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:24:17,398 - app - INFO - 应用程序关闭中...
2025-04-29 08:24:17,398 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 08:24:17,400 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 08:24:17,400 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 08:24:17,400 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 08:24:17,400 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 08:24:17,404 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 08:24:17,404 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 08:24:17,404 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 08:24:17,404 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 08:24:17,404 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 08:24:17,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:24:17,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:24:17,404 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:24:17,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:24:17,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:24:17,404 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-29 08:24:17,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:24:17,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:24:17,404 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-29 08:24:17,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:24:17,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:24:17,404 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-29 08:24:17,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:24:17,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:24:17,404 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-29 08:24:17,404 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 08:24:17,404 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 08:24:17,404 - app - INFO - 增强版任务调度器已停止
2025-04-29 08:24:17,404 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 08:24:17,414 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 08:24:17,414 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 08:24:17,414 - data.session - INFO - 数据库连接已关闭
2025-04-29 08:24:18,606 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:24:18,664 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:24:18,664 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:24:18,731 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:24:18,780 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:24:18,805 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:24:18,816 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:24:18,816 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:24:18,816 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:24:18,816 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:24:18,816 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:24:18,816 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:24:18,816 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:24:18,816 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:24:18,816 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:24:18,816 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:24:18,816 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:24:18,816 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:24:18,816 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:24:18,816 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:24:18,816 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:24:18,816 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:24:18,816 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:24:18,816 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:24:18,816 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:24:18,816 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:24:18,816 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:24:18,830 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:24:18,830 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:24:18,830 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:24:18,830 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:24:18,830 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:24:18,830 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:24:18,830 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:24:18,830 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:24:18,830 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:24:18,830 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:24:19,187 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 08:24:19,187 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 08:24:19,187 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 08:24:19,187 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 08:24:19,187 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 08:24:19,187 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 08:24:19,187 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 08:24:19,187 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 08:24:19,187 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 08:24:19,187 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 08:24:19,187 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:24:19,187 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 08:24:19,187 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 08:24:19,187 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:24:19,187 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:24:19,187 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:24:19,187 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:24:19,187 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:24:19,187 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 08:24:19,187 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 08:24:19,187 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:24:19,196 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:24:19,197 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:24:19,197 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:24:19,197 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:24:19,197 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:24:19,197 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:24:19,197 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:24:19,207 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 08:24:19,207 - sqlalchemy.engine.Engine - INFO - [generated in 0.00211s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 08:24:19,207 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 08:24:19,207 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:24:19,207 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 08:24:19,207 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 08:24:19,213 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 08:24:19,213 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:24:19,214 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 08:24:19,214 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 08:24:19,230 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:24:19,231 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:24:19,231 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 08:24:19,232 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 08:24:19,232 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 08:24:19,233 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 08:24:19,234 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:24:19,235 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:24:19,236 - sqlalchemy.engine.Engine - INFO - [generated in 0.00069s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 24, 19, 213093))
2025-04-29 08:24:19,236 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:25:19,201 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:25:19,202 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:25:19,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:25:19,204 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:25:19,204 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:25:19,204 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:25:19,204 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:25:19,205 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:25:19,205 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:25:19,206 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:25:19,206 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:25:19,206 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:25:19,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:25:19,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:25:19,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:25:19,206 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:25:19,206 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:25:19,206 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:25:19,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:25:19,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:25:19,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:25:19,209 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:25:19,209 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:25:19,209 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:25:19,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:25:19,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:25:19,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:25:19,209 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:25:19,209 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:25:19,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:25:19,242 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:25:19,242 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:25:19,242 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 25, 19, 242577))
2025-04-29 08:25:19,242 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:25:19,353 - app - INFO - 应用程序关闭中...
2025-04-29 08:25:19,353 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 08:25:19,353 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 08:25:19,353 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 08:25:19,354 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 08:25:19,354 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 08:25:19,354 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 08:25:19,354 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 08:25:19,354 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 08:25:19,355 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 08:25:19,355 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 08:25:19,355 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:25:19,355 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:25:19,356 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:25:19,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:25:19,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:25:19,356 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 08:25:19,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:25:19,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:25:19,356 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 08:25:19,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:25:19,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:25:19,359 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 08:25:19,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:25:19,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:25:19,359 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 08:25:19,359 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 08:25:19,359 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 08:25:19,359 - app - INFO - 增强版任务调度器已停止
2025-04-29 08:25:19,359 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 08:25:19,359 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 08:25:19,359 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 08:25:19,359 - data.session - INFO - 数据库连接已关闭
2025-04-29 08:25:20,512 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:25:20,567 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:25:20,569 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:25:20,633 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:25:20,668 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:25:20,713 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:25:20,729 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:25:20,732 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:20,733 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:25:20,735 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:20,736 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:25:20,737 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:20,737 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:25:20,737 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:25:20,738 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:20,739 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:25:20,741 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:20,743 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:25:20,744 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:20,748 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:25:20,750 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:20,753 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:25:20,753 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:20,755 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:25:20,761 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:20,763 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:25:20,763 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:20,767 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:25:20,767 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:20,769 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:25:20,771 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:20,771 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:25:20,773 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:20,773 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:25:20,775 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:20,775 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:25:20,775 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:25:21,117 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 08:25:21,117 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 08:25:21,117 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 08:25:21,133 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 08:25:21,133 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 08:25:21,133 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 08:25:21,133 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 08:25:21,133 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 08:25:21,133 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 08:25:21,133 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 08:25:21,133 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:25:21,135 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 08:25:21,135 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 08:25:21,137 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:25:21,137 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:25:21,137 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:25:21,137 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:25:21,137 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:25:21,137 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 08:25:21,137 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 08:25:21,139 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:25:21,139 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:25:21,139 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:25:21,139 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:25:21,139 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:25:21,139 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:25:21,139 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:25:21,139 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:25:21,150 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 08:25:21,150 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 08:25:21,150 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 08:25:21,150 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:25:21,150 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 08:25:21,150 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 08:25:21,150 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 08:25:21,150 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:25:21,150 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 08:25:21,161 - sqlalchemy.engine.Engine - INFO - [generated in 0.00349s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 08:25:21,161 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:25:21,161 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 08:25:21,161 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 08:25:21,165 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 08:25:21,165 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 08:25:21,165 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:25:21,165 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:25:21,165 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:25:21,167 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 25, 21, 150164))
2025-04-29 08:25:21,168 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:25:45,038 - app - INFO - 应用程序关闭中...
2025-04-29 08:25:45,038 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 08:25:45,039 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 08:25:45,039 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 08:25:45,039 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 08:25:45,039 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 08:25:45,039 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 08:25:45,039 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 08:25:45,039 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 08:25:45,039 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 08:25:45,040 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 08:25:45,040 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:25:45,040 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:25:45,042 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:25:45,042 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:25:45,042 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:25:45,042 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 08:25:45,042 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:25:45,042 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:25:45,042 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 08:25:45,042 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:25:45,042 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:25:45,042 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 08:25:45,044 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:25:45,044 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:25:45,044 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 08:25:45,044 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 08:25:45,044 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 08:25:45,044 - app - INFO - 增强版任务调度器已停止
2025-04-29 08:25:45,044 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 08:25:45,045 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 08:25:45,045 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 08:25:45,045 - data.session - INFO - 数据库连接已关闭
2025-04-29 08:25:46,168 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:25:46,234 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:25:46,236 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:25:46,298 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:25:46,358 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:25:46,391 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:25:46,396 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:25:46,397 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:46,398 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:25:46,398 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:46,398 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:25:46,398 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:46,404 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:25:46,404 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:25:46,406 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:46,408 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:25:46,409 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:46,412 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:25:46,414 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:46,417 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:25:46,418 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:46,421 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:25:46,422 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:46,425 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:25:46,427 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:46,429 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:25:46,430 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:46,433 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:25:46,437 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:46,438 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:25:46,441 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:46,443 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:25:46,444 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:46,445 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:25:46,446 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:25:46,448 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:25:46,449 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:26:11,094 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:26:11,165 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:26:11,166 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:26:11,243 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:26:11,293 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:26:11,300 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:26:11,326 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:26:11,326 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:26:11,326 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:26:11,326 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:26:11,326 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:26:11,326 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:26:11,326 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:26:11,326 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:26:11,326 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:26:11,326 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:26:11,326 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:26:11,326 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:26:11,326 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:26:11,326 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:26:11,326 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:26:11,326 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:26:11,342 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:26:11,342 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:26:11,342 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:26:11,342 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:26:11,342 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:26:11,342 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:26:11,346 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:26:11,346 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:26:11,347 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:26:11,347 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:26:11,348 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:26:11,348 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:26:11,349 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:26:11,349 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:26:11,349 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:26:11,718 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 08:26:11,718 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 08:26:11,718 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 08:26:11,719 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 08:26:11,719 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 08:26:11,719 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 08:26:11,719 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 08:26:11,719 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 08:26:11,719 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 08:26:11,720 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 08:26:11,720 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:26:11,721 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 08:26:11,721 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 08:26:11,724 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:26:11,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:26:11,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:26:11,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:26:11,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:26:11,725 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 08:26:11,725 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 08:26:11,726 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:26:11,728 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:26:11,728 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:26:11,729 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:26:11,729 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:26:11,730 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:26:11,730 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:26:11,730 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:26:11,739 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 08:26:11,739 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 08:26:11,741 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 08:26:11,741 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:26:11,742 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 08:26:11,746 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 08:26:11,747 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 08:26:11,748 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:26:11,750 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 08:26:11,751 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 08:26:11,752 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:26:11,752 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 08:26:11,753 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 08:26:11,754 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 08:26:11,754 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 08:26:11,754 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:26:11,754 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:26:11,755 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:26:11,756 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 26, 11, 748731))
2025-04-29 08:26:11,760 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:27:11,729 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:27:11,729 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:27:11,729 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:27:11,729 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:27:11,729 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:27:11,729 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:27:11,729 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:27:11,729 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:27:11,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:27:11,735 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:27:11,735 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:27:11,735 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:27:11,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:27:11,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:27:11,736 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:27:11,736 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:27:11,736 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:27:11,736 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:27:11,736 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:27:11,736 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:27:11,736 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:27:11,736 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:27:11,736 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:27:11,736 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:27:11,736 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:27:11,736 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:27:11,736 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:27:11,736 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:27:11,736 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:27:11,736 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:27:11,761 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:27:11,761 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:27:11,763 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 27, 11, 761591))
2025-04-29 08:27:11,763 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:27:11,963 - app - INFO - 应用程序关闭中...
2025-04-29 08:27:11,963 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 08:27:11,963 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 08:27:11,963 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 08:27:11,963 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 08:27:11,963 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 08:27:11,963 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 08:27:11,963 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 08:27:11,963 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 08:27:11,963 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 08:27:11,963 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 08:27:11,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:27:11,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:27:11,963 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:27:11,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:27:11,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:27:11,963 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 08:27:11,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:27:11,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:27:11,963 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 08:27:11,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:27:11,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:27:11,963 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 08:27:11,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:27:11,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:27:11,963 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 08:27:11,963 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 08:27:11,971 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 08:27:11,971 - app - INFO - 增强版任务调度器已停止
2025-04-29 08:27:11,971 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 08:27:11,971 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 08:27:11,971 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 08:27:11,971 - data.session - INFO - 数据库连接已关闭
2025-04-29 08:27:13,062 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:27:13,125 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:27:13,125 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:27:13,190 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:27:13,222 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:27:13,253 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:27:13,269 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:27:13,269 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:27:13,269 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:27:13,269 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:27:13,269 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:27:13,269 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:27:13,269 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:27:13,269 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:27:13,269 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:27:13,269 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:27:13,269 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:27:13,269 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:27:13,269 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:27:13,269 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:27:13,269 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:27:13,269 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:27:13,269 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:27:13,269 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:27:13,269 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:27:13,269 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:27:13,269 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:27:13,269 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:27:13,269 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:27:13,269 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:27:13,269 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:27:13,285 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:27:13,285 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:27:13,285 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:27:13,285 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:27:13,285 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:27:13,285 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:27:13,630 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 08:27:13,631 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 08:27:13,632 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 08:27:13,633 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 08:27:13,633 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 08:27:13,633 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 08:27:13,633 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 08:27:13,634 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 08:27:13,636 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 08:27:13,636 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 08:27:13,637 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:27:13,637 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 08:27:13,638 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 08:27:13,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:27:13,640 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:27:13,640 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:27:13,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:27:13,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:27:13,641 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 08:27:13,641 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 08:27:13,662 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:27:13,662 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:27:13,662 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:27:13,662 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:27:13,662 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:27:13,662 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:27:13,662 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:27:13,662 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:27:13,662 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 08:27:13,662 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 08:27:13,678 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 08:27:13,678 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:27:13,678 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 08:27:13,678 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 08:27:13,678 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 08:27:13,678 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:27:13,678 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 08:27:13,678 - sqlalchemy.engine.Engine - INFO - [generated in 0.00142s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 08:27:13,678 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:27:13,678 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 08:27:13,678 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 08:27:13,678 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 08:27:13,692 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 08:27:13,692 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:27:13,694 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:27:13,694 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:27:13,694 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 27, 13, 678291))
2025-04-29 08:27:13,694 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:28:13,650 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:28:13,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:28:13,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:28:13,650 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:28:13,650 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:28:13,650 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:28:13,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:28:13,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:28:13,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:28:13,653 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:28:13,653 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:28:13,653 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:28:13,653 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:28:13,653 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:28:13,653 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:28:13,653 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:28:13,653 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:28:13,653 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:28:13,653 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:28:13,653 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:28:13,653 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:28:13,653 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:28:13,653 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:28:13,653 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:28:13,653 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:28:13,653 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:28:13,653 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:28:13,653 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:28:13,653 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:28:13,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:28:13,698 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:28:13,698 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:28:13,698 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 28, 13, 698346))
2025-04-29 08:28:13,698 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:28:13,799 - app - INFO - 应用程序关闭中...
2025-04-29 08:28:13,799 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 08:28:13,801 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 08:28:13,801 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 08:28:13,801 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 08:28:13,801 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 08:28:13,804 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 08:28:13,804 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 08:28:13,804 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 08:28:13,804 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 08:28:13,804 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 08:28:13,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:28:13,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:28:13,804 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:28:13,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:28:13,806 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:28:13,806 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 08:28:13,806 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:28:13,806 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:28:13,806 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 08:28:13,806 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:28:13,806 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:28:13,806 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 08:28:13,806 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:28:13,806 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:28:13,806 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 08:28:13,806 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 08:28:13,806 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 08:28:13,806 - app - INFO - 增强版任务调度器已停止
2025-04-29 08:28:13,806 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 08:28:13,807 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 08:28:13,807 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 08:28:13,807 - data.session - INFO - 数据库连接已关闭
2025-04-29 08:28:14,910 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:28:14,970 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:28:14,974 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:28:15,030 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:28:15,079 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:28:15,113 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:28:15,139 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:28:15,139 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:28:15,139 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:28:15,139 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:28:15,139 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:28:15,139 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:28:15,139 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:28:15,139 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:28:15,139 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:28:15,139 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:28:15,139 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:28:15,149 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:28:15,149 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:28:15,152 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:28:15,152 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:28:15,152 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:28:15,154 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:28:15,156 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:28:15,156 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:28:15,157 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:28:15,158 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:28:15,158 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:28:15,158 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:28:15,158 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:28:15,158 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:28:15,162 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:28:15,162 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:28:15,162 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:28:15,162 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:28:15,162 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:28:15,165 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:28:15,570 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 08:28:15,570 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 08:28:15,570 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 08:28:15,571 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 08:28:15,571 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 08:28:15,571 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 08:28:15,571 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 08:28:15,571 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 08:28:15,572 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 08:28:15,572 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 08:28:15,572 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:28:15,572 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 08:28:15,572 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 08:28:15,573 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:28:15,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:28:15,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:28:15,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:28:15,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:28:15,574 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 08:28:15,574 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 08:28:15,575 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:28:15,576 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:28:15,576 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:28:15,578 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:28:15,578 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:28:15,578 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:28:15,578 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:28:15,580 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:28:15,592 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 08:28:15,592 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 08:28:15,593 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 08:28:15,593 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:28:15,594 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 08:28:15,594 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 08:28:15,594 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 08:28:15,595 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:28:15,596 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 08:28:15,597 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 08:28:15,598 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:28:15,599 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:28:15,599 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 08:28:15,599 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 08:28:15,599 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 08:28:15,600 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 08:28:15,601 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:28:15,602 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:28:15,603 - sqlalchemy.engine.Engine - INFO - [generated in 0.00176s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 28, 15, 595820))
2025-04-29 08:28:15,604 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:29:15,604 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:29:15,606 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:29:15,606 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 29, 15, 604066))
2025-04-29 08:29:15,608 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:29:15,774 - app - INFO - 应用程序关闭中...
2025-04-29 08:29:15,774 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 08:29:15,774 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 08:29:15,774 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 08:29:15,774 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 08:29:15,774 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 08:29:15,774 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 08:29:15,774 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 08:29:15,774 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 08:29:15,774 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 08:29:15,774 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 08:29:15,774 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:29:15,774 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:29:15,774 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:29:15,774 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:29:15,774 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:29:15,774 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 08:29:15,774 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:29:15,774 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:29:15,774 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 08:29:15,774 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:29:15,774 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:29:15,774 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 08:29:15,774 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:29:15,774 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:29:15,774 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 08:29:15,774 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 08:29:15,774 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 08:29:15,774 - app - INFO - 增强版任务调度器已停止
2025-04-29 08:29:15,774 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 08:29:15,774 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 08:29:15,774 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 08:29:15,774 - data.session - INFO - 数据库连接已关闭
2025-04-29 08:29:16,846 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:29:16,901 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:29:16,901 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:29:16,949 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:29:17,009 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:29:17,036 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:29:17,053 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:29:17,053 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:29:17,053 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:29:17,053 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:29:17,053 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:29:17,053 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:29:17,053 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:29:17,053 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:29:17,053 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:29:17,053 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:29:17,053 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:29:17,053 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:29:17,053 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:29:17,069 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:29:17,071 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:29:17,071 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:29:17,071 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:29:17,071 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:29:17,071 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:29:17,071 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:29:17,071 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:29:17,071 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:29:17,071 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:29:17,071 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:29:17,071 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:29:17,071 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:29:17,071 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:29:17,071 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:29:17,071 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:29:17,085 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:29:17,087 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:29:17,422 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 08:29:17,422 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 08:29:17,422 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 08:29:17,422 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 08:29:17,422 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 08:29:17,422 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 08:29:17,422 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 08:29:17,422 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 08:29:17,422 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 08:29:17,422 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 08:29:17,422 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:29:17,422 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 08:29:17,422 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 08:29:17,434 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:29:17,434 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:29:17,434 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:29:17,434 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:29:17,434 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:29:17,434 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 08:29:17,434 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 08:29:17,434 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:29:17,434 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:29:17,434 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:29:17,434 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:29:17,434 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:29:17,434 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:29:17,434 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:29:17,434 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:29:17,450 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 08:29:17,450 - sqlalchemy.engine.Engine - INFO - [generated in 0.00153s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 08:29:17,450 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 08:29:17,450 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:29:17,450 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 08:29:17,450 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 08:29:17,450 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 08:29:17,450 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:29:17,465 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 08:29:17,465 - sqlalchemy.engine.Engine - INFO - [generated in 0.00064s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 08:29:17,465 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:29:17,465 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:29:17,465 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 08:29:17,465 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 08:29:17,465 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 08:29:17,465 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 08:29:17,465 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:29:17,465 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:29:17,465 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 29, 17, 450151))
2025-04-29 08:29:17,465 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:30:17,441 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:30:17,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:30:17,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:30:17,442 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:30:17,442 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:30:17,442 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:30:17,446 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:30:17,446 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:30:17,446 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:30:17,446 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:30:17,446 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:30:17,446 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:30:17,449 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:30:17,449 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:30:17,449 - sqlalchemy.engine.Engine - INFO - [cached since 59.98s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 30, 17, 442961))
2025-04-29 08:30:17,449 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:30:17,449 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:30:17,453 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:30:17,453 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:30:17,456 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:30:17,463 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:30:17,464 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:30:17,464 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:30:17,464 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:30:17,464 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:30:17,468 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:30:17,468 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:30:17,469 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:30:17,470 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:30:17,474 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:30:17,474 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:30:17,476 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:30:17,476 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:30:17,477 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:31:17,481 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:31:17,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:31:17,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:31:17,481 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:31:17,481 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:31:17,481 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:31:17,481 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:31:17,481 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:31:17,481 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 31, 17, 481092))
2025-04-29 08:31:17,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:31:17,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:31:17,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:31:17,481 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:31:17,481 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:31:17,481 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:31:17,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:31:17,494 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:31:17,494 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:31:17,496 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:31:17,496 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:31:17,496 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:31:17,496 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:31:17,496 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:31:17,496 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:31:17,496 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:31:17,496 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:31:17,496 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:31:17,496 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:31:17,496 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:31:17,496 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:31:17,496 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:31:17,496 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:31:17,496 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:31:17,512 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:32:17,508 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:32:17,508 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:32:17,508 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 32, 17, 508272))
2025-04-29 08:32:17,515 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:32:17,540 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:32:17,542 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:32:17,542 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:32:17,543 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:32:17,543 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:32:17,543 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:32:17,543 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:32:17,543 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:32:17,543 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:32:17,543 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:32:17,543 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:32:17,543 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:32:17,543 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:32:17,543 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:32:17,543 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:32:17,544 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:32:17,544 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:32:17,544 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:32:17,545 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:32:17,545 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:32:17,545 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:32:17,545 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:32:17,546 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:32:17,546 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:32:17,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:32:17,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:32:17,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:32:17,546 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:32:17,546 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:32:17,553 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:32:17,700 - app - INFO - 应用程序关闭中...
2025-04-29 08:32:17,700 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 08:32:17,700 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 08:32:17,700 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 08:32:17,700 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 08:32:17,700 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 08:32:17,700 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 08:32:17,700 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 08:32:17,703 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 08:32:17,704 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 08:32:17,705 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 08:32:17,705 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:32:17,706 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:32:17,708 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:32:17,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:32:17,709 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:32:17,710 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 08:32:17,714 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:32:17,714 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:32:17,715 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 08:32:17,715 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:32:17,720 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:32:17,720 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 08:32:17,720 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:32:17,720 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:32:17,720 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 08:32:17,720 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 08:32:17,720 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 08:32:17,720 - app - INFO - 增强版任务调度器已停止
2025-04-29 08:32:17,720 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 08:32:17,720 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 08:32:17,725 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 08:32:17,726 - data.session - INFO - 数据库连接已关闭
2025-04-29 08:32:18,830 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:32:18,880 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:32:18,880 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:32:18,945 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:32:18,994 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:32:19,044 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:32:19,066 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:32:19,068 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:32:19,068 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:32:19,068 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:32:19,070 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:32:19,070 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:32:19,072 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:32:19,072 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:32:19,072 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:32:19,072 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:32:19,074 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:32:19,075 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:32:19,075 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:32:19,076 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:32:19,076 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:32:19,077 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:32:19,077 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:32:19,079 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:32:19,079 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:32:19,080 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:32:19,080 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:32:19,081 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:32:19,081 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:32:19,083 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:32:19,083 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:32:19,084 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:32:19,084 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:32:19,085 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:32:19,085 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:32:19,085 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:32:19,085 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:32:19,435 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 08:32:19,436 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 08:32:19,436 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 08:32:19,436 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 08:32:19,437 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 08:32:19,437 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 08:32:19,437 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 08:32:19,437 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 08:32:19,437 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 08:32:19,437 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 08:32:19,437 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:32:19,437 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 08:32:19,437 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 08:32:19,440 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:32:19,440 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:32:19,440 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:32:19,440 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:32:19,440 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:32:19,440 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 08:32:19,440 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 08:32:19,440 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:32:19,440 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:32:19,440 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:32:19,443 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:32:19,443 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:32:19,443 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:32:19,443 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:32:19,443 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:32:19,453 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 08:32:19,453 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 08:32:19,453 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 08:32:19,453 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:32:19,453 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 08:32:19,453 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 08:32:19,453 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 08:32:19,453 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:32:19,453 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 08:32:19,453 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 08:32:19,453 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:32:19,453 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:32:19,453 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 08:32:19,453 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 08:32:19,453 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 08:32:19,453 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 08:32:19,453 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:32:19,463 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:32:19,463 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 32, 19, 453270))
2025-04-29 08:32:19,463 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:33:19,474 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:33:19,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:33:19,476 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:33:19,477 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:33:19,477 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:33:19,478 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:33:19,478 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:33:19,480 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:33:19,481 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 33, 19, 473871))
2025-04-29 08:33:19,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:33:19,484 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:33:19,484 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:33:19,484 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:33:19,484 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:33:19,484 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:33:19,484 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:33:19,486 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:33:19,490 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:33:19,492 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:33:19,493 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:33:19,494 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:33:19,496 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:33:19,498 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:33:19,499 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:33:19,500 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:33:19,500 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:33:19,501 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:33:19,502 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:33:19,506 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:33:19,507 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:33:19,508 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:33:19,509 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:33:19,511 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:33:19,516 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:34:19,518 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:34:19,518 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:34:19,518 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:34:19,522 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:34:19,522 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:34:19,522 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:34:19,522 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:34:19,529 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:34:19,529 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:34:19,529 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:34:19,529 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:34:19,529 - sqlalchemy.engine.Engine - INFO - [cached since 120.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 34, 19, 518317))
2025-04-29 08:34:19,534 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:34:19,534 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:34:19,534 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:34:19,534 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:34:19,534 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:34:19,534 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:34:19,534 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:34:19,534 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:34:19,534 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:34:19,534 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:34:19,534 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:34:19,534 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:34:19,534 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:34:19,534 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:34:19,534 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:34:19,534 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:34:19,534 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:34:19,534 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:34:19,534 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:34:19,534 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:34:19,534 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:34:19,541 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:35:19,526 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:35:19,527 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:35:19,527 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:35:19,527 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:35:19,530 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:35:19,530 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:35:19,530 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:35:19,530 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:35:19,530 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 35, 19, 527930))
2025-04-29 08:35:19,530 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:35:19,643 - app - INFO - 应用程序关闭中...
2025-04-29 08:35:19,643 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 08:35:19,644 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 08:35:19,645 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 08:35:19,645 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 08:35:19,645 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 08:35:19,646 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 08:35:19,646 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 08:35:19,646 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 08:35:19,646 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 08:35:19,646 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 08:35:19,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:35:19,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:35:19,646 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:35:19,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:35:19,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:35:19,646 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-29 08:35:19,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:35:19,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:35:19,649 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-29 08:35:19,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:35:19,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:35:19,649 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-29 08:35:19,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:35:19,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:35:19,649 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-29 08:35:19,649 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 08:35:19,649 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 08:35:19,652 - app - INFO - 增强版任务调度器已停止
2025-04-29 08:35:19,652 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 08:35:19,652 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 08:35:19,652 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 08:35:19,652 - data.session - INFO - 数据库连接已关闭
2025-04-29 08:35:20,842 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:35:20,901 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:35:20,901 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:35:20,953 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:35:21,005 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:35:21,047 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:35:21,060 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:35:21,060 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:35:21,061 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:35:21,061 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:35:21,062 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:35:21,062 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:35:21,064 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:35:21,064 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:35:21,064 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:35:21,065 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:35:21,066 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:35:21,067 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:35:21,067 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:35:21,068 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:35:21,068 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:35:21,070 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:35:21,070 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:35:21,071 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:35:21,071 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:35:21,071 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:35:21,072 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:35:21,073 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:35:21,073 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:35:21,074 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:35:21,074 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:35:21,075 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:35:21,078 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:35:21,079 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:35:21,080 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:35:21,084 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:35:21,086 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:35:21,435 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 08:35:21,435 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 08:35:21,436 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 08:35:21,436 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 08:35:21,436 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 08:35:21,436 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 08:35:21,436 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 08:35:21,436 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 08:35:21,436 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 08:35:21,436 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 08:35:21,437 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:35:21,437 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 08:35:21,437 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 08:35:21,440 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:35:21,440 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:35:21,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:35:21,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:35:21,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:35:21,441 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 08:35:21,441 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 08:35:21,442 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:35:21,442 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:35:21,442 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:35:21,443 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:35:21,443 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:35:21,443 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:35:21,443 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:35:21,443 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:35:21,452 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 08:35:21,452 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 08:35:21,453 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 08:35:21,455 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:35:21,456 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 08:35:21,456 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 08:35:21,456 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 08:35:21,458 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:35:21,459 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 08:35:21,459 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 08:35:21,476 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:35:21,476 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:35:21,476 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 08:35:21,476 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 08:35:21,476 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 08:35:21,476 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 08:35:21,476 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:35:21,476 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:35:21,476 - sqlalchemy.engine.Engine - INFO - [generated in 0.00083s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 35, 21, 458922))
2025-04-29 08:35:21,487 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:36:21,460 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:36:21,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:36:21,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:36:21,460 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:36:21,462 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:36:21,462 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:36:21,462 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:36:21,462 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:36:21,462 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:36:21,462 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:36:21,462 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:36:21,462 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:36:21,462 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:36:21,462 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:36:21,462 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:36:21,462 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:36:21,462 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:36:21,478 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:36:21,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:36:21,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:36:21,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:36:21,478 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:36:21,478 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:36:21,478 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:36:21,494 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:36:21,494 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:36:21,494 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:36:21,494 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:36:21,494 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:36:21,506 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:36:21,506 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:36:21,509 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:36:21,509 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 36, 21, 494279))
2025-04-29 08:36:21,509 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:37:21,519 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:37:21,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:37:21,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:37:21,523 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:37:21,523 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:37:21,523 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:37:21,523 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:37:21,523 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:37:21,523 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 37, 21, 519227))
2025-04-29 08:37:21,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:37:21,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:37:21,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:37:21,523 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:37:21,523 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:37:21,523 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:37:21,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:37:21,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:37:21,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:37:21,523 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:37:21,523 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:37:21,523 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:37:21,523 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:37:21,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:37:21,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:37:21,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:37:21,523 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:37:21,535 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:37:21,535 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:37:21,535 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:37:21,535 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:37:21,535 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:37:21,535 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:37:21,535 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:37:21,541 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:37:21,683 - app - INFO - 应用程序关闭中...
2025-04-29 08:37:21,683 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 08:37:21,683 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 08:37:21,683 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 08:37:21,683 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 08:37:21,683 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 08:37:21,683 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 08:37:21,686 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 08:37:21,686 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 08:37:21,686 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 08:37:21,686 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 08:37:21,686 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:37:21,686 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:37:21,686 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:37:21,686 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:37:21,686 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:37:21,686 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 08:37:21,686 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:37:21,686 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:37:21,686 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 08:37:21,686 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:37:21,686 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:37:21,686 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 08:37:21,686 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:37:21,686 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:37:21,686 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 08:37:21,686 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 08:37:21,686 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 08:37:21,686 - app - INFO - 增强版任务调度器已停止
2025-04-29 08:37:21,688 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 08:37:21,688 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 08:37:21,688 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 08:37:21,688 - data.session - INFO - 数据库连接已关闭
2025-04-29 08:37:22,679 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:37:22,739 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:37:22,743 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:37:22,817 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:37:22,868 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:37:22,885 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:37:22,898 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:37:22,898 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:37:22,898 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:37:22,898 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:37:22,898 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:37:22,898 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:37:22,898 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:37:22,898 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:37:22,898 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:37:22,898 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:37:22,898 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:37:22,898 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:37:22,898 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:37:22,898 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:37:22,898 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:37:22,898 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:37:22,898 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:37:22,913 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:37:22,913 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:37:22,916 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:37:22,916 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:37:22,916 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:37:22,916 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:37:22,916 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:37:22,916 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:37:22,916 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:37:22,916 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:37:22,916 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:37:22,916 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:37:22,916 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:37:22,916 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:37:23,276 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 08:37:23,276 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 08:37:23,276 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 08:37:23,276 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 08:37:23,276 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 08:37:23,276 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 08:37:23,276 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 08:37:23,276 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 08:37:23,276 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 08:37:23,276 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 08:37:23,276 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:37:23,276 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 08:37:23,276 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 08:37:23,282 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:37:23,282 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:37:23,282 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:37:23,282 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:37:23,282 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:37:23,287 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 08:37:23,287 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 08:37:23,299 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:37:23,299 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:37:23,299 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:37:23,299 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:37:23,299 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:37:23,299 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:37:23,299 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:37:23,299 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:37:23,306 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 08:37:23,315 - sqlalchemy.engine.Engine - INFO - [generated in 0.00066s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 08:37:23,315 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 08:37:23,315 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:37:23,315 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 08:37:23,315 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 08:37:23,315 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 08:37:23,315 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:37:23,315 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 08:37:23,315 - sqlalchemy.engine.Engine - INFO - [generated in 0.00070s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 08:37:23,315 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:37:23,330 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 08:37:23,330 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 08:37:23,330 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 08:37:23,330 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 08:37:23,330 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:37:23,330 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:37:23,330 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:37:23,330 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 37, 23, 315186))
2025-04-29 08:37:23,330 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:38:23,302 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:38:23,302 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:38:23,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:38:23,303 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:38:23,303 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:38:23,303 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:38:23,304 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:38:23,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:38:23,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:38:23,305 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:38:23,305 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:38:23,305 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:38:23,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:38:23,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:38:23,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:38:23,305 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:38:23,305 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:38:23,305 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:38:23,312 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:38:23,312 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:38:23,312 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:38:23,312 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:38:23,312 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:38:23,312 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:38:23,312 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:38:23,312 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:38:23,313 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:38:23,313 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:38:23,313 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:38:23,317 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:38:23,318 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:38:23,318 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:38:23,319 - sqlalchemy.engine.Engine - INFO - [cached since 59.99s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 38, 23, 317638))
2025-04-29 08:38:23,320 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:38:23,475 - app - INFO - 应用程序关闭中...
2025-04-29 08:38:23,475 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 08:38:23,475 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 08:38:23,475 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 08:38:23,475 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 08:38:23,475 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 08:38:23,475 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 08:38:23,475 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 08:38:23,475 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 08:38:23,475 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 08:38:23,475 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 08:38:23,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:38:23,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:38:23,475 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:38:23,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:38:23,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:38:23,475 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 08:38:23,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:38:23,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:38:23,475 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 08:38:23,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:38:23,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:38:23,482 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 08:38:23,482 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:38:23,482 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:38:23,482 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 08:38:23,482 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 08:38:23,482 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 08:38:23,482 - app - INFO - 增强版任务调度器已停止
2025-04-29 08:38:23,482 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 08:38:23,482 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 08:38:23,482 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 08:38:23,482 - data.session - INFO - 数据库连接已关闭
2025-04-29 08:38:24,684 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:38:24,761 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:38:24,761 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:38:24,819 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:38:24,864 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:38:24,888 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:38:24,912 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:38:24,913 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:24,914 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:38:24,914 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:24,915 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:38:24,916 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:24,917 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:38:24,917 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:38:24,918 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:24,919 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:38:24,921 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:24,923 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:38:24,924 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:24,925 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:38:24,926 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:24,928 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:38:24,928 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:24,928 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:38:24,930 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:24,930 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:38:24,930 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:24,932 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:38:24,932 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:24,934 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:38:24,934 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:24,934 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:38:24,934 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:24,938 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:38:24,938 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:24,940 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:38:24,942 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:38:25,303 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 08:38:25,303 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 08:38:25,303 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 08:38:25,305 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 08:38:25,305 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 08:38:25,305 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 08:38:25,305 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 08:38:25,305 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 08:38:25,305 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 08:38:25,305 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 08:38:25,305 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:38:25,305 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 08:38:25,305 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 08:38:25,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:38:25,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:38:25,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:38:25,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:38:25,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:38:25,305 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 08:38:25,305 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 08:38:25,317 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:38:25,317 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:38:25,317 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:38:25,317 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:38:25,317 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:38:25,317 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:38:25,317 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:38:25,317 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:38:25,317 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 08:38:25,333 - sqlalchemy.engine.Engine - INFO - [generated in 0.00218s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 08:38:25,336 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 08:38:25,336 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:38:25,336 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 08:38:25,336 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 08:38:25,336 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 08:38:25,336 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:38:25,336 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 08:38:25,336 - sqlalchemy.engine.Engine - INFO - [generated in 0.00060s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 08:38:25,349 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:38:25,349 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 08:38:25,349 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 08:38:25,349 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 08:38:25,349 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 08:38:25,349 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:38:25,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:38:25,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:38:25,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:38:25,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:38:25,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:38:25,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:38:25,349 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 08:38:25,349 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 08:38:25,365 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:38:25,365 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:38:25,370 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 08:38:25,370 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 08:38:25,370 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 08:38:25,370 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 08:38:25,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:38:25,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:38:25,370 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 08:38:25,370 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 08:38:26,161 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:38:26,223 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:38:26,223 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:38:26,286 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:38:26,337 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:38:26,371 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:38:26,389 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:38:26,389 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:26,389 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:38:26,389 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:26,389 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:38:26,399 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:26,399 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:38:26,399 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:38:26,399 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:26,399 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:38:26,399 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:26,409 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:38:26,411 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:26,411 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:38:26,411 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:26,411 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:38:26,411 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:26,411 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:38:26,411 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:26,411 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:38:26,411 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:26,411 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:38:26,411 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:26,411 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:38:26,420 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:26,422 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:38:26,422 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:26,422 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:38:26,422 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:38:26,422 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:38:26,422 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:38:26,768 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 08:38:26,768 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 08:38:26,768 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 08:38:26,768 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 08:38:26,768 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 08:38:26,768 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 08:38:26,768 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 08:38:26,770 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 08:38:26,770 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 08:38:26,770 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 08:38:26,770 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:38:26,770 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 08:38:26,770 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 08:38:26,770 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:38:26,770 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:38:26,770 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:38:26,770 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:38:26,770 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:38:26,770 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 08:38:26,770 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 08:38:26,789 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:38:26,789 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:38:26,789 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:38:26,789 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:38:26,789 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:38:26,799 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:38:26,799 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:38:26,799 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:38:26,811 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 08:38:26,812 - sqlalchemy.engine.Engine - INFO - [generated in 0.00121s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 08:38:26,812 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 08:38:26,812 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:38:26,812 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 08:38:26,819 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 08:38:26,819 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 08:38:26,819 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:38:26,819 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 08:38:26,819 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 08:38:26,829 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:38:26,829 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:38:26,831 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 08:38:26,831 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 08:38:26,831 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 08:38:26,831 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 08:38:26,831 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:38:26,833 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:38:26,833 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 38, 26, 819216))
2025-04-29 08:38:26,833 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:39:26,807 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:39:26,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:39:26,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:39:26,809 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:39:26,811 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:39:26,811 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:39:26,811 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:39:26,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:39:26,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:39:26,812 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:39:26,812 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:39:26,813 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:39:26,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:39:26,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:39:26,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:39:26,813 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:39:26,813 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:39:26,814 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:39:26,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:39:26,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:39:26,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:39:26,814 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:39:26,814 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:39:26,814 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:39:26,815 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:39:26,815 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:39:26,815 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:39:26,815 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:39:26,815 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:39:26,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:39:26,821 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:39:26,821 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:39:26,821 - sqlalchemy.engine.Engine - INFO - [cached since 59.99s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 39, 26, 820264))
2025-04-29 08:39:26,822 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:40:12,266 - app - INFO - 应用程序关闭中...
2025-04-29 08:40:12,266 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 08:40:12,266 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 08:40:12,266 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 08:40:12,266 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 08:40:12,266 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 08:40:12,266 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 08:40:12,266 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 08:40:12,266 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 08:40:12,266 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 08:40:12,272 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 08:40:12,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:40:12,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:40:12,272 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:40:12,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:40:12,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:40:12,272 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 08:40:12,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:40:12,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:40:12,272 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 08:40:12,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:40:12,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:40:12,272 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 08:40:12,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:40:12,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:40:12,272 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 08:40:12,272 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 08:40:12,272 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 08:40:12,272 - app - INFO - 增强版任务调度器已停止
2025-04-29 08:40:12,272 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 08:40:12,272 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 08:40:12,272 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 08:40:12,272 - data.session - INFO - 数据库连接已关闭
2025-04-29 08:40:13,908 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:40:13,963 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:40:13,963 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:40:14,675 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:40:14,730 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:40:14,734 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:40:14,783 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:40:14,846 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:40:14,862 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:40:14,878 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:40:14,878 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:14,878 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:40:14,878 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:14,878 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:40:14,878 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:14,878 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:40:14,878 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:40:14,878 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:14,878 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:40:14,878 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:14,878 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:40:14,878 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:14,878 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:40:14,878 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:14,878 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:40:14,878 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:14,878 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:40:14,878 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:14,894 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:40:14,894 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:14,894 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:40:14,894 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:14,894 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:40:14,894 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:14,894 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:40:14,894 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:14,894 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:40:14,894 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:14,894 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:40:14,894 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:40:15,253 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 08:40:15,253 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 08:40:15,253 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 08:40:15,253 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 08:40:15,253 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 08:40:15,253 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 08:40:15,253 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 08:40:15,253 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 08:40:15,253 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 08:40:15,253 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 08:40:15,253 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:40:15,253 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 08:40:15,253 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 08:40:15,253 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:40:15,253 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:40:15,253 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:40:15,253 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:40:15,253 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:40:15,253 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 08:40:15,253 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 08:40:15,261 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:40:15,261 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:40:15,261 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:40:15,261 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:40:15,261 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:40:15,261 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:40:15,261 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:40:15,261 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:40:15,272 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 08:40:15,272 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 08:40:15,276 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 08:40:15,282 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:40:15,282 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 08:40:15,282 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 08:40:15,282 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 08:40:15,282 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:40:15,282 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 08:40:15,282 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 08:40:15,293 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:40:15,293 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:40:15,293 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 08:40:15,293 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 08:40:15,293 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 08:40:15,293 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 08:40:15,293 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:40:15,293 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:40:15,293 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 40, 15, 282457))
2025-04-29 08:40:15,293 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:40:18,108 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 08:40:18,111 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:40:18,111 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:40:18,111 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:40:18,111 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:40:18,115 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:40:18,115 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:40:18,115 - sqlalchemy.engine.Engine - INFO - [cached since 0.004444s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:40:18,115 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:40:18,115 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 08:40:18,115 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 08:40:18,115 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 08:40:18,115 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:40:18,115 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 08:40:18,115 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (None, datetime.datetime(2025, 4, 29, 8, 40, 18, 115396), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 08:40:18,115 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:40:18,132 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:40:18,132 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:40:18,132 - sqlalchemy.engine.Engine - INFO - [cached since 0.02476s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:40:18,132 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:40:18,132 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] ('aa06d173-6110-4894-beab-cb1cdc9196de', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 3, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (290 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 8, 40, 18, 115396), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 8, 40, 18, 132258), datetime.datetime(2025, 4, 29, 8, 40, 18, 132258), 0)
2025-04-29 08:40:18,132 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:40:18,152 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:40:18,152 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:40:18,152 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] ('aa06d173-6110-4894-beab-cb1cdc9196de',)
2025-04-29 08:40:18,152 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:40:18,152 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 aa06d173-6110-4894-beab-cb1cdc9196de (优先级 1) 添加到队列 0
2025-04-29 08:40:18,152 - services.sync_service - INFO - 正在同步创建任务到天风系统: aa06d173-6110-4894-beab-cb1cdc9196de
2025-04-29 08:40:18,152 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"aa06d173-6110-4894-beab-cb1cdc9196de","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 08:40:18","sceneId":"1912043207186550785","needAmr":1}
2025-04-29 08:40:18,189 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: aa06d173-6110-4894-beab-cb1cdc9196de, 优先级: 1
2025-04-29 08:40:18,189 - services.execution.task_executor - DEBUG - 任务 aa06d173-6110-4894-beab-cb1cdc9196de 设置超时时间: 3600秒
2025-04-29 08:40:18,189 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:40:18,189 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:40:18,189 - sqlalchemy.engine.Engine - INFO - [cached since 0.04169s ago] ('aa06d173-6110-4894-beab-cb1cdc9196de',)
2025-04-29 08:40:18,189 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:40:18,198 - sqlalchemy.engine.Engine - INFO - [cached since 0.08567s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:40:18,198 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 08:40:18,198 - sqlalchemy.engine.Engine - INFO - [generated in 0.00237s] (datetime.datetime(2025, 4, 29, 8, 40, 18, 198230), datetime.datetime(2025, 4, 29, 8, 40, 18, 198230), 'aa06d173-6110-4894-beab-cb1cdc9196de')
2025-04-29 08:40:18,198 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:40:18,214 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:40:18,216 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 08:40:18,216 - sqlalchemy.engine.Engine - INFO - [generated in 0.00070s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 40, 18, 216964), 'aa06d173-6110-4894-beab-cb1cdc9196de')
2025-04-29 08:40:18,216 - services.sync_service - INFO - 成功同步任务到系统任务: aa06d173-6110-4894-beab-cb1cdc9196de
2025-04-29 08:40:18,216 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: aa06d173-6110-4894-beab-cb1cdc9196de
2025-04-29 08:40:18,216 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: aa06d173-6110-4894-beab-cb1cdc9196de
2025-04-29 08:40:18,216 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:40:18,216 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1088秒
2025-04-29 08:40:18,216 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 08:40:18,216 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:40:18,232 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:40:18,232 - sqlalchemy.engine.Engine - INFO - [generated in 0.00134s] ('e01fdfde-ca75-4b67-b358-a5a2fce00748', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'aa06d173-6110-4894-beab-cb1cdc9196de', datetime.datetime(2025, 4, 29, 8, 40, 18, 216964), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 8, 40, 18, 232756), datetime.datetime(2025, 4, 29, 8, 40, 18, 232756), 0)
2025-04-29 08:40:18,232 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:40:18,232 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:40:18,248 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:40:18,250 - sqlalchemy.engine.Engine - INFO - [generated in 0.00106s] ('e01fdfde-ca75-4b67-b358-a5a2fce00748',)
2025-04-29 08:40:18,250 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 08:40:18,250 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 08:40:18,250 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:40:18,250 - sqlalchemy.engine.Engine - INFO - [generated in 0.00081s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 8, 40, 18, 250023), 'e01fdfde-ca75-4b67-b358-a5a2fce00748')
2025-04-29 08:40:18,250 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:40:18,259 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 08:40:18,259 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 08:40:18,259 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-29 08:40:18,259 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:40:18,266 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:40:18,268 - sqlalchemy.engine.Engine - INFO - [cached since 0.0304s ago] ('755a5e9f-ba25-4044-ad74-ffcccd0e7b90', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"priority": "10", "keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'aa06d173-6110-4894-beab-cb1cdc9196de', datetime.datetime(2025, 4, 29, 8, 40, 18, 259575), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 29, 8, 40, 18, 266244), datetime.datetime(2025, 4, 29, 8, 40, 18, 266244), 0)
2025-04-29 08:40:18,272 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:40:18,279 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 755a5e9f-ba25-4044-ad74-ffcccd0e7b90
2025-04-29 08:40:18,279 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:40:18,281 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:40:18,281 - sqlalchemy.engine.Engine - INFO - [cached since 0.03333s ago] ('755a5e9f-ba25-4044-ad74-ffcccd0e7b90',)
2025-04-29 08:40:18,283 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 08:40:18,283 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 08:40:18,284 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:40:18,284 - sqlalchemy.engine.Engine - INFO - [cached since 0.03289s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 29, 8, 40, 18, 284469), '755a5e9f-ba25-4044-ad74-ffcccd0e7b90')
2025-04-29 08:40:18,286 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:40:18,296 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-29 08:40:18,296 - services.sync_service - INFO - 正在创建选择AMR任务: aa06d173-6110-4894-beab-cb1cdc9196de, 站点: TK01
2025-04-29 08:40:18,318 - services.sync_service - INFO - 成功为任务选择AMR: aa06d173-6110-4894-beab-cb1cdc9196de, AMR: None
2025-04-29 08:40:18,318 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:40:18,330 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:40:18,330 - sqlalchemy.engine.Engine - INFO - [generated in 0.00101s] ('0cc4483f-3213-401a-9643-91e025339dd4', 3, '{"success": false, "message": "创建选择AMR任务成功，但未返回任务块ID"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'aa06d173-6110-4894-beab-cb1cdc9196de', datetime.datetime(2025, 4, 29, 8, 40, 18, 330765), datetime.datetime(2025, 4, 29, 8, 40, 18, 330765), 0)
2025-04-29 08:40:18,332 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:40:18,349 - services.execution.block_executor - ERROR - 子块 1 执行失败: 创建选择AMR任务成功，但未返回任务块ID
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:40:18,352 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:40:18,352 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:40:18,353 - sqlalchemy.engine.Engine - INFO - [cached since 0.1045s ago] ('755a5e9f-ba25-4044-ad74-ffcccd0e7b90',)
2025-04-29 08:40:18,355 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 08:40:18,355 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 08:40:18,358 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:40:18,360 - sqlalchemy.engine.Engine - INFO - [generated in 0.00237s] (datetime.datetime(2025, 4, 29, 8, 40, 18, 356583), '创建选择AMR任务成功，但未返回任务块ID', <TaskBlockRecordStatus.FAILED: 2000>, '创建选择AMR任务成功，但未返回任务块ID', datetime.datetime(2025, 4, 29, 8, 40, 18, 358551), '755a5e9f-ba25-4044-ad74-ffcccd0e7b90')
2025-04-29 08:40:18,361 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:40:18,369 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:40:18,369 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:40:18,369 - sqlalchemy.engine.Engine - INFO - [cached since 0.04859s ago] ('0ce04599-0a15-4c1b-acac-3e1fed1129e3', 3, '{"success": false, "message": "子块 1 执行失败: 创建选择AMR任务成功，但未返回任务块ID", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'aa06d173-6110-4894-beab-cb1cdc9196de', datetime.datetime(2025, 4, 29, 8, 40, 18, 369835), datetime.datetime(2025, 4, 29, 8, 40, 18, 369835), 0)
2025-04-29 08:40:18,385 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:40:18,399 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:40:18,400 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:40:18,400 - sqlalchemy.engine.Engine - INFO - [cached since 0.1521s ago] ('e01fdfde-ca75-4b67-b358-a5a2fce00748',)
2025-04-29 08:40:18,402 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 08:40:18,405 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 08:40:18,406 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:40:18,407 - sqlalchemy.engine.Engine - INFO - [cached since 0.04945s ago] (datetime.datetime(2025, 4, 29, 8, 40, 18, 405602), '子块 1 执行失败: 创建选择AMR任务成功，但未返回任务块ID', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 创建选择AMR任务成功，但未返回任务块ID', datetime.datetime(2025, 4, 29, 8, 40, 18, 406803), 'e01fdfde-ca75-4b67-b358-a5a2fce00748')
2025-04-29 08:40:18,409 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:40:18,420 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:40:18,420 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 08:40:18,420 - sqlalchemy.engine.Engine - INFO - [generated in 0.00232s] (datetime.datetime(2025, 4, 29, 8, 40, 18, 420648), '子块 1 执行失败: 创建选择AMR任务成功，但未返回任务块ID', <TaskStatus.FAILED: 2000>, 206, 1, datetime.datetime(2025, 4, 29, 8, 40, 18, 420648), 'aa06d173-6110-4894-beab-cb1cdc9196de')
2025-04-29 08:40:18,433 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:40:18,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: aa06d173-6110-4894-beab-cb1cdc9196de, 结果: False
2025-04-29 08:40:58,157 - app - INFO - 应用程序关闭中...
2025-04-29 08:40:58,157 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 08:40:58,157 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 08:40:58,157 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 08:40:58,157 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 08:40:58,157 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 08:40:58,157 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 08:40:58,157 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 08:40:58,157 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 08:40:58,157 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 08:40:58,157 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 08:40:58,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:40:58,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:40:58,157 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:40:58,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:40:58,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:40:58,157 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 08:40:58,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:40:58,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:40:58,157 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 08:40:58,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:40:58,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:40:58,157 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 08:40:58,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:40:58,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:40:58,157 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 08:40:58,157 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 08:40:58,157 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 08:40:58,157 - app - INFO - 增强版任务调度器已停止
2025-04-29 08:40:58,157 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 08:40:58,157 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 08:40:58,157 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 08:40:58,157 - data.session - INFO - 数据库连接已关闭
2025-04-29 08:40:59,342 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:40:59,416 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:40:59,416 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:40:59,482 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:40:59,529 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:40:59,578 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:40:59,579 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:40:59,579 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:59,579 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:40:59,579 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:59,579 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:40:59,579 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:59,579 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:40:59,579 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:40:59,579 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:59,579 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:40:59,579 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:59,579 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:40:59,579 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:59,579 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:40:59,579 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:59,579 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:40:59,579 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:59,579 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:40:59,579 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:59,593 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:40:59,593 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:59,593 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:40:59,593 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:59,593 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:40:59,593 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:59,593 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:40:59,593 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:59,593 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:40:59,593 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:40:59,593 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:40:59,593 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:40:59,959 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 08:40:59,959 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 08:40:59,959 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 08:40:59,959 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 08:40:59,959 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 08:40:59,959 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 08:40:59,959 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 08:40:59,959 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 08:40:59,959 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 08:40:59,959 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 08:40:59,959 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:40:59,959 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 08:40:59,959 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 08:40:59,959 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:40:59,974 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:40:59,974 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:40:59,974 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:40:59,974 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:40:59,974 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 08:40:59,974 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 08:40:59,978 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:40:59,978 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:40:59,978 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:40:59,978 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:40:59,978 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:40:59,978 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:40:59,978 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:40:59,978 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:40:59,978 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 08:40:59,978 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 08:40:59,995 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 08:40:59,996 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:40:59,996 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 08:40:59,996 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 08:40:59,996 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 08:40:59,996 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:40:59,996 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 08:40:59,996 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 08:40:59,996 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:40:59,996 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:40:59,996 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 08:40:59,996 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 08:40:59,996 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 08:40:59,996 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 08:40:59,996 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:40:59,996 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:40:59,996 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 40, 59, 996852))
2025-04-29 08:40:59,996 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:41:26,377 - app - INFO - 应用程序关闭中...
2025-04-29 08:41:26,377 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 08:41:26,377 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 08:41:26,377 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 08:41:26,377 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 08:41:26,377 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 08:41:26,377 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 08:41:26,377 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 08:41:26,377 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 08:41:26,377 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 08:41:26,377 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 08:41:26,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:41:26,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:41:26,377 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:41:26,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:41:26,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:41:26,377 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 08:41:26,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:41:26,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:41:26,377 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 08:41:26,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:41:26,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:41:26,377 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 08:41:26,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:41:26,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:41:26,377 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 08:41:26,377 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 08:41:26,377 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 08:41:26,377 - app - INFO - 增强版任务调度器已停止
2025-04-29 08:41:26,377 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 08:41:26,377 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 08:41:26,377 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 08:41:26,377 - data.session - INFO - 数据库连接已关闭
2025-04-29 08:41:28,408 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:41:28,471 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:41:28,471 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:41:29,176 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:41:29,232 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:41:29,232 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:41:29,301 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:41:29,350 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:41:29,382 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:41:29,398 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:41:29,398 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:41:29,401 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:41:29,401 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:41:29,401 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:41:29,401 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:41:29,401 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:41:29,401 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:41:29,401 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:41:29,401 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:41:29,401 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:41:29,401 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:41:29,401 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:41:29,401 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:41:29,401 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:41:29,401 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:41:29,401 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:41:29,401 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:41:29,401 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:41:29,401 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:41:29,414 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:41:29,414 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:41:29,414 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:41:29,414 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:41:29,414 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:41:29,414 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:41:29,414 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:41:29,414 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:41:29,414 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:41:29,414 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:41:29,414 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:41:29,787 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 08:41:29,787 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 08:41:29,787 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 08:41:29,787 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 08:41:29,787 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 08:41:29,787 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 08:41:29,787 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 08:41:29,787 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 08:41:29,787 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 08:41:29,787 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 08:41:29,787 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:41:29,787 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 08:41:29,787 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 08:41:29,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:41:29,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:41:29,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:41:29,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:41:29,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:41:29,797 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 08:41:29,797 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 08:41:29,797 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:41:29,802 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:41:29,802 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:41:29,802 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:41:29,802 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:41:29,802 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:41:29,802 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:41:29,802 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:41:29,802 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 08:41:29,813 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 08:41:29,813 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 08:41:29,813 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:41:29,813 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 08:41:29,813 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 08:41:29,813 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 08:41:29,813 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:41:29,813 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 08:41:29,813 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 08:41:29,813 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:41:29,813 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:41:29,813 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 08:41:29,813 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 08:41:29,813 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 08:41:29,813 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 08:41:29,813 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:41:29,813 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:41:29,813 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 41, 29, 813242))
2025-04-29 08:41:29,813 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:41:32,295 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 08:41:32,305 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:41:32,305 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:41:32,307 - sqlalchemy.engine.Engine - INFO - [generated in 0.00056s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:41:32,308 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:41:32,312 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:41:32,313 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:41:32,313 - sqlalchemy.engine.Engine - INFO - [cached since 0.00744s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:41:32,315 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:41:32,315 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 08:41:32,315 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 08:41:32,315 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 08:41:32,315 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:41:32,315 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 08:41:32,322 - sqlalchemy.engine.Engine - INFO - [generated in 0.00130s] (None, datetime.datetime(2025, 4, 29, 8, 41, 32, 315859), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 08:41:32,322 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:41:32,340 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:41:32,340 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:41:32,340 - sqlalchemy.engine.Engine - INFO - [cached since 0.03712s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:41:32,345 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:41:32,345 - sqlalchemy.engine.Engine - INFO - [generated in 0.00078s] ('36d207a9-bb4b-44cd-83c5-7900b43e140b', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 3, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (290 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 8, 41, 32, 315859), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 8, 41, 32, 345420), datetime.datetime(2025, 4, 29, 8, 41, 32, 345420), 0)
2025-04-29 08:41:32,345 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:41:32,362 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:41:32,362 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:41:32,362 - sqlalchemy.engine.Engine - INFO - [generated in 0.00230s] ('36d207a9-bb4b-44cd-83c5-7900b43e140b',)
2025-04-29 08:41:32,362 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:41:32,362 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 36d207a9-bb4b-44cd-83c5-7900b43e140b (优先级 1) 添加到队列 0
2025-04-29 08:41:32,371 - services.sync_service - INFO - 正在同步创建任务到天风系统: 36d207a9-bb4b-44cd-83c5-7900b43e140b
2025-04-29 08:41:32,371 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"36d207a9-bb4b-44cd-83c5-7900b43e140b","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 08:41:32","sceneId":"1912043207186550785","needAmr":1}
2025-04-29 08:41:32,414 - services.sync_service - INFO - 成功同步任务到系统任务: 36d207a9-bb4b-44cd-83c5-7900b43e140b
2025-04-29 08:41:32,414 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 36d207a9-bb4b-44cd-83c5-7900b43e140b
2025-04-29 08:41:32,414 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 36d207a9-bb4b-44cd-83c5-7900b43e140b
2025-04-29 08:41:32,414 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1192秒
2025-04-29 08:41:32,468 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 36d207a9-bb4b-44cd-83c5-7900b43e140b, 优先级: 1
2025-04-29 08:41:32,468 - services.execution.task_executor - DEBUG - 任务 36d207a9-bb4b-44cd-83c5-7900b43e140b 设置超时时间: 3600秒
2025-04-29 08:41:32,469 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:41:32,469 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:41:32,469 - sqlalchemy.engine.Engine - INFO - [cached since 0.1042s ago] ('36d207a9-bb4b-44cd-83c5-7900b43e140b',)
2025-04-29 08:41:32,471 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:41:32,471 - sqlalchemy.engine.Engine - INFO - [cached since 0.1649s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:41:32,473 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 08:41:32,473 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] (datetime.datetime(2025, 4, 29, 8, 41, 32, 472230), datetime.datetime(2025, 4, 29, 8, 41, 32, 472230), '36d207a9-bb4b-44cd-83c5-7900b43e140b')
2025-04-29 08:41:32,473 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:41:32,481 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:41:32,482 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 08:41:32,482 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 41, 32, 482237), '36d207a9-bb4b-44cd-83c5-7900b43e140b')
2025-04-29 08:41:32,482 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:41:32,491 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 08:41:32,492 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:41:32,494 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:41:32,496 - sqlalchemy.engine.Engine - INFO - [generated in 0.00198s] ('e73a1201-1a29-48bc-a219-3d4a3d6c01e9', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '36d207a9-bb4b-44cd-83c5-7900b43e140b', datetime.datetime(2025, 4, 29, 8, 41, 32, 492747), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 8, 41, 32, 494754), datetime.datetime(2025, 4, 29, 8, 41, 32, 494754), 0)
2025-04-29 08:41:32,497 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:41:32,508 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:41:32,513 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:41:32,519 - sqlalchemy.engine.Engine - INFO - [generated in 0.00564s] ('e73a1201-1a29-48bc-a219-3d4a3d6c01e9',)
2025-04-29 08:41:32,521 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 08:41:32,522 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 08:41:32,524 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:41:32,528 - sqlalchemy.engine.Engine - INFO - [generated in 0.00413s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 8, 41, 32, 523034), 'e73a1201-1a29-48bc-a219-3d4a3d6c01e9')
2025-04-29 08:41:32,529 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:41:32,537 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 08:41:32,539 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 08:41:32,539 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-29 08:41:32,541 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:41:32,544 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:41:32,545 - sqlalchemy.engine.Engine - INFO - [cached since 0.05055s ago] ('470bf4ff-77f7-4b71-bf4e-307e843af580', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"priority": "10", "keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '36d207a9-bb4b-44cd-83c5-7900b43e140b', datetime.datetime(2025, 4, 29, 8, 41, 32, 541034), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 29, 8, 41, 32, 544036), datetime.datetime(2025, 4, 29, 8, 41, 32, 544036), 0)
2025-04-29 08:41:32,546 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:41:32,553 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 470bf4ff-77f7-4b71-bf4e-307e843af580
2025-04-29 08:41:32,554 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:41:32,558 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:41:32,560 - sqlalchemy.engine.Engine - INFO - [cached since 0.04762s ago] ('470bf4ff-77f7-4b71-bf4e-307e843af580',)
2025-04-29 08:41:32,562 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 08:41:32,565 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 08:41:32,567 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:41:32,568 - sqlalchemy.engine.Engine - INFO - [cached since 0.04469s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 29, 8, 41, 32, 567376), '470bf4ff-77f7-4b71-bf4e-307e843af580')
2025-04-29 08:41:32,569 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:41:32,578 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-29 08:41:32,579 - services.sync_service - INFO - 正在创建选择AMR任务: 36d207a9-bb4b-44cd-83c5-7900b43e140b, 站点: TK01
2025-04-29 08:41:32,625 - services.sync_service - INFO - 成功为任务选择AMR: 36d207a9-bb4b-44cd-83c5-7900b43e140b, AMR: None
2025-04-29 08:41:32,626 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917016365697589249 的AMR选择结果
2025-04-29 08:41:32,626 - services.sync_service - INFO - 开始等待任务块 1917016365697589249 的AMR选择结果
2025-04-29 08:41:32,627 - services.sync_service - INFO - 正在获取任务块详情: 1917016365697589249
2025-04-29 08:41:32,665 - services.sync_service - INFO - 成功获取任务块详情: 1917016365697589249
2025-04-29 08:41:32,665 - services.sync_service - DEBUG - 任务块 1917016365697589249 AMR选择未完成，继续等待，已重试 1 次
2025-04-29 08:41:33,171 - services.sync_service - INFO - 正在获取任务块详情: 1917016365697589249
2025-04-29 08:41:33,328 - services.sync_service - INFO - 成功获取任务块详情: 1917016365697589249
2025-04-29 08:41:33,328 - services.sync_service - DEBUG - 任务块 1917016365697589249 AMR选择未完成，继续等待，已重试 2 次
2025-04-29 08:41:33,470 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:41:33,470 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:41:33,470 - sqlalchemy.engine.Engine - INFO - [generated in 0.00063s] ('36d207a9-bb4b-44cd-83c5-7900b43e140b',)
2025-04-29 08:41:33,470 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:41:33,833 - services.sync_service - INFO - 正在获取任务块详情: 1917016365697589249
2025-04-29 08:41:33,858 - services.sync_service - INFO - 成功获取任务块详情: 1917016365697589249
2025-04-29 08:41:33,858 - services.sync_service - DEBUG - 任务块 1917016365697589249 AMR选择未完成，继续等待，已重试 3 次
2025-04-29 08:41:34,362 - services.sync_service - INFO - 正在获取任务块详情: 1917016365697589249
2025-04-29 08:41:34,383 - services.sync_service - INFO - 成功获取任务块详情: 1917016365697589249
2025-04-29 08:41:34,383 - services.sync_service - DEBUG - 任务块 1917016365697589249 AMR选择未完成，继续等待，已重试 4 次
2025-04-29 08:41:34,476 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:41:34,476 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:41:34,476 - sqlalchemy.engine.Engine - INFO - [cached since 1.012s ago] ('36d207a9-bb4b-44cd-83c5-7900b43e140b',)
2025-04-29 08:41:34,487 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:41:34,886 - services.sync_service - INFO - 正在获取任务块详情: 1917016365697589249
2025-04-29 08:41:34,919 - services.sync_service - INFO - 成功获取任务块详情: 1917016365697589249
2025-04-29 08:41:34,919 - services.sync_service - DEBUG - 任务块 1917016365697589249 AMR选择未完成，继续等待，已重试 5 次
2025-04-29 08:41:35,410 - services.sync_service - INFO - 正在获取任务块详情: 1917016365697589249
2025-04-29 08:41:35,431 - services.sync_service - INFO - 成功获取任务块详情: 1917016365697589249
2025-04-29 08:41:35,431 - services.sync_service - DEBUG - 任务块 1917016365697589249 AMR选择未完成，继续等待，已重试 6 次
2025-04-29 08:41:35,493 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:41:35,494 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:41:35,494 - sqlalchemy.engine.Engine - INFO - [cached since 2.023s ago] ('36d207a9-bb4b-44cd-83c5-7900b43e140b',)
2025-04-29 08:41:35,494 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:41:35,936 - services.sync_service - INFO - 正在获取任务块详情: 1917016365697589249
2025-04-29 08:41:35,957 - services.sync_service - INFO - 成功获取任务块详情: 1917016365697589249
2025-04-29 08:41:35,957 - services.sync_service - DEBUG - 任务块 1917016365697589249 AMR选择未完成，继续等待，已重试 7 次
2025-04-29 08:41:36,453 - services.sync_service - INFO - 正在获取任务块详情: 1917016365697589249
2025-04-29 08:41:36,477 - services.sync_service - INFO - 成功获取任务块详情: 1917016365697589249
2025-04-29 08:41:36,477 - services.sync_service - DEBUG - 任务块 1917016365697589249 AMR选择未完成，继续等待，已重试 8 次
2025-04-29 08:41:36,477 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:41:36,477 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:41:36,477 - sqlalchemy.engine.Engine - INFO - [cached since 3.019s ago] ('36d207a9-bb4b-44cd-83c5-7900b43e140b',)
2025-04-29 08:41:36,493 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:41:36,977 - services.sync_service - INFO - 正在获取任务块详情: 1917016365697589249
2025-04-29 08:41:37,042 - services.sync_service - INFO - 成功获取任务块详情: 1917016365697589249
2025-04-29 08:41:37,042 - services.sync_service - INFO - 任务块 1917016365697589249 已选择AMR: 1912328602264645634，共尝试 9 次
2025-04-29 08:41:37,042 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-29 08:41:37,042 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: []
2025-04-29 08:41:37,042 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-29 08:41:37,042 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 0 个
2025-04-29 08:41:37,042 - services.sync_service - INFO - 正在封口任务: 36d207a9-bb4b-44cd-83c5-7900b43e140b
2025-04-29 08:41:37,068 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-29 08:41:37,070 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:41:37,070 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:41:37,070 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] ('fb1e1518-2cb8-4917-b718-fb68e434d323', 1, '{"success": true, "message": "选择执行机器人成功: 1912328602264645634", "code": 200, "result": {"taskBlockId": "1917016365697589249"}, "timestamp": 1745887292685}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '36d207a9-bb4b-44cd-83c5-7900b43e140b', datetime.datetime(2025, 4, 29, 8, 41, 37, 70017), datetime.datetime(2025, 4, 29, 8, 41, 37, 70017), 0)
2025-04-29 08:41:37,070 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:41:37,079 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:41:37,079 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:41:37,079 - sqlalchemy.engine.Engine - INFO - [cached since 4.578s ago] ('470bf4ff-77f7-4b71-bf4e-307e843af580',)
2025-04-29 08:41:37,079 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 08:41:37,093 - services.execution.block_executor - INFO - 为块 b1 存储输出: ['selectedAgvId']
2025-04-29 08:41:37,093 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:41:37,094 - sqlalchemy.engine.Engine - INFO - [generated in 0.00158s] ('{"selectedAgvId": "1912328602264645634"}', datetime.datetime(2025, 4, 29, 8, 41, 37, 93087), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '{"blocks": {"b1": {"selectedAgvId": "1912328602264645634"}}}', '执行成功', datetime.datetime(2025, 4, 29, 8, 41, 37, 93087), '470bf4ff-77f7-4b71-bf4e-307e843af580')
2025-04-29 08:41:37,094 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:41:37,094 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:41:37,094 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:41:37,094 - sqlalchemy.engine.Engine - INFO - [cached since 0.03239s ago] ('b38596d2-f1db-462f-ae1c-e372478afd5f', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {}}]}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '36d207a9-bb4b-44cd-83c5-7900b43e140b', datetime.datetime(2025, 4, 29, 8, 41, 37, 94960), datetime.datetime(2025, 4, 29, 8, 41, 37, 94960), 0)
2025-04-29 08:41:37,094 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:41:37,110 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:41:37,110 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:41:37,110 - sqlalchemy.engine.Engine - INFO - [cached since 4.603s ago] ('e73a1201-1a29-48bc-a219-3d4a3d6c01e9',)
2025-04-29 08:41:37,117 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 08:41:37,117 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 08:41:37,117 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:41:37,117 - sqlalchemy.engine.Engine - INFO - [generated in 0.00064s] (datetime.datetime(2025, 4, 29, 8, 41, 37, 117147), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 8, 41, 37, 117147), 'e73a1201-1a29-48bc-a219-3d4a3d6c01e9')
2025-04-29 08:41:37,117 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:41:37,126 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:41:37,126 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 08:41:37,126 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (datetime.datetime(2025, 4, 29, 8, 41, 37, 126542), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 4646, 1, datetime.datetime(2025, 4, 29, 8, 41, 37, 126542), '36d207a9-bb4b-44cd-83c5-7900b43e140b')
2025-04-29 08:41:37,126 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:41:37,126 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 36d207a9-bb4b-44cd-83c5-7900b43e140b, 结果: True
2025-04-29 08:42:29,800 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:42:29,800 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:42:29,800 - sqlalchemy.engine.Engine - INFO - [cached since 59.98s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 42, 29, 800225))
2025-04-29 08:42:29,800 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:42:29,831 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:42:29,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:42:29,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:42:29,831 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:42:29,831 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:42:29,831 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:42:29,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:42:29,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:42:29,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:42:29,831 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:42:29,831 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:42:29,831 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:42:29,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:42:29,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:42:29,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:42:29,831 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:42:29,831 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:42:29,831 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:42:29,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:42:29,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:42:29,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:42:29,831 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:42:29,831 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:42:29,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:42:44,841 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:42:44,841 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:42:44,841 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:42:44,841 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:42:44,841 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:42:44,841 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:43:29,818 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:43:29,819 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:43:29,819 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 43, 29, 818463))
2025-04-29 08:43:29,820 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:43:44,819 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:43:44,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:43:44,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:43:44,819 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:43:44,819 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:43:44,819 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:43:44,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:43:44,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:43:44,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:43:44,819 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:43:44,819 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:43:44,819 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:43:44,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:43:44,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:43:44,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:43:44,819 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:43:44,819 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:43:44,819 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:43:44,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:43:44,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:43:44,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:43:44,819 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:43:44,819 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:43:44,826 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:43:59,819 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:43:59,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:43:59,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:43:59,819 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:43:59,819 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:43:59,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:44:12,272 - app - INFO - 应用程序关闭中...
2025-04-29 08:44:12,273 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 08:44:12,273 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 08:44:12,273 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 08:44:12,273 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 08:44:12,273 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 08:44:12,273 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 08:44:12,273 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 08:44:12,273 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 08:44:12,273 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 08:44:12,273 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 08:44:12,273 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:44:12,273 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:44:12,273 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:44:12,273 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:44:12,273 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:44:12,273 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-29 08:44:12,273 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:44:12,273 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:44:12,273 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-29 08:44:12,273 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:44:12,273 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:44:12,273 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-29 08:44:12,273 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:44:12,273 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:44:12,273 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-29 08:44:12,273 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 08:44:12,273 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 08:44:12,273 - app - INFO - 增强版任务调度器已停止
2025-04-29 08:44:12,273 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 08:44:12,273 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 08:44:12,273 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 08:44:12,273 - data.session - INFO - 数据库连接已关闭
2025-04-29 08:44:14,234 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:44:14,308 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:44:14,308 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:44:15,034 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:44:15,099 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:44:15,099 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:44:15,167 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:44:15,220 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:44:15,247 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:44:15,271 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:44:15,271 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:44:15,271 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:44:15,271 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:44:15,271 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:44:15,271 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:44:15,271 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:15,271 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:44:15,271 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:44:15,279 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:44:15,279 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:44:15,279 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:44:15,279 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:44:15,279 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:44:15,279 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:44:15,279 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:44:15,279 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:44:15,286 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:44:15,287 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:44:15,287 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:44:15,287 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:44:15,287 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:44:15,287 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:44:15,287 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:44:15,287 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:44:15,287 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:44:15,287 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:44:15,287 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:44:15,296 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:44:15,296 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:15,296 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:44:15,666 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 08:44:15,666 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 08:44:15,666 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 08:44:15,666 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 08:44:15,666 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 08:44:15,666 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 08:44:15,666 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 08:44:15,666 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 08:44:15,666 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 08:44:15,666 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 08:44:15,666 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:44:15,666 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 08:44:15,666 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 08:44:15,666 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:44:15,666 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:44:15,666 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:44:15,666 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:44:15,666 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:44:15,666 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 08:44:15,666 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 08:44:15,666 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:44:15,666 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:44:15,666 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:44:15,666 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:44:15,666 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:44:15,666 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:44:15,666 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:44:15,682 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:15,682 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 08:44:15,682 - sqlalchemy.engine.Engine - INFO - [generated in 0.00072s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 08:44:15,692 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 08:44:15,692 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:15,692 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 08:44:15,696 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 08:44:15,696 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 08:44:15,696 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:15,697 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 08:44:15,697 - sqlalchemy.engine.Engine - INFO - [generated in 0.00056s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 08:44:15,697 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:44:15,697 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:15,697 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:15,697 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:44:15,697 - sqlalchemy.engine.Engine - INFO - [generated in 0.00062s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 44, 15, 696313))
2025-04-29 08:44:15,697 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 08:44:15,697 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 08:44:15,697 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 08:44:15,697 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 08:44:15,697 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:20,646 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 08:44:20,646 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:20,646 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:44:20,646 - sqlalchemy.engine.Engine - INFO - [generated in 0.00076s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:44:20,656 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:20,656 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:20,656 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:44:20,656 - sqlalchemy.engine.Engine - INFO - [cached since 0.004661s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:44:20,656 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:20,656 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 08:44:20,656 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 08:44:20,656 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 08:44:20,663 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:20,664 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 08:44:20,664 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] (None, datetime.datetime(2025, 4, 29, 8, 44, 20, 664214), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 08:44:20,664 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:20,679 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:20,679 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:44:20,679 - sqlalchemy.engine.Engine - INFO - [cached since 0.02562s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:44:20,679 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:44:20,679 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] ('f14812cc-b085-4d04-8fba-18d3729207b1', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 3, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (290 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 8, 44, 20, 656849), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 8, 44, 20, 679983), datetime.datetime(2025, 4, 29, 8, 44, 20, 679983), 0)
2025-04-29 08:44:20,679 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:20,690 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:20,690 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:44:20,690 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] ('f14812cc-b085-4d04-8fba-18d3729207b1',)
2025-04-29 08:44:20,696 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:20,696 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 f14812cc-b085-4d04-8fba-18d3729207b1 (优先级 1) 添加到队列 0
2025-04-29 08:44:20,706 - services.sync_service - INFO - 正在同步创建任务到天风系统: f14812cc-b085-4d04-8fba-18d3729207b1
2025-04-29 08:44:20,706 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"f14812cc-b085-4d04-8fba-18d3729207b1","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 08:44:20","sceneId":"1912043207186550785","needAmr":1}
2025-04-29 08:44:20,747 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: f14812cc-b085-4d04-8fba-18d3729207b1, 优先级: 1
2025-04-29 08:44:20,747 - services.execution.task_executor - DEBUG - 任务 f14812cc-b085-4d04-8fba-18d3729207b1 设置超时时间: 3600秒
2025-04-29 08:44:20,747 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:20,747 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:44:20,747 - sqlalchemy.engine.Engine - INFO - [cached since 0.05863s ago] ('f14812cc-b085-4d04-8fba-18d3729207b1',)
2025-04-29 08:44:20,756 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:44:20,756 - sqlalchemy.engine.Engine - INFO - [cached since 0.1042s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:44:20,756 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 08:44:20,764 - sqlalchemy.engine.Engine - INFO - [generated in 0.00238s] (datetime.datetime(2025, 4, 29, 8, 44, 20, 756732), datetime.datetime(2025, 4, 29, 8, 44, 20, 756732), 'f14812cc-b085-4d04-8fba-18d3729207b1')
2025-04-29 08:44:20,765 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:20,767 - services.sync_service - INFO - 成功同步任务到系统任务: f14812cc-b085-4d04-8fba-18d3729207b1
2025-04-29 08:44:20,774 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: f14812cc-b085-4d04-8fba-18d3729207b1
2025-04-29 08:44:20,774 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: f14812cc-b085-4d04-8fba-18d3729207b1
2025-04-29 08:44:20,774 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1272秒
2025-04-29 08:44:20,782 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:20,782 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 08:44:20,782 - sqlalchemy.engine.Engine - INFO - [generated in 0.00099s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 44, 20, 782095), 'f14812cc-b085-4d04-8fba-18d3729207b1')
2025-04-29 08:44:20,782 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:20,797 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 08:44:20,797 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:20,807 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:44:20,807 - sqlalchemy.engine.Engine - INFO - [generated in 0.00143s] ('aa3eb627-bc91-47de-ad94-98fd146a96b5', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'f14812cc-b085-4d04-8fba-18d3729207b1', datetime.datetime(2025, 4, 29, 8, 44, 20, 797426), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 8, 44, 20, 807636), datetime.datetime(2025, 4, 29, 8, 44, 20, 807636), 0)
2025-04-29 08:44:20,814 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:20,820 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:20,820 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:44:20,820 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] ('aa3eb627-bc91-47de-ad94-98fd146a96b5',)
2025-04-29 08:44:20,826 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 08:44:20,826 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 08:44:20,826 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:44:20,826 - sqlalchemy.engine.Engine - INFO - [generated in 0.00076s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 8, 44, 20, 826296), 'aa3eb627-bc91-47de-ad94-98fd146a96b5')
2025-04-29 08:44:20,829 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:20,836 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 08:44:20,837 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 08:44:20,838 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-29 08:44:20,841 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:20,843 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:44:20,844 - sqlalchemy.engine.Engine - INFO - [cached since 0.03441s ago] ('f59c0cfb-e798-43a6-8a0c-ebc9070ab0f8', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"priority": "10", "keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'f14812cc-b085-4d04-8fba-18d3729207b1', datetime.datetime(2025, 4, 29, 8, 44, 20, 839619), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 29, 8, 44, 20, 843620), datetime.datetime(2025, 4, 29, 8, 44, 20, 843620), 0)
2025-04-29 08:44:20,846 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:20,853 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: f59c0cfb-e798-43a6-8a0c-ebc9070ab0f8
2025-04-29 08:44:20,853 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:20,854 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:44:20,854 - sqlalchemy.engine.Engine - INFO - [cached since 0.03109s ago] ('f59c0cfb-e798-43a6-8a0c-ebc9070ab0f8',)
2025-04-29 08:44:20,854 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 08:44:20,854 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 08:44:20,854 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:44:20,863 - sqlalchemy.engine.Engine - INFO - [cached since 0.03554s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 29, 8, 44, 20, 854611), 'f59c0cfb-e798-43a6-8a0c-ebc9070ab0f8')
2025-04-29 08:44:20,864 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:20,877 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-29 08:44:20,877 - services.sync_service - INFO - 正在创建选择AMR任务: f14812cc-b085-4d04-8fba-18d3729207b1, 站点: TK01
2025-04-29 08:44:20,899 - services.sync_service - INFO - 成功为任务选择AMR: f14812cc-b085-4d04-8fba-18d3729207b1, AMR: None
2025-04-29 08:44:20,899 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917017071510872066 的AMR选择结果
2025-04-29 08:44:20,899 - services.sync_service - INFO - 开始等待任务块 1917017071510872066 的AMR选择结果
2025-04-29 08:44:20,899 - services.sync_service - INFO - 正在获取任务块详情: 1917017071510872066
2025-04-29 08:44:20,929 - services.sync_service - INFO - 成功获取任务块详情: 1917017071510872066 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917017071510872066', 'taskId': '1917017070957223938', 'tenantId': 1000, 'vwedTaskId': 'f14812cc-b085-4d04-8fba-18d3729207b1', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 08:44:21', 'updateTime': None}, 'timestamp': 1745887460987}
2025-04-29 08:44:20,929 - services.sync_service - DEBUG - 任务块 1917017071510872066 AMR选择未完成，继续等待，已重试 1 次
2025-04-29 08:44:21,434 - services.sync_service - INFO - 正在获取任务块详情: 1917017071510872066
2025-04-29 08:44:21,477 - services.sync_service - INFO - 成功获取任务块详情: 1917017071510872066 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917017071510872066', 'taskId': '1917017070957223938', 'tenantId': 1000, 'vwedTaskId': 'f14812cc-b085-4d04-8fba-18d3729207b1', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 08:44:21', 'updateTime': None}, 'timestamp': 1745887461538}
2025-04-29 08:44:21,477 - services.sync_service - DEBUG - 任务块 1917017071510872066 AMR选择未完成，继续等待，已重试 2 次
2025-04-29 08:44:21,763 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:21,763 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:44:21,764 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] ('f14812cc-b085-4d04-8fba-18d3729207b1',)
2025-04-29 08:44:21,764 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:21,979 - services.sync_service - INFO - 正在获取任务块详情: 1917017071510872066
2025-04-29 08:44:22,009 - services.sync_service - INFO - 成功获取任务块详情: 1917017071510872066 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917017071510872066', 'taskId': '1917017070957223938', 'tenantId': 1000, 'vwedTaskId': 'f14812cc-b085-4d04-8fba-18d3729207b1', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 08:44:21', 'updateTime': None}, 'timestamp': 1745887462071}
2025-04-29 08:44:22,009 - services.sync_service - DEBUG - 任务块 1917017071510872066 AMR选择未完成，继续等待，已重试 3 次
2025-04-29 08:44:22,515 - services.sync_service - INFO - 正在获取任务块详情: 1917017071510872066
2025-04-29 08:44:22,549 - services.sync_service - INFO - 成功获取任务块详情: 1917017071510872066 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917017071510872066', 'taskId': '1917017070957223938', 'tenantId': 1000, 'vwedTaskId': 'f14812cc-b085-4d04-8fba-18d3729207b1', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 08:44:21', 'updateTime': None}, 'timestamp': 1745887462611}
2025-04-29 08:44:22,549 - services.sync_service - DEBUG - 任务块 1917017071510872066 AMR选择未完成，继续等待，已重试 4 次
2025-04-29 08:44:22,759 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:22,760 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:44:22,760 - sqlalchemy.engine.Engine - INFO - [cached since 0.9982s ago] ('f14812cc-b085-4d04-8fba-18d3729207b1',)
2025-04-29 08:44:22,760 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:23,063 - services.sync_service - INFO - 正在获取任务块详情: 1917017071510872066
2025-04-29 08:44:23,113 - services.sync_service - INFO - 成功获取任务块详情: 1917017071510872066 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917017071510872066', 'taskId': '1917017070957223938', 'tenantId': 1000, 'vwedTaskId': 'f14812cc-b085-4d04-8fba-18d3729207b1', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 08:44:21', 'updateTime': None}, 'timestamp': 1745887463173}
2025-04-29 08:44:23,113 - services.sync_service - DEBUG - 任务块 1917017071510872066 AMR选择未完成，继续等待，已重试 5 次
2025-04-29 08:44:23,617 - services.sync_service - INFO - 正在获取任务块详情: 1917017071510872066
2025-04-29 08:44:23,633 - services.sync_service - INFO - 成功获取任务块详情: 1917017071510872066 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917017071510872066', 'taskId': '1917017070957223938', 'tenantId': 1000, 'vwedTaskId': 'f14812cc-b085-4d04-8fba-18d3729207b1', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 08:44:21', 'updateTime': None}, 'timestamp': 1745887463699}
2025-04-29 08:44:23,633 - services.sync_service - DEBUG - 任务块 1917017071510872066 AMR选择未完成，继续等待，已重试 6 次
2025-04-29 08:44:23,761 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:23,761 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:44:23,761 - sqlalchemy.engine.Engine - INFO - [cached since 2s ago] ('f14812cc-b085-4d04-8fba-18d3729207b1',)
2025-04-29 08:44:23,761 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:24,158 - services.sync_service - INFO - 正在获取任务块详情: 1917017071510872066
2025-04-29 08:44:24,189 - services.sync_service - INFO - 成功获取任务块详情: 1917017071510872066 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917017071510872066', 'taskId': '1917017070957223938', 'tenantId': 1000, 'vwedTaskId': 'f14812cc-b085-4d04-8fba-18d3729207b1', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 08:44:21', 'updateTime': None}, 'timestamp': 1745887464249}
2025-04-29 08:44:24,189 - services.sync_service - DEBUG - 任务块 1917017071510872066 AMR选择未完成，继续等待，已重试 7 次
2025-04-29 08:44:24,721 - services.sync_service - INFO - 正在获取任务块详情: 1917017071510872066
2025-04-29 08:44:24,754 - services.sync_service - INFO - 成功获取任务块详情: 1917017071510872066 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917017071510872066', 'taskId': '1917017070957223938', 'tenantId': 1000, 'vwedTaskId': 'f14812cc-b085-4d04-8fba-18d3729207b1', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 08:44:21', 'updateTime': None}, 'timestamp': 1745887464815}
2025-04-29 08:44:24,754 - services.sync_service - DEBUG - 任务块 1917017071510872066 AMR选择未完成，继续等待，已重试 8 次
2025-04-29 08:44:24,754 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:24,754 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:44:24,754 - sqlalchemy.engine.Engine - INFO - [cached since 2.993s ago] ('f14812cc-b085-4d04-8fba-18d3729207b1',)
2025-04-29 08:44:24,754 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:25,255 - services.sync_service - INFO - 正在获取任务块详情: 1917017071510872066
2025-04-29 08:44:25,296 - services.sync_service - INFO - 成功获取任务块详情: 1917017071510872066 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917017071510872066', 'taskId': '1917017070957223938', 'tenantId': 1000, 'vwedTaskId': 'f14812cc-b085-4d04-8fba-18d3729207b1', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 08:44:21', 'updateTime': None}, 'timestamp': 1745887465357}
2025-04-29 08:44:25,296 - services.sync_service - DEBUG - 任务块 1917017071510872066 AMR选择未完成，继续等待，已重试 9 次
2025-04-29 08:44:25,764 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:25,764 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:44:25,766 - sqlalchemy.engine.Engine - INFO - [cached since 4.003s ago] ('f14812cc-b085-4d04-8fba-18d3729207b1',)
2025-04-29 08:44:25,766 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:25,793 - services.sync_service - INFO - 正在获取任务块详情: 1917017071510872066
2025-04-29 08:44:25,814 - services.sync_service - INFO - 成功获取任务块详情: 1917017071510872066 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917017071510872066', 'taskId': '1917017070957223938', 'tenantId': 1000, 'vwedTaskId': 'f14812cc-b085-4d04-8fba-18d3729207b1', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 08:44:21', 'updateTime': None}, 'timestamp': 1745887465874}
2025-04-29 08:44:25,814 - services.sync_service - DEBUG - 任务块 1917017071510872066 AMR选择未完成，继续等待，已重试 10 次
2025-04-29 08:44:26,321 - services.sync_service - INFO - 正在获取任务块详情: 1917017071510872066
2025-04-29 08:44:26,353 - services.sync_service - INFO - 成功获取任务块详情: 1917017071510872066 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917017071510872066', 'taskId': '1917017070957223938', 'tenantId': 1000, 'vwedTaskId': 'f14812cc-b085-4d04-8fba-18d3729207b1', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 08:44:21', 'updateTime': None}, 'timestamp': 1745887466404}
2025-04-29 08:44:26,353 - services.sync_service - DEBUG - 任务块 1917017071510872066 AMR选择未完成，继续等待，已重试 11 次
2025-04-29 08:44:26,782 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:26,783 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:44:26,784 - sqlalchemy.engine.Engine - INFO - [cached since 5.021s ago] ('f14812cc-b085-4d04-8fba-18d3729207b1',)
2025-04-29 08:44:26,784 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:26,876 - services.sync_service - INFO - 正在获取任务块详情: 1917017071510872066
2025-04-29 08:44:26,895 - services.sync_service - INFO - 成功获取任务块详情: 1917017071510872066 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917017071510872066', 'taskId': '1917017070957223938', 'tenantId': 1000, 'vwedTaskId': 'f14812cc-b085-4d04-8fba-18d3729207b1', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 08:44:21', 'updateTime': '2025-04-29 08:44:27'}, 'timestamp': 1745887466958}
2025-04-29 08:44:26,895 - services.sync_service - INFO - 任务块 1917017071510872066 已选择AMR: 1912328602264645634，共尝试 12 次
2025-04-29 08:44:26,895 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-29 08:44:26,895 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: []
2025-04-29 08:44:26,895 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-29 08:44:26,895 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 0 个
2025-04-29 08:44:26,895 - services.sync_service - INFO - 正在封口任务: f14812cc-b085-4d04-8fba-18d3729207b1
2025-04-29 08:44:26,935 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-29 08:44:26,939 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:26,939 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:44:26,939 - sqlalchemy.engine.Engine - INFO - [generated in 0.00070s] ('5050bbcf-41e9-4efa-8959-43d845ba0427', 1, '{"success": true, "message": "选择执行机器人成功: 1912328602264645634", "code": 200, "result": {"taskBlockId": "1917017071510872066"}, "timestamp": 1745887460963}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'f14812cc-b085-4d04-8fba-18d3729207b1', datetime.datetime(2025, 4, 29, 8, 44, 26, 939492), datetime.datetime(2025, 4, 29, 8, 44, 26, 939492), 0)
2025-04-29 08:44:26,942 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:26,953 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:26,953 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:44:26,960 - sqlalchemy.engine.Engine - INFO - [cached since 6.136s ago] ('f59c0cfb-e798-43a6-8a0c-ebc9070ab0f8',)
2025-04-29 08:44:26,961 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 08:44:26,961 - services.execution.block_executor - INFO - 为块 b1 存储输出: ['selectedAgvId']
2025-04-29 08:44:26,968 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:44:26,968 - sqlalchemy.engine.Engine - INFO - [generated in 0.00179s] ('{"selectedAgvId": "1912328602264645634"}', datetime.datetime(2025, 4, 29, 8, 44, 26, 961988), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '{"blocks": {"b1": {"selectedAgvId": "1912328602264645634"}}}', '执行成功', datetime.datetime(2025, 4, 29, 8, 44, 26, 967814), 'f59c0cfb-e798-43a6-8a0c-ebc9070ab0f8')
2025-04-29 08:44:26,968 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:26,978 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:26,979 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:44:26,979 - sqlalchemy.engine.Engine - INFO - [cached since 0.03903s ago] ('ba3f1609-0a9f-44d6-a7b2-b8d3054aeec0', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {}}]}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'f14812cc-b085-4d04-8fba-18d3729207b1', datetime.datetime(2025, 4, 29, 8, 44, 26, 979382), datetime.datetime(2025, 4, 29, 8, 44, 26, 979382), 0)
2025-04-29 08:44:26,980 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:26,987 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:26,987 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:44:26,988 - sqlalchemy.engine.Engine - INFO - [cached since 6.164s ago] ('aa3eb627-bc91-47de-ad94-98fd146a96b5',)
2025-04-29 08:44:26,988 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 08:44:26,989 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 08:44:26,991 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:44:26,992 - sqlalchemy.engine.Engine - INFO - [generated in 0.00101s] (datetime.datetime(2025, 4, 29, 8, 44, 26, 990518), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 8, 44, 26, 991518), 'aa3eb627-bc91-47de-ad94-98fd146a96b5')
2025-04-29 08:44:26,994 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:27,003 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:44:27,004 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 08:44:27,005 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (datetime.datetime(2025, 4, 29, 8, 44, 27, 2911), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 6222, 1, datetime.datetime(2025, 4, 29, 8, 44, 27, 4799), 'f14812cc-b085-4d04-8fba-18d3729207b1')
2025-04-29 08:44:27,006 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:44:27,011 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: f14812cc-b085-4d04-8fba-18d3729207b1, 结果: True
2025-04-29 08:45:15,705 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:45:15,706 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:45:15,707 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 45, 15, 704949))
2025-04-29 08:45:15,707 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:45:30,674 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:45:30,674 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:45:30,674 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:45:30,674 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:45:30,674 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:45:30,674 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:45:30,680 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:45:30,680 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:45:30,680 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:45:30,680 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:45:30,680 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:45:30,692 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:45:30,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:45:30,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:45:30,694 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:45:30,695 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:45:30,697 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:45:30,697 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:45:30,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:45:30,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:45:30,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:45:30,697 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:45:30,707 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:45:30,707 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:45:30,714 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:45:30,714 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:45:30,714 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:45:30,714 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:45:30,714 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:45:30,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:46:15,709 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:46:15,709 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:46:15,710 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 46, 15, 708711))
2025-04-29 08:46:15,711 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:46:30,735 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:46:30,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:46:30,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:46:30,738 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:46:30,741 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:46:30,741 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:46:30,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:46:30,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:46:30,751 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:46:30,751 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:46:30,751 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:46:30,751 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:46:30,751 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:46:30,751 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:46:30,751 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:46:30,751 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:46:30,751 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:46:30,751 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:46:30,751 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:46:30,751 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:46:30,751 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:46:30,751 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:46:30,751 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:46:30,751 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:46:30,768 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:46:30,768 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:46:30,769 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:46:30,769 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:46:30,769 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:46:30,785 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:47:15,713 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:47:15,713 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:47:15,713 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 47, 15, 712438))
2025-04-29 08:47:15,713 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:47:30,771 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:47:30,771 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:47:30,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:47:30,773 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:47:30,773 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:47:30,773 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:47:30,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:47:30,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:47:30,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:47:30,773 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:47:30,773 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:47:30,773 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:47:30,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:47:30,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:47:30,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:47:30,773 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:47:30,773 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:47:30,773 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:47:30,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:47:30,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:47:30,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:47:30,773 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:47:30,773 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:47:30,773 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:47:30,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:47:30,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:47:30,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:47:30,773 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:47:30,773 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:47:30,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:48:15,718 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:48:15,718 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:48:15,718 - sqlalchemy.engine.Engine - INFO - [cached since 240s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 48, 15, 718135))
2025-04-29 08:48:15,718 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:48:30,777 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:48:30,778 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:48:30,778 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:48:30,778 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:48:30,778 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:48:30,784 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:48:30,784 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:48:30,784 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:48:30,784 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:48:30,784 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:48:30,784 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:48:30,784 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:48:30,784 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:48:30,784 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:48:30,784 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:48:30,784 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:48:30,784 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:48:30,784 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:48:30,784 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:48:30,784 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:48:30,784 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:48:30,784 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:48:30,784 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:48:30,784 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:48:30,784 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:48:30,784 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:48:30,784 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:48:30,784 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:48:30,784 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:48:30,794 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:49:15,706 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:49:15,707 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:49:15,707 - sqlalchemy.engine.Engine - INFO - [cached since 300s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 49, 15, 706092))
2025-04-29 08:49:15,708 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:49:30,803 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:49:30,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:49:30,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:49:30,804 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:49:30,804 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:49:30,804 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:49:30,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:49:30,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:49:30,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:49:30,804 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:49:30,804 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:49:30,804 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:49:30,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:49:30,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:49:30,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:49:30,804 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:49:30,804 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:49:30,804 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:49:30,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:49:30,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:49:30,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:49:30,804 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:49:30,804 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:49:30,804 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:49:30,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:49:30,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:49:30,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:49:30,804 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:49:30,804 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:49:30,815 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:50:15,692 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:50:15,694 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:50:15,694 - sqlalchemy.engine.Engine - INFO - [cached since 360s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 50, 15, 692779))
2025-04-29 08:50:15,694 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:50:15,910 - app - INFO - 应用程序关闭中...
2025-04-29 08:50:15,910 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 08:50:15,910 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 08:50:15,910 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 08:50:15,910 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 08:50:15,910 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 08:50:15,911 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 08:50:15,911 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 08:50:15,911 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 08:50:15,911 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 08:50:15,911 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 08:50:15,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:50:15,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:50:15,911 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:50:15,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:50:15,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:50:15,913 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 08:50:15,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:50:15,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:50:15,913 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 08:50:15,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:50:15,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:50:15,913 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 08:50:15,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:50:15,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:50:15,913 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 08:50:15,915 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 08:50:15,915 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 08:50:15,915 - app - INFO - 增强版任务调度器已停止
2025-04-29 08:50:15,915 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 08:50:15,915 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 08:50:15,915 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 08:50:15,915 - data.session - INFO - 数据库连接已关闭
2025-04-29 08:50:17,217 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:50:17,300 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:50:17,300 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:50:17,374 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:50:17,442 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:50:17,458 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:50:17,474 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:50:17,474 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:17,474 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:50:17,474 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:17,474 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:50:17,474 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:17,474 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:50:17,474 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:50:17,474 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:17,474 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:50:17,474 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:17,474 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:50:17,474 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:17,474 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:50:17,474 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:17,474 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:50:17,474 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:17,474 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:50:17,474 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:17,474 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:50:17,474 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:17,474 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:50:17,474 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:17,474 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:50:17,474 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:17,490 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:50:17,490 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:17,490 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:50:17,490 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:17,490 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:50:17,495 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:50:17,854 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 08:50:17,854 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 08:50:17,854 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 08:50:17,854 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 08:50:17,854 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 08:50:17,854 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 08:50:17,854 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 08:50:17,854 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 08:50:17,854 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 08:50:17,854 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 08:50:17,854 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:50:17,854 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 08:50:17,854 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 08:50:17,854 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:50:17,854 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:50:17,854 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:50:17,854 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:50:17,854 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:50:17,854 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 08:50:17,854 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 08:50:17,870 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:50:17,870 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:50:17,870 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:50:17,870 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:50:17,870 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:50:17,870 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:50:17,870 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:50:17,870 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:50:17,886 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 08:50:17,886 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 08:50:17,886 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 08:50:17,886 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:50:17,886 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 08:50:17,886 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 08:50:17,886 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 08:50:17,886 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:50:17,886 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 08:50:17,886 - sqlalchemy.engine.Engine - INFO - [generated in 0.00056s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 08:50:17,917 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:50:17,918 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:50:17,918 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 08:50:17,918 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 08:50:17,918 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 08:50:17,918 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 08:50:17,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:50:17,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:50:17,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:50:17,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:50:17,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:50:17,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:50:17,918 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 08:50:17,918 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 08:50:17,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:50:17,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:50:17,918 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 08:50:17,918 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 08:50:17,918 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 08:50:17,918 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 08:50:17,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:50:17,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:50:17,918 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 08:50:17,918 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 08:50:18,728 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:50:18,790 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:50:18,790 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:50:18,852 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:50:18,907 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:50:18,928 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:50:18,938 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:50:18,938 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:18,938 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:50:18,938 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:18,938 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:50:18,938 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:18,938 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:50:18,938 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:50:18,938 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:18,938 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:50:18,938 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:18,938 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:50:18,938 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:18,938 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:50:18,938 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:18,938 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:50:18,948 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:18,948 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:50:18,948 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:18,950 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:50:18,950 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:18,950 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:50:18,950 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:18,950 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:50:18,950 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:18,952 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:50:18,952 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:18,952 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:50:18,952 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:50:18,954 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:50:18,954 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:50:19,308 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 08:50:19,308 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 08:50:19,308 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 08:50:19,308 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 08:50:19,308 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 08:50:19,308 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 08:50:19,308 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 08:50:19,311 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 08:50:19,311 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 08:50:19,311 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 08:50:19,312 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:50:19,312 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 08:50:19,312 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 08:50:19,314 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:50:19,314 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:50:19,314 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:50:19,314 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:50:19,314 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:50:19,314 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 08:50:19,314 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 08:50:19,328 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:50:19,328 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:50:19,328 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:50:19,328 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:50:19,328 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:50:19,328 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:50:19,328 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:50:19,328 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:50:19,343 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 08:50:19,344 - sqlalchemy.engine.Engine - INFO - [generated in 0.00162s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 08:50:19,344 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 08:50:19,344 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:50:19,347 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 08:50:19,347 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 08:50:19,348 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 08:50:19,348 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:50:19,348 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 08:50:19,348 - sqlalchemy.engine.Engine - INFO - [generated in 0.00067s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 08:50:19,348 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:50:19,348 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:50:19,348 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 08:50:19,348 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 08:50:19,348 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 08:50:19,348 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 08:50:19,348 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:50:19,348 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:50:19,348 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 50, 19, 348799))
2025-04-29 08:50:19,348 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:51:19,329 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:51:19,329 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:51:19,330 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:51:19,330 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:51:19,330 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:51:19,330 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:51:19,330 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:51:19,330 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:51:19,330 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:51:19,330 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:51:19,330 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:51:19,330 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:51:19,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:51:19,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:51:19,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:51:19,332 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:51:19,332 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:51:19,332 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:51:19,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:51:19,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:51:19,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:51:19,333 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:51:19,333 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:51:19,333 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:51:19,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:51:19,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:51:19,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:51:19,334 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:51:19,334 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:51:19,338 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:51:19,366 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:51:19,369 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:51:19,369 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 51, 19, 366199))
2025-04-29 08:51:19,371 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:51:19,499 - app - INFO - 应用程序关闭中...
2025-04-29 08:51:19,501 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 08:51:19,501 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 08:51:19,501 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 08:51:19,501 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 08:51:19,502 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 08:51:19,502 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 08:51:19,502 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 08:51:19,502 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 08:51:19,503 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 08:51:19,503 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 08:51:19,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:51:19,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:51:19,504 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:51:19,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:51:19,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:51:19,504 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 08:51:19,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:51:19,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:51:19,505 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 08:51:19,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:51:19,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:51:19,505 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 08:51:19,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:51:19,506 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:51:19,506 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 08:51:19,506 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 08:51:19,506 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 08:51:19,506 - app - INFO - 增强版任务调度器已停止
2025-04-29 08:51:19,506 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 08:51:19,506 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 08:51:19,506 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 08:51:19,507 - data.session - INFO - 数据库连接已关闭
2025-04-29 08:51:20,606 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:51:20,668 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:51:20,674 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:51:20,737 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:51:20,781 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:51:20,812 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:51:20,830 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:51:20,831 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:51:20,832 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:51:20,833 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:51:20,833 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:51:20,833 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:51:20,834 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:51:20,834 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:51:20,834 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:51:20,835 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:51:20,835 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:51:20,837 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:51:20,837 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:51:20,838 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:51:20,838 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:51:20,839 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:51:20,839 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:51:20,840 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:51:20,840 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:51:20,841 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:51:20,841 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:51:20,842 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:51:20,842 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:51:20,843 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:51:20,844 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:51:20,845 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:51:20,845 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:51:20,846 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:51:20,846 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:51:20,847 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:51:20,847 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:51:21,192 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 08:51:21,192 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 08:51:21,192 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 08:51:21,193 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 08:51:21,193 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 08:51:21,193 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 08:51:21,193 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 08:51:21,194 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 08:51:21,194 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 08:51:21,194 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 08:51:21,195 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:51:21,195 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 08:51:21,195 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 08:51:21,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:51:21,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:51:21,197 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:51:21,197 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:51:21,197 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:51:21,197 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 08:51:21,197 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 08:51:21,198 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:51:21,199 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:51:21,199 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:51:21,200 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:51:21,200 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:51:21,201 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:51:21,201 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:51:21,201 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:51:21,209 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 08:51:21,210 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 08:51:21,211 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 08:51:21,211 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:51:21,215 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 08:51:21,216 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 08:51:21,218 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 08:51:21,219 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:51:21,221 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 08:51:21,221 - sqlalchemy.engine.Engine - INFO - [generated in 0.00059s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 08:51:21,232 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:51:21,233 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:51:21,233 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 08:51:21,233 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 08:51:21,233 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 08:51:21,233 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 08:51:21,235 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:51:21,237 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:51:21,238 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 51, 21, 219112))
2025-04-29 08:51:21,239 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:52:21,214 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:52:21,214 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:52:21,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:52:21,215 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:52:21,215 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:52:21,215 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:52:21,216 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:52:21,216 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:52:21,216 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:52:21,216 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:52:21,216 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:52:21,216 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:52:21,216 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:52:21,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:52:21,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:52:21,217 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:52:21,217 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:52:21,217 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:52:21,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:52:21,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:52:21,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:52:21,217 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:52:21,217 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:52:21,217 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:52:21,218 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:52:21,218 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:52:21,218 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:52:21,218 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:52:21,218 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:52:21,224 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:52:21,225 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:52:21,226 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:52:21,226 - sqlalchemy.engine.Engine - INFO - [cached since 59.99s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 52, 21, 224349))
2025-04-29 08:52:21,228 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:53:21,235 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:53:21,237 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:53:21,240 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:53:21,242 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:53:21,246 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:53:21,246 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:53:21,247 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:53:21,247 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:53:21,247 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 53, 21, 235801))
2025-04-29 08:53:21,248 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:53:21,248 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:53:21,248 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:53:21,248 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:53:21,249 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:53:21,249 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:53:21,249 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:53:21,249 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:53:21,249 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:53:21,250 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:53:21,250 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:53:21,250 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:53:21,250 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:53:21,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:53:21,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:53:21,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:53:21,250 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:53:21,250 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:53:21,250 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:53:21,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:53:21,252 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:53:21,252 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:53:21,252 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:53:21,252 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:53:21,257 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:53:21,373 - app - INFO - 应用程序关闭中...
2025-04-29 08:53:21,373 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 08:53:21,374 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 08:53:21,374 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 08:53:21,374 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 08:53:21,374 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 08:53:21,375 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 08:53:21,375 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 08:53:21,375 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 08:53:21,375 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 08:53:21,375 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 08:53:21,375 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:53:21,375 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:53:21,376 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:53:21,376 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:53:21,376 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:53:21,376 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 08:53:21,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:53:21,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:53:21,377 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 08:53:21,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:53:21,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:53:21,377 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 08:53:21,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:53:21,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:53:21,377 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 08:53:21,378 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 08:53:21,378 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 08:53:21,378 - app - INFO - 增强版任务调度器已停止
2025-04-29 08:53:21,378 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 08:53:21,379 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 08:53:21,379 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 08:53:21,379 - data.session - INFO - 数据库连接已关闭
2025-04-29 08:53:22,478 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:53:22,537 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:53:22,539 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:53:22,595 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:53:22,640 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:53:22,671 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:53:22,695 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:53:22,696 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:53:22,697 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:53:22,698 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:53:22,698 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:53:22,699 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:53:22,699 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:53:22,701 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:53:22,701 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:53:22,703 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:53:22,703 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:53:22,704 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:53:22,704 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:53:22,705 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:53:22,705 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:53:22,706 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:53:22,706 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:53:22,707 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:53:22,707 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:53:22,708 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:53:22,708 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:53:22,708 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:53:22,708 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:53:22,710 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:53:22,710 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:53:22,711 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:53:22,712 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:53:22,713 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:53:22,713 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:53:22,714 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:53:22,714 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:53:23,063 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 08:53:23,064 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 08:53:23,064 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 08:53:23,066 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 08:53:23,066 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 08:53:23,069 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 08:53:23,070 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 08:53:23,070 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 08:53:23,071 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 08:53:23,071 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 08:53:23,072 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:53:23,072 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 08:53:23,072 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 08:53:23,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:53:23,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:53:23,075 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:53:23,075 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:53:23,076 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:53:23,076 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 08:53:23,077 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 08:53:23,091 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:53:23,093 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:53:23,094 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:53:23,095 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:53:23,096 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:53:23,097 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:53:23,097 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:53:23,098 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:53:23,108 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 08:53:23,110 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 08:53:23,111 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 08:53:23,111 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:53:23,112 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 08:53:23,113 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 08:53:23,113 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 08:53:23,114 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:53:23,115 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 08:53:23,116 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 08:53:23,134 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:53:23,136 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:53:23,136 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 08:53:23,137 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 08:53:23,138 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 08:53:23,138 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 08:53:23,139 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:53:23,140 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:53:23,140 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 53, 23, 113070))
2025-04-29 08:53:23,141 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:54:23,111 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:54:23,115 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:54:23,116 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:54:23,117 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:54:23,118 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:54:23,119 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:54:23,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:54:23,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:54:23,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:54:23,120 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:54:23,120 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:54:23,122 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:54:23,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:54:23,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:54:23,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:54:23,124 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:54:23,124 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:54:23,124 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:54:23,124 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:54:23,124 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:54:23,124 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:54:23,124 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:54:23,124 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:54:23,124 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:54:23,125 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:54:23,125 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:54:23,125 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:54:23,125 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:54:23,125 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:54:23,129 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:54:23,160 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:54:23,165 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:54:23,171 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 54, 23, 160975))
2025-04-29 08:54:23,175 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:55:23,132 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:55:23,132 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:55:23,132 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:55:23,132 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:55:23,132 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:55:23,144 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:55:23,145 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:55:23,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:55:23,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:55:23,147 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:55:23,147 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:55:23,147 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:55:23,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:55:23,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:55:23,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:55:23,147 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:55:23,147 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:55:23,147 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:55:23,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:55:23,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:55:23,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:55:23,147 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:55:23,147 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:55:23,147 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:55:23,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:55:23,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:55:23,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:55:23,147 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:55:23,147 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:55:23,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:55:23,180 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:55:23,181 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:55:23,181 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 55, 23, 180554))
2025-04-29 08:55:23,181 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:55:23,364 - app - INFO - 应用程序关闭中...
2025-04-29 08:55:23,364 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 08:55:23,364 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 08:55:23,364 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 08:55:23,364 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 08:55:23,364 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 08:55:23,364 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 08:55:23,364 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 08:55:23,364 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 08:55:23,383 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 08:55:23,383 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 08:55:23,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:55:23,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:55:23,385 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:55:23,385 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:55:23,387 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:55:23,387 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 08:55:23,387 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:55:23,387 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:55:23,387 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 08:55:23,387 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:55:23,387 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:55:23,387 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 08:55:23,387 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:55:23,387 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:55:23,387 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 08:55:23,387 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 08:55:23,387 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 08:55:23,387 - app - INFO - 增强版任务调度器已停止
2025-04-29 08:55:23,387 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 08:55:23,387 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 08:55:23,387 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 08:55:23,387 - data.session - INFO - 数据库连接已关闭
2025-04-29 08:55:24,352 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:55:24,409 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:55:24,414 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:55:24,474 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:55:24,521 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:55:24,554 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:55:24,580 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:55:24,580 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:55:24,580 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:55:24,582 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:55:24,582 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:55:24,583 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:55:24,583 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:55:24,583 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:55:24,584 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:55:24,585 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:55:24,585 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:55:24,586 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:55:24,587 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:55:24,588 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:55:24,588 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:55:24,589 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:55:24,590 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:55:24,591 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:55:24,591 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:55:24,592 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:55:24,594 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:55:24,596 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:55:24,596 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:55:24,597 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:55:24,597 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:55:24,598 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:55:24,598 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:55:24,599 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:55:24,599 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:55:24,600 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:55:24,600 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:55:24,968 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 08:55:24,968 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 08:55:24,969 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 08:55:24,969 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 08:55:24,969 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 08:55:24,969 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 08:55:24,969 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 08:55:24,969 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 08:55:24,969 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 08:55:24,969 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 08:55:24,969 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:55:24,970 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 08:55:24,970 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 08:55:24,973 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:55:24,974 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:55:24,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:55:24,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:55:24,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:55:24,975 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 08:55:24,976 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 08:55:24,990 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:55:24,991 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:55:24,991 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:55:24,992 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:55:24,992 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:55:24,993 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:55:24,993 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:55:24,993 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:55:24,998 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 08:55:24,998 - sqlalchemy.engine.Engine - INFO - [generated in 0.00067s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 08:55:24,998 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 08:55:24,998 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:55:24,998 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 08:55:24,998 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 08:55:24,998 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 08:55:24,998 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:55:25,008 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 08:55:25,012 - sqlalchemy.engine.Engine - INFO - [generated in 0.00359s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 08:55:25,013 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:55:25,014 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 08:55:25,014 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 08:55:25,014 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 08:55:25,014 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 08:55:25,014 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:55:25,015 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:55:25,015 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:55:25,015 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 55, 24, 998826))
2025-04-29 08:55:25,015 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:56:24,988 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:56:24,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:56:24,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:56:24,989 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:56:24,991 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:56:24,993 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:56:24,997 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:56:25,000 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:56:25,000 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:56:25,001 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:56:25,002 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:56:25,002 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:56:25,003 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:56:25,004 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:56:25,004 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:56:25,004 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:56:25,004 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:56:25,005 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:56:25,007 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:56:25,008 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:56:25,009 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:56:25,010 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:56:25,011 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:56:25,012 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:56:25,012 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:56:25,012 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:56:25,012 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:56:25,013 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:56:25,013 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:56:25,014 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 56, 25, 7290))
2025-04-29 08:56:25,014 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:56:25,014 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:56:25,020 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:56:25,020 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:56:25,159 - app - INFO - 应用程序关闭中...
2025-04-29 08:56:25,160 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 08:56:25,160 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 08:56:25,160 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 08:56:25,160 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 08:56:25,161 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 08:56:25,164 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 08:56:25,164 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 08:56:25,164 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 08:56:25,164 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 08:56:25,164 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 08:56:25,164 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:56:25,164 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:56:25,165 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:56:25,165 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:56:25,165 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:56:25,166 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 08:56:25,166 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:56:25,166 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:56:25,167 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 08:56:25,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:56:25,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:56:25,168 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 08:56:25,168 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:56:25,168 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:56:25,169 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 08:56:25,169 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 08:56:25,169 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 08:56:25,170 - app - INFO - 增强版任务调度器已停止
2025-04-29 08:56:25,171 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 08:56:25,173 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 08:56:25,173 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 08:56:25,174 - data.session - INFO - 数据库连接已关闭
2025-04-29 08:56:26,384 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:56:26,455 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:56:26,455 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:56:26,516 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:56:26,565 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:56:26,607 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:56:26,639 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:56:26,644 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:56:26,650 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:56:26,652 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:56:26,655 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:56:26,658 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:56:26,659 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:56:26,661 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:56:26,663 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:56:26,667 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:56:26,669 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:56:26,672 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:56:26,673 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:56:26,679 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:56:26,679 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:56:26,681 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:56:26,685 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:56:26,687 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:56:26,688 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:56:26,691 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:56:26,692 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:56:26,695 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:56:26,697 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:56:26,700 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:56:26,700 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:56:26,703 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:56:26,706 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:56:26,711 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:56:26,716 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:56:26,718 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:56:26,720 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:56:27,082 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 08:56:27,082 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 08:56:27,082 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 08:56:27,082 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 08:56:27,083 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 08:56:27,083 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 08:56:27,083 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 08:56:27,083 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 08:56:27,083 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 08:56:27,083 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 08:56:27,083 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:56:27,083 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 08:56:27,084 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 08:56:27,086 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:56:27,086 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:56:27,086 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:56:27,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:56:27,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:56:27,088 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 08:56:27,088 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 08:56:27,090 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:56:27,091 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:56:27,092 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:56:27,093 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:56:27,094 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:56:27,095 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:56:27,096 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:56:27,096 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:56:27,105 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 08:56:27,106 - sqlalchemy.engine.Engine - INFO - [generated in 0.00104s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 08:56:27,107 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 08:56:27,107 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:56:27,108 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 08:56:27,109 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 08:56:27,109 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 08:56:27,110 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:56:27,112 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 08:56:27,112 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 08:56:27,113 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:56:27,114 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:56:27,114 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:56:27,115 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:56:27,115 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 56, 27, 109678))
2025-04-29 08:56:27,116 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 08:56:27,116 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 08:56:27,117 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 08:56:27,117 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 08:56:27,117 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:57:13,802 - app - INFO - 应用程序关闭中...
2025-04-29 08:57:13,803 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 08:57:13,803 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 08:57:13,803 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 08:57:13,803 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 08:57:13,804 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 08:57:13,804 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 08:57:13,805 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 08:57:13,805 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 08:57:13,805 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 08:57:13,807 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 08:57:13,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:57:13,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:57:13,808 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:57:13,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:57:13,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:57:13,808 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 08:57:13,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:57:13,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:57:13,808 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 08:57:13,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:57:13,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:57:13,809 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 08:57:13,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:57:13,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:57:13,809 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 08:57:13,809 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 08:57:13,809 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 08:57:13,809 - app - INFO - 增强版任务调度器已停止
2025-04-29 08:57:13,809 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 08:57:13,810 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 08:57:13,810 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 08:57:13,810 - data.session - INFO - 数据库连接已关闭
2025-04-29 08:57:15,839 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:57:15,898 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:57:15,900 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:57:16,565 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 08:57:16,627 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 08:57:16,628 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 08:57:16,690 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 08:57:16,738 - data.session - INFO - 正在初始化数据库...
2025-04-29 08:57:16,771 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 08:57:16,788 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:57:16,789 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:57:16,790 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:57:16,791 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:57:16,792 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:57:16,793 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:57:16,793 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:57:16,794 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 08:57:16,794 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:57:16,796 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 08:57:16,796 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:57:16,798 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 08:57:16,798 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:57:16,799 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 08:57:16,800 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:57:16,801 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 08:57:16,801 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:57:16,802 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 08:57:16,802 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:57:16,803 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 08:57:16,804 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:57:16,805 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 08:57:16,805 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:57:16,808 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 08:57:16,809 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:57:16,810 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 08:57:16,810 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:57:16,811 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 08:57:16,812 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 08:57:16,813 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:57:16,815 - data.session - INFO - 数据库表初始化完成
2025-04-29 08:57:17,159 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 08:57:17,160 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 08:57:17,160 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 08:57:17,160 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 08:57:17,160 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 08:57:17,161 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 08:57:17,161 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 08:57:17,161 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 08:57:17,162 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 08:57:17,162 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 08:57:17,162 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:57:17,162 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 08:57:17,163 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 08:57:17,164 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:57:17,164 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:57:17,164 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:57:17,164 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:57:17,164 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:57:17,164 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 08:57:17,164 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 08:57:17,165 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:57:17,166 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 08:57:17,166 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:57:17,166 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 08:57:17,166 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:57:17,167 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 08:57:17,167 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 08:57:17,167 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:57:17,176 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 08:57:17,176 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 08:57:17,177 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 08:57:17,178 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:57:17,178 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 08:57:17,179 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 08:57:17,179 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 08:57:17,179 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:57:17,181 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 08:57:17,181 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 08:57:17,182 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:57:17,182 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 08:57:17,182 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 08:57:17,183 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 08:57:17,183 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 08:57:17,183 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 08:57:17,183 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:57:17,184 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:57:17,184 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 57, 17, 179433))
2025-04-29 08:57:17,185 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:57:22,153 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 08:57:22,158 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:57:22,160 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:57:22,163 - sqlalchemy.engine.Engine - INFO - [generated in 0.00345s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:57:22,166 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:57:22,171 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:57:22,171 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:57:22,172 - sqlalchemy.engine.Engine - INFO - [cached since 0.01175s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:57:22,173 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:57:22,175 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 08:57:22,177 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 08:57:22,177 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 08:57:22,180 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:57:22,181 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 08:57:22,184 - sqlalchemy.engine.Engine - INFO - [generated in 0.00275s] (None, datetime.datetime(2025, 4, 29, 8, 57, 22, 181487), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 08:57:22,188 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:57:22,204 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:57:22,205 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:57:22,206 - sqlalchemy.engine.Engine - INFO - [cached since 0.04576s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:57:22,210 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:57:22,211 - sqlalchemy.engine.Engine - INFO - [generated in 0.00121s] ('56284431-e3ea-420a-a459-e836d1ca4308', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 3, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (290 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 8, 57, 22, 175488), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 8, 57, 22, 210607), datetime.datetime(2025, 4, 29, 8, 57, 22, 210607), 0)
2025-04-29 08:57:22,213 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:57:22,222 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:57:22,225 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:57:22,228 - sqlalchemy.engine.Engine - INFO - [generated in 0.00281s] ('56284431-e3ea-420a-a459-e836d1ca4308',)
2025-04-29 08:57:22,229 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:57:22,229 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 56284431-e3ea-420a-a459-e836d1ca4308 (优先级 1) 添加到队列 0
2025-04-29 08:57:22,235 - services.sync_service - INFO - 正在同步创建任务到天风系统: 56284431-e3ea-420a-a459-e836d1ca4308
2025-04-29 08:57:22,235 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"56284431-e3ea-420a-a459-e836d1ca4308","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 08:57:22","sceneId":"1912043207186550785","needAmr":1}
2025-04-29 08:57:22,273 - services.sync_service - INFO - 成功同步任务到系统任务: 56284431-e3ea-420a-a459-e836d1ca4308
2025-04-29 08:57:22,273 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 56284431-e3ea-420a-a459-e836d1ca4308, 优先级: 1
2025-04-29 08:57:22,273 - services.execution.task_executor - DEBUG - 任务 56284431-e3ea-420a-a459-e836d1ca4308 设置超时时间: 3600秒
2025-04-29 08:57:22,274 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 56284431-e3ea-420a-a459-e836d1ca4308
2025-04-29 08:57:22,274 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 56284431-e3ea-420a-a459-e836d1ca4308
2025-04-29 08:57:22,275 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:57:22,276 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:57:22,277 - sqlalchemy.engine.Engine - INFO - [cached since 0.05176s ago] ('56284431-e3ea-420a-a459-e836d1ca4308',)
2025-04-29 08:57:22,277 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1241秒
2025-04-29 08:57:22,278 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 08:57:22,279 - sqlalchemy.engine.Engine - INFO - [cached since 0.1185s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 08:57:22,280 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 08:57:22,281 - sqlalchemy.engine.Engine - INFO - [generated in 0.00066s] (datetime.datetime(2025, 4, 29, 8, 57, 22, 279589), datetime.datetime(2025, 4, 29, 8, 57, 22, 280597), '56284431-e3ea-420a-a459-e836d1ca4308')
2025-04-29 08:57:22,282 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:57:22,289 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:57:22,289 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 08:57:22,290 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 57, 22, 289593), '56284431-e3ea-420a-a459-e836d1ca4308')
2025-04-29 08:57:22,290 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:57:22,296 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 08:57:22,297 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:57:22,298 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:57:22,298 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] ('da83cdcd-312e-4dbe-9e19-771f1519d7a2', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '56284431-e3ea-420a-a459-e836d1ca4308', datetime.datetime(2025, 4, 29, 8, 57, 22, 296459), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 8, 57, 22, 298468), datetime.datetime(2025, 4, 29, 8, 57, 22, 298468), 0)
2025-04-29 08:57:22,299 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:57:22,306 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:57:22,308 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:57:22,308 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('da83cdcd-312e-4dbe-9e19-771f1519d7a2',)
2025-04-29 08:57:22,309 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 08:57:22,309 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 08:57:22,310 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:57:22,310 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 8, 57, 22, 310658), 'da83cdcd-312e-4dbe-9e19-771f1519d7a2')
2025-04-29 08:57:22,311 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:57:22,316 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 08:57:22,316 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 08:57:22,318 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-29 08:57:22,318 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:57:22,319 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:57:22,319 - sqlalchemy.engine.Engine - INFO - [cached since 0.02111s ago] ('77d8ebd0-28a4-4996-9aa0-b629c7fc8538', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"priority": "10", "keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '56284431-e3ea-420a-a459-e836d1ca4308', datetime.datetime(2025, 4, 29, 8, 57, 22, 318710), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 29, 8, 57, 22, 319655), datetime.datetime(2025, 4, 29, 8, 57, 22, 319655), 0)
2025-04-29 08:57:22,320 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:57:22,327 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 77d8ebd0-28a4-4996-9aa0-b629c7fc8538
2025-04-29 08:57:22,327 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:57:22,328 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:57:22,328 - sqlalchemy.engine.Engine - INFO - [cached since 0.01999s ago] ('77d8ebd0-28a4-4996-9aa0-b629c7fc8538',)
2025-04-29 08:57:22,329 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 08:57:22,329 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 08:57:22,329 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:57:22,329 - sqlalchemy.engine.Engine - INFO - [cached since 0.01935s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 29, 8, 57, 22, 329331), '77d8ebd0-28a4-4996-9aa0-b629c7fc8538')
2025-04-29 08:57:22,330 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:57:22,335 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-29 08:57:22,336 - services.sync_service - INFO - 正在创建选择AMR任务: 56284431-e3ea-420a-a459-e836d1ca4308, 站点: TK01
2025-04-29 08:57:22,395 - services.sync_service - INFO - 成功为任务选择AMR: 56284431-e3ea-420a-a459-e836d1ca4308, AMR: None
2025-04-29 08:57:22,398 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917020349330087937 的AMR选择结果
2025-04-29 08:57:22,399 - services.sync_service - INFO - 开始等待任务块 1917020349330087937 的AMR选择结果
2025-04-29 08:57:22,399 - services.sync_service - INFO - 正在获取任务块详情: 1917020349330087937
2025-04-29 08:57:22,454 - services.sync_service - INFO - 成功获取任务块详情: 1917020349330087937 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917020349330087937', 'taskId': '1917020348830965762', 'tenantId': 1000, 'vwedTaskId': '56284431-e3ea-420a-a459-e836d1ca4308', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 08:57:22', 'updateTime': None}, 'timestamp': 1745888242496}
2025-04-29 08:57:22,454 - services.sync_service - DEBUG - 任务块 1917020349330087937 AMR选择未完成，已尝试 1 次
2025-04-29 08:57:22,967 - services.sync_service - INFO - 正在获取任务块详情: 1917020349330087937
2025-04-29 08:57:22,986 - services.sync_service - INFO - 成功获取任务块详情: 1917020349330087937 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917020349330087937', 'taskId': '1917020348830965762', 'tenantId': 1000, 'vwedTaskId': '56284431-e3ea-420a-a459-e836d1ca4308', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 08:57:22', 'updateTime': None}, 'timestamp': 1745888243051}
2025-04-29 08:57:22,987 - services.sync_service - DEBUG - 任务块 1917020349330087937 AMR选择未完成，已尝试 2 次
2025-04-29 08:57:23,296 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:57:23,297 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:57:23,300 - sqlalchemy.engine.Engine - INFO - [generated in 0.00385s] ('56284431-e3ea-420a-a459-e836d1ca4308',)
2025-04-29 08:57:23,306 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:57:23,496 - services.sync_service - INFO - 正在获取任务块详情: 1917020349330087937
2025-04-29 08:57:23,541 - services.sync_service - INFO - 成功获取任务块详情: 1917020349330087937 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917020349330087937', 'taskId': '1917020348830965762', 'tenantId': 1000, 'vwedTaskId': '56284431-e3ea-420a-a459-e836d1ca4308', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 08:57:22', 'updateTime': None}, 'timestamp': 1745888243607}
2025-04-29 08:57:23,542 - services.sync_service - DEBUG - 任务块 1917020349330087937 AMR选择未完成，已尝试 3 次
2025-04-29 08:57:24,041 - services.sync_service - INFO - 正在获取任务块详情: 1917020349330087937
2025-04-29 08:57:24,094 - services.sync_service - INFO - 成功获取任务块详情: 1917020349330087937 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917020349330087937', 'taskId': '1917020348830965762', 'tenantId': 1000, 'vwedTaskId': '56284431-e3ea-420a-a459-e836d1ca4308', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 08:57:22', 'updateTime': None}, 'timestamp': 1745888244136}
2025-04-29 08:57:24,094 - services.sync_service - DEBUG - 任务块 1917020349330087937 AMR选择未完成，已尝试 4 次
2025-04-29 08:57:24,308 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:57:24,309 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:57:24,309 - sqlalchemy.engine.Engine - INFO - [cached since 1.013s ago] ('56284431-e3ea-420a-a459-e836d1ca4308',)
2025-04-29 08:57:24,311 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:57:24,606 - services.sync_service - INFO - 正在获取任务块详情: 1917020349330087937
2025-04-29 08:57:24,715 - services.sync_service - INFO - 成功获取任务块详情: 1917020349330087937 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917020349330087937', 'taskId': '1917020348830965762', 'tenantId': 1000, 'vwedTaskId': '56284431-e3ea-420a-a459-e836d1ca4308', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 08:57:22', 'updateTime': None}, 'timestamp': 1745888244749}
2025-04-29 08:57:24,717 - services.sync_service - DEBUG - 任务块 1917020349330087937 AMR选择未完成，已尝试 5 次
2025-04-29 08:57:25,221 - services.sync_service - INFO - 正在获取任务块详情: 1917020349330087937
2025-04-29 08:57:25,253 - services.sync_service - INFO - 成功获取任务块详情: 1917020349330087937 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917020349330087937', 'taskId': '1917020348830965762', 'tenantId': 1000, 'vwedTaskId': '56284431-e3ea-420a-a459-e836d1ca4308', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 08:57:22', 'updateTime': None}, 'timestamp': 1745888245316}
2025-04-29 08:57:25,254 - services.sync_service - DEBUG - 任务块 1917020349330087937 AMR选择未完成，已尝试 6 次
2025-04-29 08:57:25,314 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:57:25,314 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:57:25,314 - sqlalchemy.engine.Engine - INFO - [cached since 2.018s ago] ('56284431-e3ea-420a-a459-e836d1ca4308',)
2025-04-29 08:57:25,316 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:57:25,768 - services.sync_service - INFO - 正在获取任务块详情: 1917020349330087937
2025-04-29 08:57:25,848 - services.sync_service - INFO - 成功获取任务块详情: 1917020349330087937 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917020349330087937', 'taskId': '1917020348830965762', 'tenantId': 1000, 'vwedTaskId': '56284431-e3ea-420a-a459-e836d1ca4308', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 08:57:22', 'updateTime': None}, 'timestamp': 1745888245878}
2025-04-29 08:57:25,849 - services.sync_service - DEBUG - 任务块 1917020349330087937 AMR选择未完成，已尝试 7 次
2025-04-29 08:57:26,344 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:57:26,344 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 08:57:26,345 - sqlalchemy.engine.Engine - INFO - [cached since 3.048s ago] ('56284431-e3ea-420a-a459-e836d1ca4308',)
2025-04-29 08:57:26,345 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:57:26,346 - services.sync_service - INFO - 正在获取任务块详情: 1917020349330087937
2025-04-29 08:57:26,366 - services.sync_service - INFO - 成功获取任务块详情: 1917020349330087937 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917020349330087937', 'taskId': '1917020348830965762', 'tenantId': 1000, 'vwedTaskId': '56284431-e3ea-420a-a459-e836d1ca4308', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 08:57:22', 'updateTime': None}, 'timestamp': 1745888246431}
2025-04-29 08:57:26,366 - services.sync_service - DEBUG - 任务块 1917020349330087937 AMR选择未完成，已尝试 8 次
2025-04-29 08:57:26,873 - services.sync_service - INFO - 正在获取任务块详情: 1917020349330087937
2025-04-29 08:57:26,921 - services.sync_service - INFO - 成功获取任务块详情: 1917020349330087937 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917020349330087937', 'taskId': '1917020348830965762', 'tenantId': 1000, 'vwedTaskId': '56284431-e3ea-420a-a459-e836d1ca4308', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 08:57:22', 'updateTime': '2025-04-29 08:57:27'}, 'timestamp': 1745888246987}
2025-04-29 08:57:26,924 - services.sync_service - INFO - 任务块 1917020349330087937 已选择AMR: 1912328602264645634，共尝试 9 次
2025-04-29 08:57:26,925 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634、指定机器人:、指定机器人组:
2025-04-29 08:57:26,932 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: []
2025-04-29 08:57:26,933 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-29 08:57:26,933 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 0 个
2025-04-29 08:57:26,933 - services.sync_service - INFO - 正在封口任务: 56284431-e3ea-420a-a459-e836d1ca4308
2025-04-29 08:57:26,981 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-29 08:57:26,984 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:57:26,986 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:57:26,986 - sqlalchemy.engine.Engine - INFO - [generated in 0.00061s] ('601f25d0-5160-4443-9eda-a314d4ef4b45', 1, '{"success": true, "message": "选择执行机器人成功: 1912328602264645634", "code": 200, "result": {"taskBlockId": "1917020349330087937"}, "timestamp": 1745888242456}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '56284431-e3ea-420a-a459-e836d1ca4308', datetime.datetime(2025, 4, 29, 8, 57, 26, 986119), datetime.datetime(2025, 4, 29, 8, 57, 26, 986119), 0)
2025-04-29 08:57:26,988 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:57:26,996 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:57:26,997 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:57:26,999 - sqlalchemy.engine.Engine - INFO - [cached since 4.691s ago] ('77d8ebd0-28a4-4996-9aa0-b629c7fc8538',)
2025-04-29 08:57:27,000 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 08:57:27,000 - services.execution.block_executor - INFO - 为块 b1 存储输出: ['selectedAgvId']
2025-04-29 08:57:27,001 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:57:27,001 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] ('{"selectedAgvId": "1912328602264645634"}', datetime.datetime(2025, 4, 29, 8, 57, 27, 727), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '{"blocks": {"b1": {"selectedAgvId": "1912328602264645634"}}}', '执行成功', datetime.datetime(2025, 4, 29, 8, 57, 27, 1734), '77d8ebd0-28a4-4996-9aa0-b629c7fc8538')
2025-04-29 08:57:27,002 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:57:27,011 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:57:27,011 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 08:57:27,011 - sqlalchemy.engine.Engine - INFO - [cached since 0.02637s ago] ('1229ee9d-f9c1-4dae-bd37-8da76398c8f0', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {}}]}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '56284431-e3ea-420a-a459-e836d1ca4308', datetime.datetime(2025, 4, 29, 8, 57, 27, 11645), datetime.datetime(2025, 4, 29, 8, 57, 27, 11645), 0)
2025-04-29 08:57:27,013 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:57:27,018 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:57:27,018 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 08:57:27,018 - sqlalchemy.engine.Engine - INFO - [cached since 4.711s ago] ('da83cdcd-312e-4dbe-9e19-771f1519d7a2',)
2025-04-29 08:57:27,020 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 08:57:27,021 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 08:57:27,021 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 08:57:27,022 - sqlalchemy.engine.Engine - INFO - [generated in 0.00062s] (datetime.datetime(2025, 4, 29, 8, 57, 27, 21152), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 8, 57, 27, 21152), 'da83cdcd-312e-4dbe-9e19-771f1519d7a2')
2025-04-29 08:57:27,023 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:57:27,028 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:57:27,032 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 08:57:27,033 - sqlalchemy.engine.Engine - INFO - [generated in 0.00153s] (datetime.datetime(2025, 4, 29, 8, 57, 27, 28164), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 4739, 1, datetime.datetime(2025, 4, 29, 8, 57, 27, 32407), '56284431-e3ea-420a-a459-e836d1ca4308')
2025-04-29 08:57:27,036 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:57:27,045 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: 56284431-e3ea-420a-a459-e836d1ca4308, 结果: True
2025-04-29 08:58:17,199 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:58:17,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:58:17,202 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:58:17,202 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:58:17,202 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:58:17,202 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:58:17,202 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:58:17,202 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:58:17,202 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:58:17,203 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:58:17,203 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:58:17,203 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 58, 17, 201709))
2025-04-29 08:58:17,204 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:58:17,204 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:58:17,204 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:58:17,204 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:58:17,205 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:58:17,205 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:58:17,205 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:58:17,206 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:58:17,206 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:58:17,208 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:58:17,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:58:17,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:58:17,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:58:17,209 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:58:17,209 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:58:17,214 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:58:32,221 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:58:32,222 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:58:32,222 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:58:32,222 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:58:32,223 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:58:32,224 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 08:59:17,218 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 08:59:17,218 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 08:59:17,218 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 7, 59, 17, 218719))
2025-04-29 08:59:17,218 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 08:59:17,249 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 08:59:17,249 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 08:59:17,249 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 08:59:17,250 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 08:59:17,250 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 08:59:17,250 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 08:59:17,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 08:59:17,251 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 08:59:17,251 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 08:59:17,251 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 08:59:17,251 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 08:59:17,251 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 08:59:17,252 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 08:59:17,252 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 08:59:17,252 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 08:59:17,252 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 08:59:17,252 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 08:59:17,252 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 08:59:17,252 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 08:59:17,252 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 08:59:17,252 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 08:59:17,252 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 08:59:17,252 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 08:59:17,257 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 08:59:32,259 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 08:59:32,260 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 08:59:32,260 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 08:59:32,261 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 08:59:32,262 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 08:59:32,264 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:00:17,220 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:00:17,224 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:00:17,224 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 0, 17, 220064))
2025-04-29 09:00:17,228 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:00:17,264 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:00:17,265 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:00:17,265 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:00:17,265 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:00:17,265 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:00:17,265 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:00:17,265 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:00:17,265 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:00:17,265 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:00:17,266 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:00:17,266 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:00:17,266 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:00:17,266 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:00:17,266 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:00:17,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:00:17,269 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:00:17,269 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:00:17,269 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:00:17,269 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:00:17,269 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:00:17,269 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:00:17,269 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:00:17,269 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:00:17,274 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:00:17,422 - app - INFO - 应用程序关闭中...
2025-04-29 09:00:17,422 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 09:00:17,422 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 09:00:17,422 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 09:00:17,422 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 09:00:17,422 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 09:00:17,423 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 09:00:17,423 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 09:00:17,423 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 09:00:17,423 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 09:00:17,423 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 09:00:17,423 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:00:17,423 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:00:17,423 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:00:17,423 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:00:17,423 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:00:17,423 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 3
2025-04-29 09:00:17,423 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:00:17,423 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:00:17,423 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 2
2025-04-29 09:00:17,423 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:00:17,423 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:00:17,424 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 09:00:17,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:00:17,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:00:17,424 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 09:00:17,424 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 09:00:17,424 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 09:00:17,424 - app - INFO - 增强版任务调度器已停止
2025-04-29 09:00:17,425 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 09:00:17,426 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 09:00:17,428 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 09:00:17,430 - data.session - INFO - 数据库连接已关闭
2025-04-29 09:00:18,620 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 09:00:18,681 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 09:00:18,681 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 09:00:18,743 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 09:00:18,790 - data.session - INFO - 正在初始化数据库...
2025-04-29 09:00:18,820 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 09:00:18,840 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:00:18,841 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:18,842 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:00:18,843 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:18,845 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:00:18,846 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:18,847 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:00:18,847 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 09:00:18,848 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:18,850 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 09:00:18,851 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:18,852 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 09:00:18,852 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:18,854 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 09:00:18,856 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:18,857 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 09:00:18,857 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:18,860 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 09:00:18,860 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:18,861 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 09:00:18,862 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:18,863 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 09:00:18,863 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:18,866 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 09:00:18,867 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:18,868 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 09:00:18,868 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:18,869 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 09:00:18,869 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:18,871 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:00:18,871 - data.session - INFO - 数据库表初始化完成
2025-04-29 09:00:19,231 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 09:00:19,231 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 09:00:19,231 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 09:00:19,232 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 09:00:19,232 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 09:00:19,232 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 09:00:19,232 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 09:00:19,232 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 09:00:19,234 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 09:00:19,234 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 09:00:19,234 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:00:19,234 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 09:00:19,234 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 09:00:19,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:00:19,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:00:19,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:00:19,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:00:19,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:00:19,236 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 09:00:19,237 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 09:00:19,239 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:00:19,240 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:00:19,240 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:00:19,241 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:00:19,241 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:00:19,242 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:00:19,242 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:00:19,243 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:00:19,251 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 09:00:19,252 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 09:00:19,252 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 09:00:19,253 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:00:19,253 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 09:00:19,253 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 09:00:19,254 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 09:00:19,254 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:00:19,256 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 09:00:19,256 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 09:00:19,257 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:00:19,258 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 09:00:19,258 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 09:00:19,258 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 09:00:19,259 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 09:00:19,259 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:00:19,260 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:00:19,260 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:00:19,260 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 0, 19, 254875))
2025-04-29 09:00:19,261 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:00:28,477 - app - INFO - 应用程序关闭中...
2025-04-29 09:00:28,478 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 09:00:28,478 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 09:00:28,478 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 09:00:28,480 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 09:00:28,480 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 09:00:28,481 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 09:00:28,481 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 09:00:28,481 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 09:00:28,481 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 09:00:28,482 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 09:00:28,482 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:00:28,482 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:00:28,482 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:00:28,482 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:00:28,483 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:00:28,483 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 09:00:28,483 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:00:28,483 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:00:28,483 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 09:00:28,483 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:00:28,484 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:00:28,484 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 09:00:28,484 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:00:28,484 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:00:28,484 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 09:00:28,484 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 09:00:28,484 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 09:00:28,484 - app - INFO - 增强版任务调度器已停止
2025-04-29 09:00:28,484 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 09:00:28,484 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 09:00:28,485 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 09:00:28,485 - data.session - INFO - 数据库连接已关闭
2025-04-29 09:00:31,294 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 09:00:31,349 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 09:00:31,350 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 09:00:32,034 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 09:00:32,096 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 09:00:32,097 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 09:00:32,160 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 09:00:32,214 - data.session - INFO - 正在初始化数据库...
2025-04-29 09:00:32,259 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 09:00:32,280 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:00:32,281 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:32,283 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:00:32,283 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:32,284 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:00:32,284 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:32,285 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:00:32,285 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 09:00:32,285 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:32,287 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 09:00:32,287 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:32,288 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 09:00:32,289 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:32,289 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 09:00:32,290 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:32,290 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 09:00:32,291 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:32,292 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 09:00:32,292 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:32,293 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 09:00:32,293 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:32,294 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 09:00:32,298 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:32,299 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 09:00:32,299 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:32,301 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 09:00:32,301 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:32,302 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 09:00:32,303 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:00:32,304 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:00:32,304 - data.session - INFO - 数据库表初始化完成
2025-04-29 09:00:32,656 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 09:00:32,657 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 09:00:32,657 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 09:00:32,657 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 09:00:32,658 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 09:00:32,661 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 09:00:32,661 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 09:00:32,661 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 09:00:32,661 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 09:00:32,661 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 09:00:32,661 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:00:32,662 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 09:00:32,662 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 09:00:32,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:00:32,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:00:32,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:00:32,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:00:32,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:00:32,664 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 09:00:32,665 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 09:00:32,665 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:00:32,665 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:00:32,666 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:00:32,666 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:00:32,667 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:00:32,667 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:00:32,667 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:00:32,668 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:00:32,677 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 09:00:32,677 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 09:00:32,678 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 09:00:32,679 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:00:32,680 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 09:00:32,680 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 09:00:32,680 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 09:00:32,681 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:00:32,682 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 09:00:32,684 - sqlalchemy.engine.Engine - INFO - [generated in 0.00075s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 09:00:32,684 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:00:32,685 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 09:00:32,685 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 09:00:32,685 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 09:00:32,685 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 09:00:32,686 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:00:32,686 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:00:32,687 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:00:32,689 - sqlalchemy.engine.Engine - INFO - [generated in 0.00166s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 0, 32, 680911))
2025-04-29 09:00:32,689 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:00:35,712 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 09:00:35,715 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:00:35,717 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 09:00:35,718 - sqlalchemy.engine.Engine - INFO - [generated in 0.00116s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 09:00:35,724 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:00:35,725 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:00:35,727 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 09:00:35,730 - sqlalchemy.engine.Engine - INFO - [cached since 0.01232s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 09:00:35,732 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:00:35,737 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 09:00:35,738 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 09:00:35,738 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 09:00:35,740 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:00:35,742 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 09:00:35,742 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] (None, datetime.datetime(2025, 4, 29, 9, 0, 35, 742534), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 09:00:35,744 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:00:35,758 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:00:35,760 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 09:00:35,761 - sqlalchemy.engine.Engine - INFO - [cached since 0.04367s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 09:00:35,765 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:00:35,767 - sqlalchemy.engine.Engine - INFO - [generated in 0.00211s] ('012700b3-2aad-426b-84c5-74a3cf489b58', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 3, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (290 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 9, 0, 35, 737307), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 9, 0, 35, 765246), datetime.datetime(2025, 4, 29, 9, 0, 35, 765246), 0)
2025-04-29 09:00:35,770 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:00:35,780 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:00:35,781 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 09:00:35,784 - sqlalchemy.engine.Engine - INFO - [generated in 0.00310s] ('012700b3-2aad-426b-84c5-74a3cf489b58',)
2025-04-29 09:00:35,786 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:00:35,788 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 012700b3-2aad-426b-84c5-74a3cf489b58 (优先级 1) 添加到队列 0
2025-04-29 09:00:35,791 - services.sync_service - INFO - 正在同步创建任务到天风系统: 012700b3-2aad-426b-84c5-74a3cf489b58
2025-04-29 09:00:35,796 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"012700b3-2aad-426b-84c5-74a3cf489b58","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 09:00:35","sceneId":"1912043207186550785","needAmr":1}
2025-04-29 09:00:35,846 - services.sync_service - INFO - 成功同步任务到系统任务: 012700b3-2aad-426b-84c5-74a3cf489b58
2025-04-29 09:00:35,848 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 012700b3-2aad-426b-84c5-74a3cf489b58, 优先级: 1
2025-04-29 09:00:35,851 - services.execution.task_executor - DEBUG - 任务 012700b3-2aad-426b-84c5-74a3cf489b58 设置超时时间: 3600秒
2025-04-29 09:00:35,851 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 012700b3-2aad-426b-84c5-74a3cf489b58
2025-04-29 09:00:35,855 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 012700b3-2aad-426b-84c5-74a3cf489b58
2025-04-29 09:00:35,857 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:00:35,864 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 09:00:35,868 - sqlalchemy.engine.Engine - INFO - [cached since 0.08684s ago] ('012700b3-2aad-426b-84c5-74a3cf489b58',)
2025-04-29 09:00:35,872 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1603秒
2025-04-29 09:00:35,879 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 09:00:35,891 - sqlalchemy.engine.Engine - INFO - [cached since 0.1736s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 09:00:35,895 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 09:00:35,900 - sqlalchemy.engine.Engine - INFO - [generated in 0.00478s] (datetime.datetime(2025, 4, 29, 9, 0, 35, 895396), datetime.datetime(2025, 4, 29, 9, 0, 35, 895396), '012700b3-2aad-426b-84c5-74a3cf489b58')
2025-04-29 09:00:35,903 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:00:35,912 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:00:35,915 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 09:00:35,926 - sqlalchemy.engine.Engine - INFO - [generated in 0.01032s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 0, 35, 915485), '012700b3-2aad-426b-84c5-74a3cf489b58')
2025-04-29 09:00:35,927 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:00:35,935 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 09:00:35,939 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:00:35,945 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:00:35,945 - sqlalchemy.engine.Engine - INFO - [generated in 0.00071s] ('79b3fdde-47a3-4a9c-9ad0-d993862f4bac', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '012700b3-2aad-426b-84c5-74a3cf489b58', datetime.datetime(2025, 4, 29, 9, 0, 35, 939769), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 9, 0, 35, 945113), datetime.datetime(2025, 4, 29, 9, 0, 35, 945113), 0)
2025-04-29 09:00:35,946 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:00:35,952 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:00:35,955 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 09:00:35,958 - sqlalchemy.engine.Engine - INFO - [generated in 0.00236s] ('79b3fdde-47a3-4a9c-9ad0-d993862f4bac',)
2025-04-29 09:00:35,958 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 09:00:35,958 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 09:00:35,965 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 09:00:35,966 - sqlalchemy.engine.Engine - INFO - [generated in 0.00167s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 9, 0, 35, 965681), '79b3fdde-47a3-4a9c-9ad0-d993862f4bac')
2025-04-29 09:00:35,970 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:00:35,977 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 09:00:35,978 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 09:00:35,979 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-29 09:00:35,979 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:00:35,981 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:00:35,981 - sqlalchemy.engine.Engine - INFO - [cached since 0.03717s ago] ('301bb3a0-84c7-49c6-9109-591e6f21e12b', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"priority": "10", "keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '012700b3-2aad-426b-84c5-74a3cf489b58', datetime.datetime(2025, 4, 29, 9, 0, 35, 979639), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 29, 9, 0, 35, 981644), datetime.datetime(2025, 4, 29, 9, 0, 35, 981644), 0)
2025-04-29 09:00:35,982 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:00:35,989 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 301bb3a0-84c7-49c6-9109-591e6f21e12b
2025-04-29 09:00:35,989 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:00:35,990 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 09:00:35,990 - sqlalchemy.engine.Engine - INFO - [cached since 0.03527s ago] ('301bb3a0-84c7-49c6-9109-591e6f21e12b',)
2025-04-29 09:00:35,991 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 09:00:35,992 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 09:00:35,994 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 09:00:35,994 - sqlalchemy.engine.Engine - INFO - [cached since 0.0288s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 29, 9, 0, 35, 994097), '301bb3a0-84c7-49c6-9109-591e6f21e12b')
2025-04-29 09:00:35,995 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:00:36,006 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-29 09:00:36,008 - services.sync_service - INFO - 正在创建选择AMR任务: 012700b3-2aad-426b-84c5-74a3cf489b58, 站点: TK01
2025-04-29 09:00:36,035 - services.sync_service - INFO - 成功为任务选择AMR: 012700b3-2aad-426b-84c5-74a3cf489b58, AMR: None
2025-04-29 09:00:36,043 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917021161531891714 的AMR选择结果
2025-04-29 09:00:36,044 - services.sync_service - INFO - 开始等待任务块 1917021161531891714 的AMR选择结果
2025-04-29 09:00:36,052 - services.sync_service - INFO - 正在获取任务块详情: 1917021161531891714
2025-04-29 09:00:36,113 - services.sync_service - INFO - 成功获取任务块详情: 1917021161531891714 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917021161531891714', 'taskId': '1917021160747556865', 'tenantId': 1000, 'vwedTaskId': '012700b3-2aad-426b-84c5-74a3cf489b58', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:00:36', 'updateTime': None}, 'timestamp': 1745888436172}
2025-04-29 09:00:36,114 - services.sync_service - DEBUG - 任务块 1917021161531891714 AMR选择未完成，已尝试 1 次
2025-04-29 09:00:36,627 - services.sync_service - INFO - 正在获取任务块详情: 1917021161531891714
2025-04-29 09:00:36,659 - services.sync_service - INFO - 成功获取任务块详情: 1917021161531891714 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917021161531891714', 'taskId': '1917021160747556865', 'tenantId': 1000, 'vwedTaskId': '012700b3-2aad-426b-84c5-74a3cf489b58', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:00:36', 'updateTime': '2025-04-29 09:00:37'}, 'timestamp': 1745888436723}
2025-04-29 09:00:36,662 - services.sync_service - INFO - 任务块 1917021161531891714 已选择AMR: 1912328602264645634，共尝试 2 次
2025-04-29 09:00:36,664 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634、指定机器人:、指定机器人组:
2025-04-29 09:00:36,666 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: []
2025-04-29 09:00:36,668 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-29 09:00:36,670 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 0 个
2025-04-29 09:00:36,672 - services.sync_service - INFO - 正在封口任务: 1917021161531891714
2025-04-29 09:00:36,736 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-29 09:00:36,738 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:00:36,741 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:00:36,741 - sqlalchemy.engine.Engine - INFO - [generated in 0.00086s] ('300b63b8-7419-4f36-a9eb-48afcd8a174f', 1, '{"success": true, "message": "选择执行机器人成功: 1912328602264645634", "code": 200, "result": {"taskBlockId": "1917021161531891714"}, "timestamp": 1745888436100}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '012700b3-2aad-426b-84c5-74a3cf489b58', datetime.datetime(2025, 4, 29, 9, 0, 36, 741201), datetime.datetime(2025, 4, 29, 9, 0, 36, 741201), 0)
2025-04-29 09:00:36,743 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:00:36,749 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:00:36,750 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 09:00:36,750 - sqlalchemy.engine.Engine - INFO - [cached since 0.7947s ago] ('301bb3a0-84c7-49c6-9109-591e6f21e12b',)
2025-04-29 09:00:36,751 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 09:00:36,752 - services.execution.block_executor - INFO - 为块 b1 存储输出: ['selectedAgvId']
2025-04-29 09:00:36,753 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 09:00:36,753 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] ('{"selectedAgvId": "1912328602264645634"}', datetime.datetime(2025, 4, 29, 9, 0, 36, 752274), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '{"blocks": {"b1": {"selectedAgvId": "1912328602264645634"}}}', '执行成功', datetime.datetime(2025, 4, 29, 9, 0, 36, 753254), '301bb3a0-84c7-49c6-9109-591e6f21e12b')
2025-04-29 09:00:36,755 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:00:36,762 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:00:36,762 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:00:36,762 - sqlalchemy.engine.Engine - INFO - [cached since 0.02123s ago] ('0aa439bc-d065-4e70-b757-7bf09c4bb2d9', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {}}]}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '012700b3-2aad-426b-84c5-74a3cf489b58', datetime.datetime(2025, 4, 29, 9, 0, 36, 762257), datetime.datetime(2025, 4, 29, 9, 0, 36, 762257), 0)
2025-04-29 09:00:36,763 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:00:36,768 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:00:36,769 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 09:00:36,769 - sqlalchemy.engine.Engine - INFO - [cached since 0.8134s ago] ('79b3fdde-47a3-4a9c-9ad0-d993862f4bac',)
2025-04-29 09:00:36,769 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 09:00:36,770 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 09:00:36,771 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 09:00:36,771 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (datetime.datetime(2025, 4, 29, 9, 0, 36, 770469), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 9, 0, 36, 771363), '79b3fdde-47a3-4a9c-9ad0-d993862f4bac')
2025-04-29 09:00:36,772 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:00:36,779 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:00:36,779 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 09:00:36,780 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (datetime.datetime(2025, 4, 29, 9, 0, 36, 778364), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 865, 1, datetime.datetime(2025, 4, 29, 9, 0, 36, 779362), '012700b3-2aad-426b-84c5-74a3cf489b58')
2025-04-29 09:00:36,781 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:00:36,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 012700b3-2aad-426b-84c5-74a3cf489b58, 结果: True
2025-04-29 09:01:32,685 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:01:32,686 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:01:32,686 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:01:32,689 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:01:32,690 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:01:32,692 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:01:32,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:01:32,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:01:32,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:01:32,698 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:01:32,700 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:01:32,700 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:01:32,701 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:01:32,701 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:01:32,703 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:01:32,703 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:01:32,703 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:01:32,705 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:01:32,711 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:01:32,714 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:01:32,717 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 1, 32, 698259))
2025-04-29 09:01:32,718 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:01:32,718 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:01:32,721 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:01:32,723 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:01:32,724 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:01:32,731 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:01:32,731 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:01:47,725 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:01:47,726 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:01:47,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:01:47,727 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:01:47,727 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:01:47,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:02:18,260 - app - INFO - 应用程序关闭中...
2025-04-29 09:02:18,261 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 09:02:18,261 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 09:02:18,262 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 09:02:18,262 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 09:02:18,262 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 09:02:18,262 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 09:02:18,262 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 09:02:18,263 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 09:02:18,263 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 09:02:18,263 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 09:02:18,263 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:02:18,263 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:02:18,263 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:02:18,263 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:02:18,263 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:02:18,263 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-29 09:02:18,263 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:02:18,263 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:02:18,263 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-29 09:02:18,263 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:02:18,263 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:02:18,263 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-29 09:02:18,263 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:02:18,263 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:02:18,263 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-29 09:02:18,263 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 09:02:18,263 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 09:02:18,263 - app - INFO - 增强版任务调度器已停止
2025-04-29 09:02:18,263 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 09:02:18,263 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 09:02:18,263 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 09:02:18,263 - data.session - INFO - 数据库连接已关闭
2025-04-29 09:02:20,982 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 09:02:21,044 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 09:02:21,046 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 09:02:21,725 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 09:02:21,784 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 09:02:21,786 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 09:02:21,849 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 09:02:21,898 - data.session - INFO - 正在初始化数据库...
2025-04-29 09:02:21,936 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 09:02:21,957 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:02:21,959 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:02:21,959 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:02:21,959 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:02:21,959 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:02:21,960 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:02:21,961 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:02:21,961 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 09:02:21,961 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:02:21,963 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 09:02:21,963 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:02:21,964 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 09:02:21,964 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:02:21,965 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 09:02:21,965 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:02:21,966 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 09:02:21,966 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:02:21,967 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 09:02:21,967 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:02:21,968 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 09:02:21,968 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:02:21,968 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 09:02:21,969 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:02:21,969 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 09:02:21,970 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:02:21,970 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 09:02:21,971 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:02:21,971 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 09:02:21,972 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:02:21,973 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:02:21,974 - data.session - INFO - 数据库表初始化完成
2025-04-29 09:02:22,343 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 09:02:22,344 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 09:02:22,344 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 09:02:22,344 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 09:02:22,345 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 09:02:22,345 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 09:02:22,345 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 09:02:22,346 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 09:02:22,346 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 09:02:22,346 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 09:02:22,346 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:02:22,347 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 09:02:22,347 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 09:02:22,348 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:02:22,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:02:22,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:02:22,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:02:22,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:02:22,350 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 09:02:22,350 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 09:02:22,351 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:02:22,352 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:02:22,353 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:02:22,353 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:02:22,354 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:02:22,355 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:02:22,355 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:02:22,356 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:02:22,365 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 09:02:22,365 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 09:02:22,366 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 09:02:22,367 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:02:22,367 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 09:02:22,367 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 09:02:22,368 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 09:02:22,368 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:02:22,370 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 09:02:22,370 - sqlalchemy.engine.Engine - INFO - [generated in 0.00061s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 09:02:22,371 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:02:22,372 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:02:22,372 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 09:02:22,373 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 09:02:22,373 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 09:02:22,373 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 09:02:22,374 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:02:22,377 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:02:22,377 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 2, 22, 368111))
2025-04-29 09:02:22,378 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:02:24,220 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 09:02:24,226 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:02:24,227 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 09:02:24,227 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 09:02:24,228 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:02:24,230 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:02:24,230 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 09:02:24,230 - sqlalchemy.engine.Engine - INFO - [cached since 0.003632s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 09:02:24,231 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:02:24,232 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 09:02:24,232 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 09:02:24,232 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 09:02:24,233 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:02:24,234 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 09:02:24,234 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] (None, datetime.datetime(2025, 4, 29, 9, 2, 24, 234753), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 09:02:24,235 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:02:24,240 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:02:24,240 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 09:02:24,240 - sqlalchemy.engine.Engine - INFO - [cached since 0.02245s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 09:02:24,240 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:02:24,240 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] ('3e847395-0e68-4c0e-b937-974b2fe9f31e', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 3, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (290 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 9, 2, 24, 232757), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 9, 2, 24, 240703), datetime.datetime(2025, 4, 29, 9, 2, 24, 240703), 0)
2025-04-29 09:02:24,240 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:02:24,264 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:02:24,265 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 09:02:24,266 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] ('3e847395-0e68-4c0e-b937-974b2fe9f31e',)
2025-04-29 09:02:24,267 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:02:24,268 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 3e847395-0e68-4c0e-b937-974b2fe9f31e (优先级 1) 添加到队列 0
2025-04-29 09:02:24,274 - services.sync_service - INFO - 正在同步创建任务到天风系统: 3e847395-0e68-4c0e-b937-974b2fe9f31e
2025-04-29 09:02:24,274 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"3e847395-0e68-4c0e-b937-974b2fe9f31e","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 09:02:24","sceneId":"1912043207186550785","needAmr":1}
2025-04-29 09:02:24,352 - services.sync_service - INFO - 成功同步任务到系统任务: 3e847395-0e68-4c0e-b937-974b2fe9f31e
2025-04-29 09:02:24,353 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 3e847395-0e68-4c0e-b937-974b2fe9f31e
2025-04-29 09:02:24,353 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 3e847395-0e68-4c0e-b937-974b2fe9f31e
2025-04-29 09:02:24,353 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1333秒
2025-04-29 09:02:24,391 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 3e847395-0e68-4c0e-b937-974b2fe9f31e, 优先级: 1
2025-04-29 09:02:24,391 - services.execution.task_executor - DEBUG - 任务 3e847395-0e68-4c0e-b937-974b2fe9f31e 设置超时时间: 3600秒
2025-04-29 09:02:24,392 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:02:24,394 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 09:02:24,399 - sqlalchemy.engine.Engine - INFO - [cached since 0.1343s ago] ('3e847395-0e68-4c0e-b937-974b2fe9f31e',)
2025-04-29 09:02:24,403 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 09:02:24,405 - sqlalchemy.engine.Engine - INFO - [cached since 0.1777s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 09:02:24,408 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 09:02:24,408 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (datetime.datetime(2025, 4, 29, 9, 2, 24, 407508), datetime.datetime(2025, 4, 29, 9, 2, 24, 408509), '3e847395-0e68-4c0e-b937-974b2fe9f31e')
2025-04-29 09:02:24,409 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:02:24,418 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:02:24,422 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 09:02:24,423 - sqlalchemy.engine.Engine - INFO - [generated in 0.00069s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 2, 24, 422292), '3e847395-0e68-4c0e-b937-974b2fe9f31e')
2025-04-29 09:02:24,424 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:02:24,432 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 09:02:24,435 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:02:24,439 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:02:24,442 - sqlalchemy.engine.Engine - INFO - [generated in 0.00238s] ('29e46c45-e595-4a43-b6c5-c2a713d935f0', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '3e847395-0e68-4c0e-b937-974b2fe9f31e', datetime.datetime(2025, 4, 29, 9, 2, 24, 435346), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 9, 2, 24, 439245), datetime.datetime(2025, 4, 29, 9, 2, 24, 439245), 0)
2025-04-29 09:02:24,443 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:02:24,453 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:02:24,455 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 09:02:24,455 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] ('29e46c45-e595-4a43-b6c5-c2a713d935f0',)
2025-04-29 09:02:24,456 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 09:02:24,457 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 09:02:24,457 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 09:02:24,458 - sqlalchemy.engine.Engine - INFO - [generated in 0.00068s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 9, 2, 24, 457053), '29e46c45-e595-4a43-b6c5-c2a713d935f0')
2025-04-29 09:02:24,458 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:02:24,463 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 09:02:24,464 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 09:02:24,464 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-29 09:02:24,465 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:02:24,465 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:02:24,466 - sqlalchemy.engine.Engine - INFO - [cached since 0.02692s ago] ('4defbd2c-eb31-46a5-b4dd-85fe08463510', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"priority": "10", "keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '3e847395-0e68-4c0e-b937-974b2fe9f31e', datetime.datetime(2025, 4, 29, 9, 2, 24, 464378), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 29, 9, 2, 24, 465542), datetime.datetime(2025, 4, 29, 9, 2, 24, 465542), 0)
2025-04-29 09:02:24,467 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:02:24,474 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 4defbd2c-eb31-46a5-b4dd-85fe08463510
2025-04-29 09:02:24,474 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:02:24,475 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 09:02:24,475 - sqlalchemy.engine.Engine - INFO - [cached since 0.02098s ago] ('4defbd2c-eb31-46a5-b4dd-85fe08463510',)
2025-04-29 09:02:24,477 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 09:02:24,477 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 09:02:24,477 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 09:02:24,478 - sqlalchemy.engine.Engine - INFO - [cached since 0.02043s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 29, 9, 2, 24, 477026), '4defbd2c-eb31-46a5-b4dd-85fe08463510')
2025-04-29 09:02:24,478 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:02:24,484 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-29 09:02:24,484 - services.sync_service - INFO - 正在创建选择AMR任务: 3e847395-0e68-4c0e-b937-974b2fe9f31e, 站点: TK01
2025-04-29 09:02:24,563 - services.sync_service - INFO - 成功为任务选择AMR: 3e847395-0e68-4c0e-b937-974b2fe9f31e, AMR: None
2025-04-29 09:02:24,563 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917021616735510530 的AMR选择结果
2025-04-29 09:02:24,563 - services.sync_service - INFO - 开始等待任务块 1917021616735510530 的AMR选择结果
2025-04-29 09:02:24,564 - services.sync_service - INFO - 正在获取任务块详情: 1917021616735510530
2025-04-29 09:02:24,584 - services.sync_service - INFO - 成功获取任务块详情: 1917021616735510530 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917021616735510530', 'taskId': '1917021615850512386', 'tenantId': 1000, 'vwedTaskId': '3e847395-0e68-4c0e-b937-974b2fe9f31e', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:02:25', 'updateTime': None}, 'timestamp': 1745888544651}
2025-04-29 09:02:24,585 - services.sync_service - DEBUG - 任务块 1917021616735510530 AMR选择未完成，已尝试 1 次
2025-04-29 09:02:25,088 - services.sync_service - INFO - 正在获取任务块详情: 1917021616735510530
2025-04-29 09:02:25,164 - services.sync_service - INFO - 成功获取任务块详情: 1917021616735510530 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917021616735510530', 'taskId': '1917021615850512386', 'tenantId': 1000, 'vwedTaskId': '3e847395-0e68-4c0e-b937-974b2fe9f31e', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:02:25', 'updateTime': None}, 'timestamp': 1745888545219}
2025-04-29 09:02:25,166 - services.sync_service - DEBUG - 任务块 1917021616735510530 AMR选择未完成，已尝试 2 次
2025-04-29 09:02:25,404 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:02:25,405 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 09:02:25,406 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] ('3e847395-0e68-4c0e-b937-974b2fe9f31e',)
2025-04-29 09:02:25,407 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:02:25,652 - services.sync_service - INFO - 正在获取任务块详情: 1917021616735510530
2025-04-29 09:02:25,687 - services.sync_service - INFO - 成功获取任务块详情: 1917021616735510530 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917021616735510530', 'taskId': '1917021615850512386', 'tenantId': 1000, 'vwedTaskId': '3e847395-0e68-4c0e-b937-974b2fe9f31e', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:02:25', 'updateTime': None}, 'timestamp': 1745888545753}
2025-04-29 09:02:25,687 - services.sync_service - DEBUG - 任务块 1917021616735510530 AMR选择未完成，已尝试 3 次
2025-04-29 09:02:26,176 - services.sync_service - INFO - 正在获取任务块详情: 1917021616735510530
2025-04-29 09:02:26,222 - services.sync_service - INFO - 成功获取任务块详情: 1917021616735510530 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917021616735510530', 'taskId': '1917021615850512386', 'tenantId': 1000, 'vwedTaskId': '3e847395-0e68-4c0e-b937-974b2fe9f31e', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:02:25', 'updateTime': None}, 'timestamp': 1745888546285}
2025-04-29 09:02:26,224 - services.sync_service - DEBUG - 任务块 1917021616735510530 AMR选择未完成，已尝试 4 次
2025-04-29 09:02:26,422 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:02:26,423 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 09:02:26,424 - sqlalchemy.engine.Engine - INFO - [cached since 1.019s ago] ('3e847395-0e68-4c0e-b937-974b2fe9f31e',)
2025-04-29 09:02:26,425 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:02:26,736 - services.sync_service - INFO - 正在获取任务块详情: 1917021616735510530
2025-04-29 09:02:26,777 - services.sync_service - INFO - 成功获取任务块详情: 1917021616735510530 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917021616735510530', 'taskId': '1917021615850512386', 'tenantId': 1000, 'vwedTaskId': '3e847395-0e68-4c0e-b937-974b2fe9f31e', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:02:25', 'updateTime': '2025-04-29 09:02:27'}, 'timestamp': 1745888546825}
2025-04-29 09:02:26,778 - services.sync_service - INFO - 任务块 1917021616735510530 已选择AMR: 1912328602264645634，共尝试 5 次
2025-04-29 09:02:26,778 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634、指定机器人:、指定机器人组:
2025-04-29 09:02:26,778 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: []
2025-04-29 09:02:26,778 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-29 09:02:26,778 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 0 个
2025-04-29 09:02:26,779 - services.sync_service - INFO - 正在封口任务: 1917021616735510530
2025-04-29 09:02:26,809 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-29 09:02:26,814 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:02:26,819 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:02:26,822 - sqlalchemy.engine.Engine - INFO - [generated in 0.00352s] ('70d9fabd-a882-43ff-9cae-487ca774634a', 1, '{"success": true, "message": "选择执行机器人成功: 1912328602264645634", "code": 200, "result": {"taskBlockId": "1917021616735510530"}, "timestamp": 1745888544629}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '3e847395-0e68-4c0e-b937-974b2fe9f31e', datetime.datetime(2025, 4, 29, 9, 2, 26, 819109), datetime.datetime(2025, 4, 29, 9, 2, 26, 819109), 0)
2025-04-29 09:02:26,827 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:02:26,843 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:02:26,844 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 09:02:26,844 - sqlalchemy.engine.Engine - INFO - [cached since 2.39s ago] ('4defbd2c-eb31-46a5-b4dd-85fe08463510',)
2025-04-29 09:02:26,846 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 09:02:26,846 - services.execution.block_executor - INFO - 为块 b1 存储输出: ['selectedAgvId']
2025-04-29 09:02:26,847 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 09:02:26,847 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] ('{"selectedAgvId": "1912328602264645634"}', datetime.datetime(2025, 4, 29, 9, 2, 26, 846469), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '{"blocks": {"b1": {"selectedAgvId": "1912328602264645634"}}}', '执行成功', datetime.datetime(2025, 4, 29, 9, 2, 26, 846469), '4defbd2c-eb31-46a5-b4dd-85fe08463510')
2025-04-29 09:02:26,848 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:02:26,855 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:02:26,855 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:02:26,856 - sqlalchemy.engine.Engine - INFO - [cached since 0.03746s ago] ('20a5f326-3070-4f93-ab21-342b9cfd6f30', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {}}]}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '3e847395-0e68-4c0e-b937-974b2fe9f31e', datetime.datetime(2025, 4, 29, 9, 2, 26, 855636), datetime.datetime(2025, 4, 29, 9, 2, 26, 855636), 0)
2025-04-29 09:02:26,857 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:02:26,865 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:02:26,865 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 09:02:26,867 - sqlalchemy.engine.Engine - INFO - [cached since 2.412s ago] ('29e46c45-e595-4a43-b6c5-c2a713d935f0',)
2025-04-29 09:02:26,868 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 09:02:26,868 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 09:02:26,869 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 09:02:26,869 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (datetime.datetime(2025, 4, 29, 9, 2, 26, 869014), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 9, 2, 26, 869917), '29e46c45-e595-4a43-b6c5-c2a713d935f0')
2025-04-29 09:02:26,871 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:02:26,876 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:02:26,877 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 09:02:26,878 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (datetime.datetime(2025, 4, 29, 9, 2, 26, 876799), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 2457, 1, datetime.datetime(2025, 4, 29, 9, 2, 26, 877801), '3e847395-0e68-4c0e-b937-974b2fe9f31e')
2025-04-29 09:02:26,879 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:02:26,886 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 3e847395-0e68-4c0e-b937-974b2fe9f31e, 结果: True
2025-04-29 09:03:22,377 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:03:22,378 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:03:22,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:03:22,380 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:03:22,381 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:03:22,382 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:03:22,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:03:22,385 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:03:22,385 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:03:22,385 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:03:22,386 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:03:22,388 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 3, 22, 377761))
2025-04-29 09:03:22,388 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:03:22,389 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:03:22,389 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:03:22,389 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:03:22,390 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:03:22,390 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:03:22,390 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:03:22,390 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:03:22,391 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:03:22,391 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:03:22,392 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:03:22,392 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:03:22,392 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:03:22,392 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:03:22,392 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:03:22,397 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:03:37,393 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:03:37,393 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:03:37,395 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:03:37,395 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:03:37,395 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:03:37,395 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:03:48,120 - app - INFO - 应用程序关闭中...
2025-04-29 09:03:48,120 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 09:03:48,120 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 09:03:48,120 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 09:03:48,120 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 09:03:48,120 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 09:03:48,120 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 09:03:48,120 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 09:03:48,120 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 09:03:48,120 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 09:03:48,120 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 09:03:48,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:03:48,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:03:48,120 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:03:48,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:03:48,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:03:48,120 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-29 09:03:48,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:03:48,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:03:48,120 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-29 09:03:48,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:03:48,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:03:48,120 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-29 09:03:48,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:03:48,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:03:48,120 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-29 09:03:48,120 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 09:03:48,120 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 09:03:48,120 - app - INFO - 增强版任务调度器已停止
2025-04-29 09:03:48,120 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 09:03:48,120 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 09:03:48,120 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 09:03:48,120 - data.session - INFO - 数据库连接已关闭
2025-04-29 09:03:50,698 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 09:03:50,758 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 09:03:50,759 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 09:03:51,435 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 09:03:51,505 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 09:03:51,506 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 09:03:51,586 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 09:03:51,640 - data.session - INFO - 正在初始化数据库...
2025-04-29 09:03:51,672 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 09:03:51,686 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:03:51,688 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:03:51,688 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:03:51,689 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:03:51,689 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:03:51,690 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:03:51,691 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:03:51,691 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 09:03:51,691 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:03:51,692 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 09:03:51,693 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:03:51,693 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 09:03:51,694 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:03:51,694 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 09:03:51,695 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:03:51,698 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 09:03:51,699 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:03:51,700 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 09:03:51,701 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:03:51,703 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 09:03:51,703 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:03:51,705 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 09:03:51,705 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:03:51,706 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 09:03:51,707 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:03:51,708 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 09:03:51,708 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:03:51,709 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 09:03:51,709 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:03:51,710 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:03:51,710 - data.session - INFO - 数据库表初始化完成
2025-04-29 09:03:52,064 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 09:03:52,065 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 09:03:52,066 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 09:03:52,066 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 09:03:52,066 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 09:03:52,066 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 09:03:52,066 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 09:03:52,066 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 09:03:52,066 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 09:03:52,066 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 09:03:52,068 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:03:52,068 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 09:03:52,068 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 09:03:52,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:03:52,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:03:52,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:03:52,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:03:52,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:03:52,070 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 09:03:52,070 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 09:03:52,071 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:03:52,071 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:03:52,072 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:03:52,072 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:03:52,072 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:03:52,072 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:03:52,072 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:03:52,073 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:03:52,082 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 09:03:52,082 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 09:03:52,083 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 09:03:52,084 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:03:52,084 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 09:03:52,085 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 09:03:52,085 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 09:03:52,085 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:03:52,087 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 09:03:52,088 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 09:03:52,089 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:03:52,090 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:03:52,090 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 09:03:52,090 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 09:03:52,091 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 09:03:52,091 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 09:03:52,092 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:03:52,093 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:03:52,093 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 3, 52, 85266))
2025-04-29 09:03:52,094 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:03:54,191 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 09:03:54,195 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:03:54,196 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 09:03:54,196 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 09:03:54,197 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:03:54,199 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:03:54,200 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 09:03:54,200 - sqlalchemy.engine.Engine - INFO - [cached since 0.004369s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 09:03:54,201 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:03:54,202 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 09:03:54,203 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 09:03:54,203 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 09:03:54,203 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:03:54,204 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 09:03:54,205 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] (None, datetime.datetime(2025, 4, 29, 9, 3, 54, 204442), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 09:03:54,205 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:03:54,222 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:03:54,223 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 09:03:54,224 - sqlalchemy.engine.Engine - INFO - [cached since 0.02762s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 09:03:54,226 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:03:54,228 - sqlalchemy.engine.Engine - INFO - [generated in 0.00173s] ('51ba4150-6505-4f69-b0d6-146564358f45', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 3, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (290 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 9, 3, 54, 202776), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 9, 3, 54, 226610), datetime.datetime(2025, 4, 29, 9, 3, 54, 226610), 0)
2025-04-29 09:03:54,229 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:03:54,237 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:03:54,238 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 09:03:54,240 - sqlalchemy.engine.Engine - INFO - [generated in 0.00134s] ('51ba4150-6505-4f69-b0d6-146564358f45',)
2025-04-29 09:03:54,241 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:03:54,242 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 51ba4150-6505-4f69-b0d6-146564358f45 (优先级 1) 添加到队列 0
2025-04-29 09:03:54,245 - services.sync_service - INFO - 正在同步创建任务到天风系统: 51ba4150-6505-4f69-b0d6-146564358f45
2025-04-29 09:03:54,245 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"51ba4150-6505-4f69-b0d6-146564358f45","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 09:03:54","sceneId":"1912043207186550785","needAmr":1}
2025-04-29 09:03:54,302 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 51ba4150-6505-4f69-b0d6-146564358f45, 优先级: 1
2025-04-29 09:03:54,302 - services.execution.task_executor - DEBUG - 任务 51ba4150-6505-4f69-b0d6-146564358f45 设置超时时间: 3600秒
2025-04-29 09:03:54,302 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:03:54,303 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 09:03:54,304 - sqlalchemy.engine.Engine - INFO - [cached since 0.0658s ago] ('51ba4150-6505-4f69-b0d6-146564358f45',)
2025-04-29 09:03:54,306 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 09:03:54,307 - sqlalchemy.engine.Engine - INFO - [cached since 0.1109s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 09:03:54,309 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 09:03:54,309 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (datetime.datetime(2025, 4, 29, 9, 3, 54, 308516), datetime.datetime(2025, 4, 29, 9, 3, 54, 308516), '51ba4150-6505-4f69-b0d6-146564358f45')
2025-04-29 09:03:54,310 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:03:54,317 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:03:54,319 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 09:03:54,322 - sqlalchemy.engine.Engine - INFO - [generated in 0.00284s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 3, 54, 319183), '51ba4150-6505-4f69-b0d6-146564358f45')
2025-04-29 09:03:54,325 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:03:54,332 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 09:03:54,335 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:03:54,339 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:03:54,342 - sqlalchemy.engine.Engine - INFO - [generated in 0.00322s] ('1d0ad760-3e6b-4bae-9614-4f0e833c04f5', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '51ba4150-6505-4f69-b0d6-146564358f45', datetime.datetime(2025, 4, 29, 9, 3, 54, 335066), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 9, 3, 54, 339094), datetime.datetime(2025, 4, 29, 9, 3, 54, 339094), 0)
2025-04-29 09:03:54,346 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:03:54,353 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:03:54,361 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 09:03:54,369 - sqlalchemy.engine.Engine - INFO - [generated in 0.00833s] ('1d0ad760-3e6b-4bae-9614-4f0e833c04f5',)
2025-04-29 09:03:54,370 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 09:03:54,370 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 09:03:54,371 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 09:03:54,372 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 9, 3, 54, 371045), '1d0ad760-3e6b-4bae-9614-4f0e833c04f5')
2025-04-29 09:03:54,373 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:03:54,377 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 09:03:54,378 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 09:03:54,379 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-29 09:03:54,380 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:03:54,384 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:03:54,385 - sqlalchemy.engine.Engine - INFO - [cached since 0.04641s ago] ('6cda02a3-3751-452d-9d40-4d1ec1857412', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"priority": "10", "keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '51ba4150-6505-4f69-b0d6-146564358f45', datetime.datetime(2025, 4, 29, 9, 3, 54, 380706), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 29, 9, 3, 54, 384946), datetime.datetime(2025, 4, 29, 9, 3, 54, 384946), 0)
2025-04-29 09:03:54,388 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:03:54,390 - services.sync_service - INFO - 成功同步任务到系统任务: 51ba4150-6505-4f69-b0d6-146564358f45
2025-04-29 09:03:54,391 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 51ba4150-6505-4f69-b0d6-146564358f45
2025-04-29 09:03:54,393 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 51ba4150-6505-4f69-b0d6-146564358f45
2025-04-29 09:03:54,393 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.2023秒
2025-04-29 09:03:54,395 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 6cda02a3-3751-452d-9d40-4d1ec1857412
2025-04-29 09:03:54,395 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:03:54,398 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 09:03:54,398 - sqlalchemy.engine.Engine - INFO - [cached since 0.03877s ago] ('6cda02a3-3751-452d-9d40-4d1ec1857412',)
2025-04-29 09:03:54,400 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 09:03:54,401 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 09:03:54,401 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 09:03:54,404 - sqlalchemy.engine.Engine - INFO - [cached since 0.03351s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 29, 9, 3, 54, 401989), '6cda02a3-3751-452d-9d40-4d1ec1857412')
2025-04-29 09:03:54,406 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:03:54,413 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-29 09:03:54,414 - services.sync_service - INFO - 正在创建选择AMR任务: 51ba4150-6505-4f69-b0d6-146564358f45, 站点: TK01
2025-04-29 09:03:54,480 - services.sync_service - INFO - 成功为任务选择AMR: 51ba4150-6505-4f69-b0d6-146564358f45, AMR: None
2025-04-29 09:03:54,481 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917021993887326209 的AMR选择结果
2025-04-29 09:03:54,481 - services.sync_service - INFO - 开始等待任务块 1917021993887326209 的AMR选择结果
2025-04-29 09:03:54,482 - services.sync_service - INFO - 正在获取任务块详情: 1917021993887326209
2025-04-29 09:03:54,502 - services.sync_service - INFO - 成功获取任务块详情: 1917021993887326209 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917021993887326209', 'taskId': '1917021993245597697', 'tenantId': 1000, 'vwedTaskId': '51ba4150-6505-4f69-b0d6-146564358f45', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:03:55', 'updateTime': None}, 'timestamp': 1745888634571}
2025-04-29 09:03:54,505 - services.sync_service - DEBUG - 任务块 1917021993887326209 AMR选择未完成，已尝试 1 次
2025-04-29 09:03:55,013 - services.sync_service - INFO - 正在获取任务块详情: 1917021993887326209
2025-04-29 09:03:55,140 - services.sync_service - INFO - 成功获取任务块详情: 1917021993887326209 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917021993887326209', 'taskId': '1917021993245597697', 'tenantId': 1000, 'vwedTaskId': '51ba4150-6505-4f69-b0d6-146564358f45', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:03:55', 'updateTime': None}, 'timestamp': 1745888635197}
2025-04-29 09:03:55,140 - services.sync_service - DEBUG - 任务块 1917021993887326209 AMR选择未完成，已尝试 2 次
2025-04-29 09:03:55,312 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:03:55,313 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 09:03:55,314 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] ('51ba4150-6505-4f69-b0d6-146564358f45',)
2025-04-29 09:03:55,314 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:03:55,633 - services.sync_service - INFO - 正在获取任务块详情: 1917021993887326209
2025-04-29 09:03:55,734 - services.sync_service - INFO - 成功获取任务块详情: 1917021993887326209 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917021993887326209', 'taskId': '1917021993245597697', 'tenantId': 1000, 'vwedTaskId': '51ba4150-6505-4f69-b0d6-146564358f45', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:03:55', 'updateTime': None}, 'timestamp': 1745888635758}
2025-04-29 09:03:55,736 - services.sync_service - DEBUG - 任务块 1917021993887326209 AMR选择未完成，已尝试 3 次
2025-04-29 09:03:56,242 - services.sync_service - INFO - 正在获取任务块详情: 1917021993887326209
2025-04-29 09:03:56,286 - services.sync_service - INFO - 成功获取任务块详情: 1917021993887326209 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917021993887326209', 'taskId': '1917021993245597697', 'tenantId': 1000, 'vwedTaskId': '51ba4150-6505-4f69-b0d6-146564358f45', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:03:55', 'updateTime': None}, 'timestamp': 1745888636354}
2025-04-29 09:03:56,289 - services.sync_service - DEBUG - 任务块 1917021993887326209 AMR选择未完成，已尝试 4 次
2025-04-29 09:03:56,324 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:03:56,326 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 09:03:56,326 - sqlalchemy.engine.Engine - INFO - [cached since 1.013s ago] ('51ba4150-6505-4f69-b0d6-146564358f45',)
2025-04-29 09:03:56,327 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:03:56,798 - services.sync_service - INFO - 正在获取任务块详情: 1917021993887326209
2025-04-29 09:03:56,847 - services.sync_service - INFO - 成功获取任务块详情: 1917021993887326209 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917021993887326209', 'taskId': '1917021993245597697', 'tenantId': 1000, 'vwedTaskId': '51ba4150-6505-4f69-b0d6-146564358f45', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:03:55', 'updateTime': '2025-04-29 09:03:57'}, 'timestamp': 1745888636909}
2025-04-29 09:03:56,847 - services.sync_service - INFO - 任务块 1917021993887326209 已选择AMR: 1912328602264645634，共尝试 5 次
2025-04-29 09:03:56,848 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634、指定机器人:、指定机器人组:
2025-04-29 09:03:56,848 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: []
2025-04-29 09:03:56,848 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-29 09:03:56,848 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 0 个
2025-04-29 09:03:56,848 - services.sync_service - INFO - 正在封口任务: 1917021993887326209
2025-04-29 09:03:56,917 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-29 09:03:56,919 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:03:56,920 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:03:56,921 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] ('ee182c55-2697-4be5-91f4-e1edb179bdea', 1, '{"success": true, "message": "选择执行机器人成功: 1912328602264645634", "code": 200, "result": {"taskBlockId": "1917021993887326209"}, "timestamp": 1745888634549}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '51ba4150-6505-4f69-b0d6-146564358f45', datetime.datetime(2025, 4, 29, 9, 3, 56, 920834), datetime.datetime(2025, 4, 29, 9, 3, 56, 920834), 0)
2025-04-29 09:03:56,923 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:03:56,930 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:03:56,931 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 09:03:56,931 - sqlalchemy.engine.Engine - INFO - [cached since 2.571s ago] ('6cda02a3-3751-452d-9d40-4d1ec1857412',)
2025-04-29 09:03:56,932 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 09:03:56,932 - services.execution.block_executor - INFO - 为块 b1 存储输出: ['selectedAgvId']
2025-04-29 09:03:56,934 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 09:03:56,934 - sqlalchemy.engine.Engine - INFO - [generated in 0.00062s] ('{"selectedAgvId": "1912328602264645634"}', datetime.datetime(2025, 4, 29, 9, 3, 56, 932130), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '{"blocks": {"b1": {"selectedAgvId": "1912328602264645634"}}}', '执行成功', datetime.datetime(2025, 4, 29, 9, 3, 56, 934131), '6cda02a3-3751-452d-9d40-4d1ec1857412')
2025-04-29 09:03:56,936 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:03:56,941 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:03:56,941 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:03:56,942 - sqlalchemy.engine.Engine - INFO - [cached since 0.02118s ago] ('ff9abc27-c840-4d34-aaf6-dcb06cf08621', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {}}]}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '51ba4150-6505-4f69-b0d6-146564358f45', datetime.datetime(2025, 4, 29, 9, 3, 56, 941580), datetime.datetime(2025, 4, 29, 9, 3, 56, 941580), 0)
2025-04-29 09:03:56,942 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:03:56,950 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:03:56,950 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 09:03:56,951 - sqlalchemy.engine.Engine - INFO - [cached since 2.591s ago] ('1d0ad760-3e6b-4bae-9614-4f0e833c04f5',)
2025-04-29 09:03:56,951 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 09:03:56,952 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 09:03:56,953 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 09:03:56,953 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] (datetime.datetime(2025, 4, 29, 9, 3, 56, 952599), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 9, 3, 56, 953599), '1d0ad760-3e6b-4bae-9614-4f0e833c04f5')
2025-04-29 09:03:56,954 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:03:56,959 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:03:56,962 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 09:03:56,964 - sqlalchemy.engine.Engine - INFO - [generated in 0.00171s] (datetime.datetime(2025, 4, 29, 9, 3, 56, 959718), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 2641, 1, datetime.datetime(2025, 4, 29, 9, 3, 56, 962878), '51ba4150-6505-4f69-b0d6-146564358f45')
2025-04-29 09:03:56,969 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:03:56,978 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 51ba4150-6505-4f69-b0d6-146564358f45, 结果: True
2025-04-29 09:04:52,069 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:04:52,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:04:52,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:04:52,071 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:04:52,071 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:04:52,071 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:04:52,072 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:04:52,072 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:04:52,072 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:04:52,072 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:04:52,072 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:04:52,073 - sqlalchemy.engine.Engine - INFO - [cached since 59.98s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 4, 52, 70002))
2025-04-29 09:04:52,073 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:04:52,073 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:04:52,073 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:04:52,073 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:04:52,073 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:04:52,073 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:04:52,073 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:04:52,073 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:04:52,073 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:04:52,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:04:52,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:04:52,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:04:52,075 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:04:52,075 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:04:52,075 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:04:52,079 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:05:07,080 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:05:07,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:05:07,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:05:07,081 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:05:07,081 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:05:07,081 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:05:44,997 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 09:05:44,998 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:44,998 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 09:05:44,998 - sqlalchemy.engine.Engine - INFO - [cached since 110.8s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 09:05:44,999 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:45,000 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:45,000 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 09:05:45,001 - sqlalchemy.engine.Engine - INFO - [cached since 110.8s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 09:05:45,002 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:45,002 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 09:05:45,002 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 09:05:45,002 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 09:05:45,003 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:45,003 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 09:05:45,003 - sqlalchemy.engine.Engine - INFO - [cached since 110.8s ago] (None, datetime.datetime(2025, 4, 29, 9, 5, 45, 3980), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 09:05:45,004 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:45,019 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:45,020 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 09:05:45,020 - sqlalchemy.engine.Engine - INFO - [cached since 110.8s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 09:05:45,021 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:05:45,021 - sqlalchemy.engine.Engine - INFO - [cached since 110.8s ago] ('ecc142bd-4dd2-4ca4-91a4-01545ebe737f', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 3, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (290 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 9, 5, 45, 2893), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 9, 5, 45, 21222), datetime.datetime(2025, 4, 29, 9, 5, 45, 21222), 0)
2025-04-29 09:05:45,022 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:45,030 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:45,031 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 09:05:45,031 - sqlalchemy.engine.Engine - INFO - [cached since 110.8s ago] ('ecc142bd-4dd2-4ca4-91a4-01545ebe737f',)
2025-04-29 09:05:45,032 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:45,033 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 ecc142bd-4dd2-4ca4-91a4-01545ebe737f (优先级 1) 添加到队列 0
2025-04-29 09:05:45,033 - services.sync_service - INFO - 正在同步创建任务到天风系统: ecc142bd-4dd2-4ca4-91a4-01545ebe737f
2025-04-29 09:05:45,033 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"ecc142bd-4dd2-4ca4-91a4-01545ebe737f","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 09:05:45","sceneId":"1912043207186550785","needAmr":1}
2025-04-29 09:05:45,049 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: ecc142bd-4dd2-4ca4-91a4-01545ebe737f, 优先级: 1
2025-04-29 09:05:45,049 - services.execution.task_executor - DEBUG - 任务 ecc142bd-4dd2-4ca4-91a4-01545ebe737f 设置超时时间: 3600秒
2025-04-29 09:05:45,049 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:45,052 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 09:05:45,053 - sqlalchemy.engine.Engine - INFO - [cached since 110.8s ago] ('ecc142bd-4dd2-4ca4-91a4-01545ebe737f',)
2025-04-29 09:05:45,054 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 09:05:45,054 - sqlalchemy.engine.Engine - INFO - [cached since 110.9s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 09:05:45,055 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 09:05:45,055 - sqlalchemy.engine.Engine - INFO - [cached since 110.7s ago] (datetime.datetime(2025, 4, 29, 9, 5, 45, 55985), datetime.datetime(2025, 4, 29, 9, 5, 45, 55985), 'ecc142bd-4dd2-4ca4-91a4-01545ebe737f')
2025-04-29 09:05:45,058 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:45,065 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:45,066 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 09:05:45,066 - sqlalchemy.engine.Engine - INFO - [cached since 110.7s ago] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 5, 45, 66217), 'ecc142bd-4dd2-4ca4-91a4-01545ebe737f')
2025-04-29 09:05:45,067 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:45,071 - services.sync_service - INFO - 成功同步任务到系统任务: ecc142bd-4dd2-4ca4-91a4-01545ebe737f
2025-04-29 09:05:45,072 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: ecc142bd-4dd2-4ca4-91a4-01545ebe737f
2025-04-29 09:05:45,072 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: ecc142bd-4dd2-4ca4-91a4-01545ebe737f
2025-04-29 09:05:45,072 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0755秒
2025-04-29 09:05:45,076 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 09:05:45,076 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:45,077 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:05:45,077 - sqlalchemy.engine.Engine - INFO - [cached since 110.7s ago] ('aca2f671-6db9-4a33-839e-6884d0742051', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'ecc142bd-4dd2-4ca4-91a4-01545ebe737f', datetime.datetime(2025, 4, 29, 9, 5, 45, 76665), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 9, 5, 45, 77672), datetime.datetime(2025, 4, 29, 9, 5, 45, 77672), 0)
2025-04-29 09:05:45,078 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:45,089 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:45,089 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 09:05:45,089 - sqlalchemy.engine.Engine - INFO - [cached since 110.7s ago] ('aca2f671-6db9-4a33-839e-6884d0742051',)
2025-04-29 09:05:45,090 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 09:05:45,090 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 09:05:45,090 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 09:05:45,090 - sqlalchemy.engine.Engine - INFO - [cached since 110.7s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 9, 5, 45, 90571), 'aca2f671-6db9-4a33-839e-6884d0742051')
2025-04-29 09:05:45,091 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:45,098 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 09:05:45,098 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 09:05:45,098 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-29 09:05:45,099 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:45,100 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:05:45,100 - sqlalchemy.engine.Engine - INFO - [cached since 110.8s ago] ('cfbf2ec3-3805-4eac-a21f-4dac6a60e0ce', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"priority": "10", "keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'ecc142bd-4dd2-4ca4-91a4-01545ebe737f', datetime.datetime(2025, 4, 29, 9, 5, 45, 99266), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 29, 9, 5, 45, 100319), datetime.datetime(2025, 4, 29, 9, 5, 45, 100319), 0)
2025-04-29 09:05:45,101 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:45,110 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: cfbf2ec3-3805-4eac-a21f-4dac6a60e0ce
2025-04-29 09:05:45,111 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:45,112 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 09:05:45,114 - sqlalchemy.engine.Engine - INFO - [cached since 110.8s ago] ('cfbf2ec3-3805-4eac-a21f-4dac6a60e0ce',)
2025-04-29 09:05:45,115 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 09:05:45,116 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 09:05:45,117 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 09:05:45,118 - sqlalchemy.engine.Engine - INFO - [cached since 110.7s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 29, 9, 5, 45, 117163), 'cfbf2ec3-3805-4eac-a21f-4dac6a60e0ce')
2025-04-29 09:05:45,121 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:45,127 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-29 09:05:45,128 - services.sync_service - INFO - 正在创建选择AMR任务: ecc142bd-4dd2-4ca4-91a4-01545ebe737f, 站点: TK01
2025-04-29 09:05:45,192 - services.sync_service - INFO - 成功为任务选择AMR: ecc142bd-4dd2-4ca4-91a4-01545ebe737f, AMR: None
2025-04-29 09:05:45,192 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917022458247110657 的AMR选择结果
2025-04-29 09:05:45,193 - services.sync_service - INFO - 开始等待任务块 1917022458247110657 的AMR选择结果
2025-04-29 09:05:45,193 - services.sync_service - INFO - 正在获取任务块详情: 1917022458247110657
2025-04-29 09:05:45,241 - services.sync_service - INFO - 成功获取任务块详情: 1917022458247110657 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917022458247110657', 'taskId': '1917022457739599873', 'tenantId': 1000, 'vwedTaskId': 'ecc142bd-4dd2-4ca4-91a4-01545ebe737f', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:05:45', 'updateTime': None}, 'timestamp': 1745888745295}
2025-04-29 09:05:45,243 - services.sync_service - DEBUG - 任务块 1917022458247110657 AMR选择未完成，已尝试 1 次
2025-04-29 09:05:45,761 - services.sync_service - INFO - 正在获取任务块详情: 1917022458247110657
2025-04-29 09:05:45,812 - services.sync_service - INFO - 成功获取任务块详情: 1917022458247110657 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917022458247110657', 'taskId': '1917022457739599873', 'tenantId': 1000, 'vwedTaskId': 'ecc142bd-4dd2-4ca4-91a4-01545ebe737f', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:05:45', 'updateTime': None}, 'timestamp': 1745888745879}
2025-04-29 09:05:45,812 - services.sync_service - DEBUG - 任务块 1917022458247110657 AMR选择未完成，已尝试 2 次
2025-04-29 09:05:46,061 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:46,063 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 09:05:46,063 - sqlalchemy.engine.Engine - INFO - [cached since 110.7s ago] ('ecc142bd-4dd2-4ca4-91a4-01545ebe737f',)
2025-04-29 09:05:46,064 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:46,324 - services.sync_service - INFO - 正在获取任务块详情: 1917022458247110657
2025-04-29 09:05:46,384 - services.sync_service - INFO - 成功获取任务块详情: 1917022458247110657 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917022458247110657', 'taskId': '1917022457739599873', 'tenantId': 1000, 'vwedTaskId': 'ecc142bd-4dd2-4ca4-91a4-01545ebe737f', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:05:45', 'updateTime': None}, 'timestamp': 1745888746443}
2025-04-29 09:05:46,384 - services.sync_service - DEBUG - 任务块 1917022458247110657 AMR选择未完成，已尝试 3 次
2025-04-29 09:05:46,897 - services.sync_service - INFO - 正在获取任务块详情: 1917022458247110657
2025-04-29 09:05:46,923 - services.sync_service - INFO - 成功获取任务块详情: 1917022458247110657 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917022458247110657', 'taskId': '1917022457739599873', 'tenantId': 1000, 'vwedTaskId': 'ecc142bd-4dd2-4ca4-91a4-01545ebe737f', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:05:45', 'updateTime': '2025-04-29 09:05:47'}, 'timestamp': 1745888746987}
2025-04-29 09:05:46,923 - services.sync_service - INFO - 任务块 1917022458247110657 已选择AMR: 1912328602264645634，共尝试 4 次
2025-04-29 09:05:46,924 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634、指定机器人:、指定机器人组:
2025-04-29 09:05:46,924 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: []
2025-04-29 09:05:46,925 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-29 09:05:46,925 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 0 个
2025-04-29 09:05:46,926 - services.sync_service - INFO - 正在封口任务: 1917022458247110657
2025-04-29 09:05:46,984 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-29 09:05:46,986 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:46,986 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:05:46,987 - sqlalchemy.engine.Engine - INFO - [cached since 110.1s ago] ('79440331-fade-4d28-a19d-858492be9193', 1, '{"success": true, "message": "选择执行机器人成功: 1912328602264645634", "code": 200, "result": {"taskBlockId": "1917022458247110657"}, "timestamp": 1745888745261}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'ecc142bd-4dd2-4ca4-91a4-01545ebe737f', datetime.datetime(2025, 4, 29, 9, 5, 46, 986105), datetime.datetime(2025, 4, 29, 9, 5, 46, 986105), 0)
2025-04-29 09:05:46,988 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:46,995 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:46,996 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 09:05:46,996 - sqlalchemy.engine.Engine - INFO - [cached since 112.6s ago] ('cfbf2ec3-3805-4eac-a21f-4dac6a60e0ce',)
2025-04-29 09:05:46,997 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 09:05:46,997 - services.execution.block_executor - INFO - 为块 b1 存储输出: ['selectedAgvId']
2025-04-29 09:05:46,998 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 09:05:46,998 - sqlalchemy.engine.Engine - INFO - [cached since 110.1s ago] ('{"selectedAgvId": "1912328602264645634"}', datetime.datetime(2025, 4, 29, 9, 5, 46, 998547), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '{"blocks": {"b1": {"selectedAgvId": "1912328602264645634"}}}', '执行成功', datetime.datetime(2025, 4, 29, 9, 5, 46, 998547), 'cfbf2ec3-3805-4eac-a21f-4dac6a60e0ce')
2025-04-29 09:05:46,999 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:47,006 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:47,006 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:05:47,008 - sqlalchemy.engine.Engine - INFO - [cached since 110.1s ago] ('7476c143-7778-4597-8994-288a4c6fcb16', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {}}]}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'ecc142bd-4dd2-4ca4-91a4-01545ebe737f', datetime.datetime(2025, 4, 29, 9, 5, 47, 6915), datetime.datetime(2025, 4, 29, 9, 5, 47, 6915), 0)
2025-04-29 09:05:47,008 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:47,015 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:47,015 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 09:05:47,016 - sqlalchemy.engine.Engine - INFO - [cached since 112.7s ago] ('aca2f671-6db9-4a33-839e-6884d0742051',)
2025-04-29 09:05:47,017 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 09:05:47,017 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 09:05:47,017 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 09:05:47,018 - sqlalchemy.engine.Engine - INFO - [cached since 110.1s ago] (datetime.datetime(2025, 4, 29, 9, 5, 47, 17660), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 9, 5, 47, 17660), 'aca2f671-6db9-4a33-839e-6884d0742051')
2025-04-29 09:05:47,018 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:47,024 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:47,025 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 09:05:47,025 - sqlalchemy.engine.Engine - INFO - [cached since 110.1s ago] (datetime.datetime(2025, 4, 29, 9, 5, 47, 24436), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 1959, 1, datetime.datetime(2025, 4, 29, 9, 5, 47, 25588), 'ecc142bd-4dd2-4ca4-91a4-01545ebe737f')
2025-04-29 09:05:47,026 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:47,031 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 完成任务: ecc142bd-4dd2-4ca4-91a4-01545ebe737f, 结果: True
2025-04-29 09:05:51,431 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 09:05:51,432 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:51,433 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 09:05:51,433 - sqlalchemy.engine.Engine - INFO - [cached since 117.2s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 09:05:51,436 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:51,436 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:51,437 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 09:05:51,437 - sqlalchemy.engine.Engine - INFO - [cached since 117.2s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 09:05:51,439 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:51,440 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 09:05:51,440 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 09:05:51,440 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 09:05:51,441 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:51,441 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 09:05:51,441 - sqlalchemy.engine.Engine - INFO - [cached since 117.2s ago] (None, datetime.datetime(2025, 4, 29, 9, 5, 51, 441686), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 09:05:51,443 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:51,459 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:51,459 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 09:05:51,459 - sqlalchemy.engine.Engine - INFO - [cached since 117.3s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 09:05:51,460 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:05:51,461 - sqlalchemy.engine.Engine - INFO - [cached since 117.2s ago] ('6730c148-8666-49ae-9217-d230235207d8', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 3, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (290 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 9, 5, 51, 440693), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 9, 5, 51, 460734), datetime.datetime(2025, 4, 29, 9, 5, 51, 460734), 0)
2025-04-29 09:05:51,462 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:51,471 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:51,473 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 09:05:51,473 - sqlalchemy.engine.Engine - INFO - [cached since 117.2s ago] ('6730c148-8666-49ae-9217-d230235207d8',)
2025-04-29 09:05:51,475 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:51,475 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 6730c148-8666-49ae-9217-d230235207d8 (优先级 1) 添加到队列 0
2025-04-29 09:05:51,476 - services.sync_service - INFO - 正在同步创建任务到天风系统: 6730c148-8666-49ae-9217-d230235207d8
2025-04-29 09:05:51,476 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"6730c148-8666-49ae-9217-d230235207d8","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 09:05:51","sceneId":"1912043207186550785","needAmr":1}
2025-04-29 09:05:51,503 - services.sync_service - INFO - 成功同步任务到系统任务: 6730c148-8666-49ae-9217-d230235207d8
2025-04-29 09:05:51,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 6730c148-8666-49ae-9217-d230235207d8, 优先级: 1
2025-04-29 09:05:51,505 - services.execution.task_executor - DEBUG - 任务 6730c148-8666-49ae-9217-d230235207d8 设置超时时间: 3600秒
2025-04-29 09:05:51,506 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 6730c148-8666-49ae-9217-d230235207d8
2025-04-29 09:05:51,506 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 6730c148-8666-49ae-9217-d230235207d8
2025-04-29 09:05:51,506 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0758秒
2025-04-29 09:05:51,509 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:51,511 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 09:05:51,517 - sqlalchemy.engine.Engine - INFO - [cached since 117.3s ago] ('6730c148-8666-49ae-9217-d230235207d8',)
2025-04-29 09:05:51,518 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 09:05:51,518 - sqlalchemy.engine.Engine - INFO - [cached since 117.3s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 09:05:51,520 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 09:05:51,521 - sqlalchemy.engine.Engine - INFO - [cached since 117.2s ago] (datetime.datetime(2025, 4, 29, 9, 5, 51, 520372), datetime.datetime(2025, 4, 29, 9, 5, 51, 520372), '6730c148-8666-49ae-9217-d230235207d8')
2025-04-29 09:05:51,522 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:51,527 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:51,527 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 09:05:51,528 - sqlalchemy.engine.Engine - INFO - [cached since 117.2s ago] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 5, 51, 527742), '6730c148-8666-49ae-9217-d230235207d8')
2025-04-29 09:05:51,543 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:51,553 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 09:05:51,553 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:51,554 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:05:51,555 - sqlalchemy.engine.Engine - INFO - [cached since 117.2s ago] ('6b723d66-9ae5-42c8-b4ec-c4a187af4990', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6730c148-8666-49ae-9217-d230235207d8', datetime.datetime(2025, 4, 29, 9, 5, 51, 553472), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 9, 5, 51, 554898), datetime.datetime(2025, 4, 29, 9, 5, 51, 554898), 0)
2025-04-29 09:05:51,555 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:51,560 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:51,561 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 09:05:51,561 - sqlalchemy.engine.Engine - INFO - [cached since 117.2s ago] ('6b723d66-9ae5-42c8-b4ec-c4a187af4990',)
2025-04-29 09:05:51,562 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 09:05:51,562 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 09:05:51,562 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 09:05:51,562 - sqlalchemy.engine.Engine - INFO - [cached since 117.2s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 9, 5, 51, 562934), '6b723d66-9ae5-42c8-b4ec-c4a187af4990')
2025-04-29 09:05:51,568 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:51,574 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 09:05:51,575 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 09:05:51,575 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-29 09:05:51,576 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:51,577 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:05:51,579 - sqlalchemy.engine.Engine - INFO - [cached since 117.2s ago] ('ed6de94c-e1fe-4cf1-be5a-fc1e80186b48', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"priority": "10", "keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6730c148-8666-49ae-9217-d230235207d8', datetime.datetime(2025, 4, 29, 9, 5, 51, 576626), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 29, 9, 5, 51, 577626), datetime.datetime(2025, 4, 29, 9, 5, 51, 577626), 0)
2025-04-29 09:05:51,583 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:51,591 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: ed6de94c-e1fe-4cf1-be5a-fc1e80186b48
2025-04-29 09:05:51,592 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:51,596 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 09:05:51,598 - sqlalchemy.engine.Engine - INFO - [cached since 117.2s ago] ('ed6de94c-e1fe-4cf1-be5a-fc1e80186b48',)
2025-04-29 09:05:51,602 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 09:05:51,602 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 09:05:51,602 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 09:05:51,603 - sqlalchemy.engine.Engine - INFO - [cached since 117.2s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 29, 9, 5, 51, 602626), 'ed6de94c-e1fe-4cf1-be5a-fc1e80186b48')
2025-04-29 09:05:51,604 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:51,611 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-29 09:05:51,611 - services.sync_service - INFO - 正在创建选择AMR任务: 6730c148-8666-49ae-9217-d230235207d8, 站点: TK01
2025-04-29 09:05:51,655 - services.sync_service - INFO - 成功为任务选择AMR: 6730c148-8666-49ae-9217-d230235207d8, AMR: None
2025-04-29 09:05:51,655 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917022485279399937 的AMR选择结果
2025-04-29 09:05:51,655 - services.sync_service - INFO - 开始等待任务块 1917022485279399937 的AMR选择结果
2025-04-29 09:05:51,655 - services.sync_service - INFO - 正在获取任务块详情: 1917022485279399937
2025-04-29 09:05:51,709 - services.sync_service - INFO - 成功获取任务块详情: 1917022485279399937 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917022485279399937', 'taskId': '1917022484713168897', 'tenantId': 1000, 'vwedTaskId': '6730c148-8666-49ae-9217-d230235207d8', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:05:52', 'updateTime': None}, 'timestamp': 1745888751776}
2025-04-29 09:05:51,709 - services.sync_service - DEBUG - 任务块 1917022485279399937 AMR选择未完成，已尝试 1 次
2025-04-29 09:05:52,084 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:52,085 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:05:52,085 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 5, 52, 84860))
2025-04-29 09:05:52,087 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:52,118 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:05:52,118 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:05:52,119 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:05:52,119 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:05:52,119 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:05:52,119 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:05:52,119 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:05:52,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:05:52,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:05:52,120 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:05:52,120 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:05:52,120 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:05:52,121 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:05:52,121 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:05:52,121 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:05:52,121 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:05:52,121 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:05:52,125 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:05:52,226 - services.sync_service - INFO - 正在获取任务块详情: 1917022485279399937
2025-04-29 09:05:52,256 - services.sync_service - INFO - 成功获取任务块详情: 1917022485279399937 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917022485279399937', 'taskId': '1917022484713168897', 'tenantId': 1000, 'vwedTaskId': '6730c148-8666-49ae-9217-d230235207d8', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:05:52', 'updateTime': None}, 'timestamp': 1745888752324}
2025-04-29 09:05:52,256 - services.sync_service - DEBUG - 任务块 1917022485279399937 AMR选择未完成，已尝试 2 次
2025-04-29 09:05:52,521 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:52,522 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 09:05:52,522 - sqlalchemy.engine.Engine - INFO - [cached since 117.2s ago] ('6730c148-8666-49ae-9217-d230235207d8',)
2025-04-29 09:05:52,523 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:52,769 - services.sync_service - INFO - 正在获取任务块详情: 1917022485279399937
2025-04-29 09:05:52,825 - services.sync_service - INFO - 成功获取任务块详情: 1917022485279399937 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917022485279399937', 'taskId': '1917022484713168897', 'tenantId': 1000, 'vwedTaskId': '6730c148-8666-49ae-9217-d230235207d8', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:05:52', 'updateTime': None}, 'timestamp': 1745888752859}
2025-04-29 09:05:52,826 - services.sync_service - DEBUG - 任务块 1917022485279399937 AMR选择未完成，已尝试 3 次
2025-04-29 09:05:53,335 - services.sync_service - INFO - 正在获取任务块详情: 1917022485279399937
2025-04-29 09:05:53,378 - services.sync_service - INFO - 成功获取任务块详情: 1917022485279399937 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917022485279399937', 'taskId': '1917022484713168897', 'tenantId': 1000, 'vwedTaskId': '6730c148-8666-49ae-9217-d230235207d8', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:05:52', 'updateTime': None}, 'timestamp': 1745888753437}
2025-04-29 09:05:53,379 - services.sync_service - DEBUG - 任务块 1917022485279399937 AMR选择未完成，已尝试 4 次
2025-04-29 09:05:53,536 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:53,537 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 09:05:53,537 - sqlalchemy.engine.Engine - INFO - [cached since 118.2s ago] ('6730c148-8666-49ae-9217-d230235207d8',)
2025-04-29 09:05:53,538 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:53,886 - services.sync_service - INFO - 正在获取任务块详情: 1917022485279399937
2025-04-29 09:05:53,922 - services.sync_service - INFO - 成功获取任务块详情: 1917022485279399937 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917022485279399937', 'taskId': '1917022484713168897', 'tenantId': 1000, 'vwedTaskId': '6730c148-8666-49ae-9217-d230235207d8', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:05:52', 'updateTime': None}, 'timestamp': 1745888753980}
2025-04-29 09:05:53,922 - services.sync_service - DEBUG - 任务块 1917022485279399937 AMR选择未完成，已尝试 5 次
2025-04-29 09:05:54,418 - services.sync_service - INFO - 正在获取任务块详情: 1917022485279399937
2025-04-29 09:05:54,550 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:54,552 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 09:05:54,552 - sqlalchemy.engine.Engine - INFO - [cached since 119.2s ago] ('6730c148-8666-49ae-9217-d230235207d8',)
2025-04-29 09:05:54,553 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:55,506 - services.sync_service - INFO - 成功获取任务块详情: 1917022485279399937 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917022485279399937', 'taskId': '1917022484713168897', 'tenantId': 1000, 'vwedTaskId': '6730c148-8666-49ae-9217-d230235207d8', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:05:52', 'updateTime': None}, 'timestamp': 1745888755221}
2025-04-29 09:05:55,507 - services.sync_service - DEBUG - 任务块 1917022485279399937 AMR选择未完成，已尝试 6 次
2025-04-29 09:05:55,569 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:55,569 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 09:05:55,570 - sqlalchemy.engine.Engine - INFO - [cached since 120.3s ago] ('6730c148-8666-49ae-9217-d230235207d8',)
2025-04-29 09:05:55,574 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:56,016 - services.sync_service - INFO - 正在获取任务块详情: 1917022485279399937
2025-04-29 09:05:56,099 - services.sync_service - INFO - 成功获取任务块详情: 1917022485279399937 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917022485279399937', 'taskId': '1917022484713168897', 'tenantId': 1000, 'vwedTaskId': '6730c148-8666-49ae-9217-d230235207d8', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:05:52', 'updateTime': None}, 'timestamp': 1745888756135}
2025-04-29 09:05:56,100 - services.sync_service - DEBUG - 任务块 1917022485279399937 AMR选择未完成，已尝试 7 次
2025-04-29 09:05:56,601 - services.sync_service - INFO - 正在获取任务块详情: 1917022485279399937
2025-04-29 09:05:56,602 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:56,602 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 09:05:56,602 - sqlalchemy.engine.Engine - INFO - [cached since 121.3s ago] ('6730c148-8666-49ae-9217-d230235207d8',)
2025-04-29 09:05:56,603 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:56,619 - services.sync_service - INFO - 成功获取任务块详情: 1917022485279399937 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917022485279399937', 'taskId': '1917022484713168897', 'tenantId': 1000, 'vwedTaskId': '6730c148-8666-49ae-9217-d230235207d8', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:05:52', 'updateTime': None}, 'timestamp': 1745888756689}
2025-04-29 09:05:56,621 - services.sync_service - DEBUG - 任务块 1917022485279399937 AMR选择未完成，已尝试 8 次
2025-04-29 09:05:57,119 - services.sync_service - INFO - 正在获取任务块详情: 1917022485279399937
2025-04-29 09:05:57,197 - services.sync_service - INFO - 成功获取任务块详情: 1917022485279399937 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917022485279399937', 'taskId': '1917022484713168897', 'tenantId': 1000, 'vwedTaskId': '6730c148-8666-49ae-9217-d230235207d8', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:05:52', 'updateTime': '2025-04-29 09:05:57'}, 'timestamp': 1745888757257}
2025-04-29 09:05:57,198 - services.sync_service - INFO - 任务块 1917022485279399937 已选择AMR: 1912328602264645634，共尝试 9 次
2025-04-29 09:05:57,198 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634、指定机器人:、指定机器人组:
2025-04-29 09:05:57,198 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: []
2025-04-29 09:05:57,198 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-29 09:05:57,198 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 0 个
2025-04-29 09:05:57,198 - services.sync_service - INFO - 正在封口任务: 1917022485279399937
2025-04-29 09:05:57,232 - services.sync_service - WARNING - 封口任务失败: Not Found
2025-04-29 09:05:57,233 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:57,233 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:05:57,235 - sqlalchemy.engine.Engine - INFO - [cached since 120.3s ago] ('2f4ba81c-960b-4006-9162-c7129b94c008', 1, '{"success": true, "message": "选择执行机器人成功: 1912328602264645634", "code": 200, "result": {"taskBlockId": "1917022485279399937"}, "timestamp": 1745888751706}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6730c148-8666-49ae-9217-d230235207d8', datetime.datetime(2025, 4, 29, 9, 5, 57, 233486), datetime.datetime(2025, 4, 29, 9, 5, 57, 233486), 0)
2025-04-29 09:05:57,235 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:57,252 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:57,253 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 09:05:57,253 - sqlalchemy.engine.Engine - INFO - [cached since 122.9s ago] ('ed6de94c-e1fe-4cf1-be5a-fc1e80186b48',)
2025-04-29 09:05:57,253 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 09:05:57,255 - services.execution.block_executor - INFO - 为块 b1 存储输出: ['selectedAgvId']
2025-04-29 09:05:57,255 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 09:05:57,255 - sqlalchemy.engine.Engine - INFO - [cached since 120.3s ago] ('{"selectedAgvId": "1912328602264645634"}', datetime.datetime(2025, 4, 29, 9, 5, 57, 255048), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '{"blocks": {"b1": {"selectedAgvId": "1912328602264645634"}}}', '执行成功', datetime.datetime(2025, 4, 29, 9, 5, 57, 255048), 'ed6de94c-e1fe-4cf1-be5a-fc1e80186b48')
2025-04-29 09:05:57,255 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:57,263 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:57,263 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:05:57,265 - sqlalchemy.engine.Engine - INFO - [cached since 120.3s ago] ('15261ea9-2413-4bd0-83c9-e6926e84a949', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {}}]}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6730c148-8666-49ae-9217-d230235207d8', datetime.datetime(2025, 4, 29, 9, 5, 57, 263420), datetime.datetime(2025, 4, 29, 9, 5, 57, 263420), 0)
2025-04-29 09:05:57,265 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:57,273 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:57,273 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 09:05:57,273 - sqlalchemy.engine.Engine - INFO - [cached since 122.9s ago] ('6b723d66-9ae5-42c8-b4ec-c4a187af4990',)
2025-04-29 09:05:57,274 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 09:05:57,275 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 09:05:57,275 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 09:05:57,276 - sqlalchemy.engine.Engine - INFO - [cached since 120.3s ago] (datetime.datetime(2025, 4, 29, 9, 5, 57, 275365), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 9, 5, 57, 275365), '6b723d66-9ae5-42c8-b4ec-c4a187af4990')
2025-04-29 09:05:57,277 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:57,285 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:05:57,286 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 09:05:57,287 - sqlalchemy.engine.Engine - INFO - [cached since 120.3s ago] (datetime.datetime(2025, 4, 29, 9, 5, 57, 285460), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 5758, 1, datetime.datetime(2025, 4, 29, 9, 5, 57, 286514), '6730c148-8666-49ae-9217-d230235207d8')
2025-04-29 09:05:57,288 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:05:57,296 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 6730c148-8666-49ae-9217-d230235207d8, 结果: True
2025-04-29 09:06:52,083 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:06:52,087 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:06:52,088 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 6, 52, 83740))
2025-04-29 09:06:52,093 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:06:52,128 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:06:52,128 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:06:52,128 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:06:52,128 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:06:52,128 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:06:52,128 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:06:52,129 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:06:52,129 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:06:52,129 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:06:52,129 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:06:52,129 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:06:52,129 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:06:52,130 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:06:52,130 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:06:52,130 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:06:52,130 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:06:52,130 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:06:52,130 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:06:52,130 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:06:52,130 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:06:52,131 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:06:52,131 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:06:52,131 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:06:52,135 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:07:07,139 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:07:07,141 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:07:07,141 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:07:07,141 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:07:07,141 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:07:07,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:07:52,092 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:07:52,094 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:07:52,094 - sqlalchemy.engine.Engine - INFO - [cached since 240s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 7, 52, 92112))
2025-04-29 09:07:52,096 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:07:52,134 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:07:52,136 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:07:52,137 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:07:52,138 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:07:52,140 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:07:52,141 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:07:52,144 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:07:52,145 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:07:52,145 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:07:52,146 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:07:52,147 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:07:52,147 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:07:52,148 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:07:52,148 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:07:52,149 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:07:52,149 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:07:52,150 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:07:52,151 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:07:52,151 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:07:52,153 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:07:52,153 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:07:52,155 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:07:52,155 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:07:52,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:08:07,160 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:08:07,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:08:07,162 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:08:07,162 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:08:07,162 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:08:07,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:08:52,106 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:08:52,106 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:08:52,106 - sqlalchemy.engine.Engine - INFO - [cached since 300s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 8, 52, 106453))
2025-04-29 09:08:52,106 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:08:52,155 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:08:52,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:08:52,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:08:52,155 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:08:52,155 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:08:52,155 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:08:52,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:08:52,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:08:52,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:08:52,155 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:08:52,155 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:08:52,155 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:08:52,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:08:52,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:08:52,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:08:52,155 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:08:52,155 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:08:52,155 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:08:52,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:08:52,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:08:52,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:08:52,155 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:08:52,155 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:08:52,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:09:07,183 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:09:07,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:09:07,186 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:09:07,186 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:09:07,186 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:09:07,187 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:09:35,796 - app - INFO - 应用程序关闭中...
2025-04-29 09:09:35,796 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 09:09:35,798 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 09:09:35,800 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 09:09:35,802 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 09:09:35,804 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 09:09:35,806 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 09:09:35,807 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 09:09:35,808 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 09:09:35,810 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 09:09:35,812 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 09:09:35,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:09:35,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:09:35,817 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:09:35,817 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:09:35,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:09:35,820 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 09:09:35,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:09:35,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:09:35,822 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 09:09:35,822 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:09:35,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:09:35,825 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-29 09:09:35,825 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:09:35,826 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:09:35,826 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-29 09:09:35,826 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 09:09:35,826 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 09:09:35,826 - app - INFO - 增强版任务调度器已停止
2025-04-29 09:09:35,827 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 09:09:35,827 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 09:09:35,828 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 09:09:35,828 - data.session - INFO - 数据库连接已关闭
2025-04-29 09:09:39,734 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 09:09:39,798 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 09:09:39,799 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 09:09:40,536 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 09:09:40,594 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 09:09:40,595 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 09:09:40,657 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 09:09:40,706 - data.session - INFO - 正在初始化数据库...
2025-04-29 09:09:40,742 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 09:09:40,768 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:09:40,769 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:09:40,769 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:09:40,771 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:09:40,771 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:09:40,771 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:09:40,773 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:09:40,773 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 09:09:40,773 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:09:40,774 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 09:09:40,774 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:09:40,775 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 09:09:40,775 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:09:40,776 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 09:09:40,776 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:09:40,778 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 09:09:40,778 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:09:40,779 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 09:09:40,781 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:09:40,782 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 09:09:40,782 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:09:40,783 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 09:09:40,783 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:09:40,784 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 09:09:40,784 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:09:40,785 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 09:09:40,785 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:09:40,786 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 09:09:40,786 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:09:40,787 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:09:40,787 - data.session - INFO - 数据库表初始化完成
2025-04-29 09:09:41,168 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 09:09:41,169 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 09:09:41,169 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 09:09:41,169 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 09:09:41,169 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 09:09:41,169 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 09:09:41,169 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 09:09:41,169 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 09:09:41,170 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 09:09:41,170 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 09:09:41,170 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:09:41,170 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 09:09:41,170 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 09:09:41,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:09:41,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:09:41,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:09:41,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:09:41,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:09:41,173 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 09:09:41,173 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 09:09:41,174 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:09:41,175 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:09:41,175 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:09:41,177 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:09:41,177 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:09:41,177 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:09:41,177 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:09:41,178 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:09:41,187 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 09:09:41,187 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 09:09:41,188 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 09:09:41,191 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:09:41,191 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 09:09:41,191 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 09:09:41,192 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 09:09:41,192 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:09:41,193 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 09:09:41,194 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 09:09:41,195 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:09:41,195 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:09:41,195 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 09:09:41,195 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 09:09:41,196 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 09:09:41,196 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 09:09:41,196 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:09:41,197 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:09:41,198 - sqlalchemy.engine.Engine - INFO - [generated in 0.00125s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 9, 41, 192302))
2025-04-29 09:09:41,199 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:10:30,310 - app - INFO - 应用程序关闭中...
2025-04-29 09:10:30,310 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 09:10:30,310 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 09:10:30,311 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 09:10:30,311 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 09:10:30,311 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 09:10:30,311 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 09:10:30,311 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 09:10:30,311 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 09:10:30,311 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 09:10:30,312 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 09:10:30,312 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:10:30,312 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:10:30,312 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:10:30,312 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:10:30,312 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:10:30,313 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 09:10:30,313 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:10:30,313 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:10:30,313 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 09:10:30,313 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:10:30,313 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:10:30,313 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 09:10:30,313 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:10:30,313 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:10:30,313 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 09:10:30,313 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 09:10:30,314 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 09:10:30,314 - app - INFO - 增强版任务调度器已停止
2025-04-29 09:10:30,314 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 09:10:30,314 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 09:10:30,314 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 09:10:30,314 - data.session - INFO - 数据库连接已关闭
2025-04-29 09:10:31,353 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 09:10:31,416 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 09:10:31,419 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 09:10:31,476 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 09:10:31,523 - data.session - INFO - 正在初始化数据库...
2025-04-29 09:10:31,552 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 09:10:31,570 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:10:31,570 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:10:31,571 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:10:31,571 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:10:31,572 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:10:31,572 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:10:31,574 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:10:31,574 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 09:10:31,575 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:10:31,575 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 09:10:31,576 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:10:31,578 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 09:10:31,578 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:10:31,579 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 09:10:31,579 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:10:31,580 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 09:10:31,581 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:10:31,583 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 09:10:31,583 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:10:31,584 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 09:10:31,584 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:10:31,585 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 09:10:31,586 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:10:31,587 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 09:10:31,587 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:10:31,588 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 09:10:31,588 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:10:31,590 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 09:10:31,590 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:10:31,591 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:10:31,591 - data.session - INFO - 数据库表初始化完成
2025-04-29 09:10:31,929 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 09:10:31,929 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 09:10:31,929 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 09:10:31,931 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 09:10:31,931 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 09:10:31,932 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 09:10:31,932 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 09:10:31,932 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 09:10:31,932 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 09:10:31,932 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 09:10:31,932 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:10:31,933 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 09:10:31,933 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 09:10:31,933 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:10:31,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:10:31,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:10:31,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:10:31,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:10:31,936 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 09:10:31,937 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 09:10:31,938 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:10:31,939 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:10:31,939 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:10:31,940 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:10:31,940 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:10:31,940 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:10:31,940 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:10:31,941 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:10:31,950 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 09:10:31,951 - sqlalchemy.engine.Engine - INFO - [generated in 0.00053s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 09:10:31,952 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 09:10:31,952 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:10:31,952 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 09:10:31,954 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 09:10:31,954 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 09:10:31,954 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:10:31,957 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 09:10:31,958 - sqlalchemy.engine.Engine - INFO - [generated in 0.00141s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 09:10:31,969 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:10:31,971 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 09:10:31,971 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 09:10:31,972 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 09:10:31,972 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 09:10:31,972 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:10:31,973 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:10:31,973 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:10:31,974 - sqlalchemy.engine.Engine - INFO - [generated in 0.00067s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 10, 31, 954073))
2025-04-29 09:10:31,975 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:10:36,012 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 09:10:36,014 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:10:36,015 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 09:10:36,016 - sqlalchemy.engine.Engine - INFO - [generated in 0.00072s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 09:10:36,016 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:10:36,018 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:10:36,019 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 09:10:36,019 - sqlalchemy.engine.Engine - INFO - [cached since 0.00331s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 09:10:36,020 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:10:36,021 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 09:10:36,021 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 09:10:36,021 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 09:10:36,022 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:10:36,023 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 09:10:36,023 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (None, datetime.datetime(2025, 4, 29, 9, 10, 36, 23205), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 09:10:36,024 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:10:36,039 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:10:36,040 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 09:10:36,040 - sqlalchemy.engine.Engine - INFO - [cached since 0.02477s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 09:10:36,042 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:10:36,043 - sqlalchemy.engine.Engine - INFO - [generated in 0.00093s] ('4289ea3a-2e11-4501-ab62-5da0af46953b', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 3, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (290 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 9, 10, 36, 21202), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 9, 10, 36, 42504), datetime.datetime(2025, 4, 29, 9, 10, 36, 42504), 0)
2025-04-29 09:10:36,046 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:10:36,054 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:10:36,056 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 09:10:36,057 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('4289ea3a-2e11-4501-ab62-5da0af46953b',)
2025-04-29 09:10:36,058 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:10:36,062 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 4289ea3a-2e11-4501-ab62-5da0af46953b (优先级 1) 添加到队列 0
2025-04-29 09:10:36,065 - services.sync_service - INFO - 正在同步创建任务到天风系统: 4289ea3a-2e11-4501-ab62-5da0af46953b
2025-04-29 09:10:36,066 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"4289ea3a-2e11-4501-ab62-5da0af46953b","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 09:10:36","sceneId":"1912043207186550785","needAmr":1}
2025-04-29 09:10:36,150 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 4289ea3a-2e11-4501-ab62-5da0af46953b, 优先级: 1
2025-04-29 09:10:36,150 - services.execution.task_executor - DEBUG - 任务 4289ea3a-2e11-4501-ab62-5da0af46953b 设置超时时间: 3600秒
2025-04-29 09:10:36,151 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:10:36,151 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 09:10:36,151 - sqlalchemy.engine.Engine - INFO - [cached since 0.09515s ago] ('4289ea3a-2e11-4501-ab62-5da0af46953b',)
2025-04-29 09:10:36,152 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 09:10:36,153 - sqlalchemy.engine.Engine - INFO - [cached since 0.1372s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 09:10:36,154 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 09:10:36,154 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] (datetime.datetime(2025, 4, 29, 9, 10, 36, 153285), datetime.datetime(2025, 4, 29, 9, 10, 36, 154306), '4289ea3a-2e11-4501-ab62-5da0af46953b')
2025-04-29 09:10:36,155 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:10:36,163 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:10:36,164 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 09:10:36,164 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 10, 36, 164791), '4289ea3a-2e11-4501-ab62-5da0af46953b')
2025-04-29 09:10:36,165 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:10:36,173 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 09:10:36,174 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:10:36,176 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:10:36,176 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] ('74a6a668-ecab-4259-bfe8-d9ba86efcc39', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '4289ea3a-2e11-4501-ab62-5da0af46953b', datetime.datetime(2025, 4, 29, 9, 10, 36, 174563), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 9, 10, 36, 176565), datetime.datetime(2025, 4, 29, 9, 10, 36, 176565), 0)
2025-04-29 09:10:36,177 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:10:36,188 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:10:36,189 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 09:10:36,189 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] ('74a6a668-ecab-4259-bfe8-d9ba86efcc39',)
2025-04-29 09:10:36,190 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 09:10:36,191 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 09:10:36,191 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 09:10:36,192 - sqlalchemy.engine.Engine - INFO - [generated in 0.00066s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 9, 10, 36, 191429), '74a6a668-ecab-4259-bfe8-d9ba86efcc39')
2025-04-29 09:10:36,193 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:10:36,200 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 09:10:36,200 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 09:10:36,200 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-29 09:10:36,201 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:10:36,202 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:10:36,202 - sqlalchemy.engine.Engine - INFO - [cached since 0.02628s ago] ('90aa76b5-e8f3-4306-bf3e-668ca7978f4a', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"priority": "10", "keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '4289ea3a-2e11-4501-ab62-5da0af46953b', datetime.datetime(2025, 4, 29, 9, 10, 36, 201594), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 29, 9, 10, 36, 202603), datetime.datetime(2025, 4, 29, 9, 10, 36, 202603), 0)
2025-04-29 09:10:36,204 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:10:36,213 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 90aa76b5-e8f3-4306-bf3e-668ca7978f4a
2025-04-29 09:10:36,215 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:10:36,215 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 09:10:36,216 - sqlalchemy.engine.Engine - INFO - [cached since 0.0271s ago] ('90aa76b5-e8f3-4306-bf3e-668ca7978f4a',)
2025-04-29 09:10:36,217 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 09:10:36,219 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 09:10:36,220 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 09:10:36,227 - sqlalchemy.engine.Engine - INFO - [cached since 0.03578s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 29, 9, 10, 36, 220573), '90aa76b5-e8f3-4306-bf3e-668ca7978f4a')
2025-04-29 09:10:36,232 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:10:36,241 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-29 09:10:36,246 - services.sync_service - INFO - 正在创建选择AMR任务: 4289ea3a-2e11-4501-ab62-5da0af46953b, 站点: TK01
2025-04-29 09:10:36,293 - services.sync_service - INFO - 成功同步任务到系统任务: 4289ea3a-2e11-4501-ab62-5da0af46953b
2025-04-29 09:10:36,296 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 4289ea3a-2e11-4501-ab62-5da0af46953b
2025-04-29 09:10:36,296 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 4289ea3a-2e11-4501-ab62-5da0af46953b
2025-04-29 09:10:36,299 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.2874秒
2025-04-29 09:10:36,370 - services.sync_service - INFO - 成功为任务选择AMR: 4289ea3a-2e11-4501-ab62-5da0af46953b, AMR: None
2025-04-29 09:10:36,371 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917023679443886082 的AMR选择结果
2025-04-29 09:10:36,371 - services.sync_service - INFO - 开始等待任务块 1917023679443886082 的AMR选择结果
2025-04-29 09:10:36,371 - services.sync_service - INFO - 正在获取任务块详情: 1917023679443886082
2025-04-29 09:10:36,715 - services.sync_service - INFO - 成功获取任务块详情: 1917023679443886082 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917023679443886082', 'taskId': '1917023679125118977', 'tenantId': 1000, 'vwedTaskId': '4289ea3a-2e11-4501-ab62-5da0af46953b', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 09:10:36', 'updateTime': '2025-04-29 09:10:37'}, 'timestamp': 1745889036783}
2025-04-29 09:10:36,716 - services.sync_service - INFO - 任务块 1917023679443886082 已选择AMR: 1912328602264645634，共尝试 1 次
2025-04-29 09:10:36,717 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634、指定机器人:、指定机器人组:
2025-04-29 09:10:36,717 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: []
2025-04-29 09:10:36,717 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-29 09:10:36,718 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 0 个
2025-04-29 09:10:36,719 - services.sync_service - INFO - 正在封口任务: 1917023679443886082
2025-04-29 09:10:36,832 - services.sync_service - INFO - 成功封口任务: 1917023679443886082
2025-04-29 09:10:36,842 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:10:36,844 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:10:36,844 - sqlalchemy.engine.Engine - INFO - [generated in 0.00075s] ('dba0b549-2b5f-4951-acd8-e69363535eef', 1, '{"success": true, "message": "选择执行机器人成功: 1912328602264645634", "code": 200, "result": {"taskBlockId": "1917023679443886082"}, "timestamp": 1745889036417}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '4289ea3a-2e11-4501-ab62-5da0af46953b', datetime.datetime(2025, 4, 29, 9, 10, 36, 844656), datetime.datetime(2025, 4, 29, 9, 10, 36, 844656), 0)
2025-04-29 09:10:36,846 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:10:36,855 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:10:36,856 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 09:10:36,856 - sqlalchemy.engine.Engine - INFO - [cached since 0.6673s ago] ('90aa76b5-e8f3-4306-bf3e-668ca7978f4a',)
2025-04-29 09:10:36,858 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 09:10:36,858 - services.execution.block_executor - INFO - 为块 b1 存储输出: ['selectedAgvId']
2025-04-29 09:10:36,859 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 09:10:36,859 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] ('{"selectedAgvId": "1912328602264645634"}', datetime.datetime(2025, 4, 29, 9, 10, 36, 858047), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '{"blocks": {"b1": {"selectedAgvId": "1912328602264645634"}}}', '执行成功', datetime.datetime(2025, 4, 29, 9, 10, 36, 859144), '90aa76b5-e8f3-4306-bf3e-668ca7978f4a')
2025-04-29 09:10:36,860 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:10:36,866 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:10:36,868 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 09:10:36,869 - sqlalchemy.engine.Engine - INFO - [cached since 0.02438s ago] ('e5c6b07d-2a4c-4b34-8eb2-9be36093beeb', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {}}]}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '4289ea3a-2e11-4501-ab62-5da0af46953b', datetime.datetime(2025, 4, 29, 9, 10, 36, 868001), datetime.datetime(2025, 4, 29, 9, 10, 36, 868001), 0)
2025-04-29 09:10:36,869 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:10:36,875 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:10:36,876 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 09:10:36,876 - sqlalchemy.engine.Engine - INFO - [cached since 0.6876s ago] ('74a6a668-ecab-4259-bfe8-d9ba86efcc39',)
2025-04-29 09:10:36,877 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 09:10:36,877 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 09:10:36,878 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 09:10:36,878 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (datetime.datetime(2025, 4, 29, 9, 10, 36, 877708), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 9, 10, 36, 878707), '74a6a668-ecab-4259-bfe8-d9ba86efcc39')
2025-04-29 09:10:36,879 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:10:36,885 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:10:36,887 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 09:10:36,887 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (datetime.datetime(2025, 4, 29, 9, 10, 36, 885773), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 722, 1, datetime.datetime(2025, 4, 29, 9, 10, 36, 887076), '4289ea3a-2e11-4501-ab62-5da0af46953b')
2025-04-29 09:10:36,888 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:10:36,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 4289ea3a-2e11-4501-ab62-5da0af46953b, 结果: True
2025-04-29 09:11:31,982 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:11:31,983 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:11:31,983 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:11:31,983 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:11:31,983 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:11:31,983 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:11:31,983 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:11:31,984 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:11:31,984 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:11:31,984 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:11:31,984 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:11:31,984 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 11, 31, 983410))
2025-04-29 09:11:31,984 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:11:31,984 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:11:31,985 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:11:31,985 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:11:31,985 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:11:31,985 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:11:31,985 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:11:31,985 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:11:31,986 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:11:31,987 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:11:31,987 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:11:31,987 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:11:31,987 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:11:31,987 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:11:31,990 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:11:31,994 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:11:46,987 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:11:46,988 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:11:46,988 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:11:46,988 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:11:46,988 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:11:46,988 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:11:47,141 - app - INFO - 应用程序关闭中...
2025-04-29 09:11:47,141 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 09:11:47,141 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 09:11:47,141 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 09:11:47,141 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 09:11:47,141 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 09:11:47,141 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 09:11:47,142 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 09:11:47,142 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 09:11:47,142 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 09:11:47,142 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 09:11:47,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:11:47,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:11:47,142 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:11:47,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:11:47,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:11:47,142 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-29 09:11:47,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:11:47,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:11:47,142 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-29 09:11:47,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:11:47,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:11:47,142 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-29 09:11:47,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:11:47,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:11:47,142 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-29 09:11:47,142 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 09:11:47,142 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 09:11:47,142 - app - INFO - 增强版任务调度器已停止
2025-04-29 09:11:47,142 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 09:11:47,144 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 09:11:47,144 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 09:11:47,146 - data.session - INFO - 数据库连接已关闭
2025-04-29 09:11:48,464 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 09:11:48,524 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 09:11:48,526 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 09:11:48,587 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 09:11:48,635 - data.session - INFO - 正在初始化数据库...
2025-04-29 09:11:48,671 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 09:11:48,696 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:11:48,699 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:11:48,701 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:11:48,702 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:11:48,705 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:11:48,707 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:11:48,710 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:11:48,711 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 09:11:48,714 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:11:48,716 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 09:11:48,719 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:11:48,724 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 09:11:48,725 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:11:48,727 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 09:11:48,727 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:11:48,732 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 09:11:48,736 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:11:48,741 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 09:11:48,741 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:11:48,744 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 09:11:48,747 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:11:48,751 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 09:11:48,754 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:11:48,757 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 09:11:48,760 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:11:48,766 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 09:11:48,767 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:11:48,772 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 09:11:48,775 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:11:48,781 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:11:48,783 - data.session - INFO - 数据库表初始化完成
2025-04-29 09:11:49,136 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 09:11:49,137 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 09:11:49,139 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 09:11:49,141 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 09:11:49,142 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 09:11:49,143 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 09:11:49,145 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 09:11:49,145 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 09:11:49,147 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 09:11:49,149 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 09:11:49,151 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:11:49,153 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 09:11:49,155 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 09:11:49,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:11:49,160 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:11:49,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:11:49,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:11:49,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:11:49,161 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 09:11:49,161 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 09:11:49,162 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:11:49,163 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:11:49,165 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:11:49,168 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:11:49,168 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:11:49,169 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:11:49,174 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:11:49,176 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:11:49,185 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 09:11:49,187 - sqlalchemy.engine.Engine - INFO - [generated in 0.00155s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 09:11:49,192 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 09:11:49,192 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:11:49,193 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 09:11:49,194 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 09:11:49,195 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 09:11:49,195 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:11:49,197 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 09:11:49,200 - sqlalchemy.engine.Engine - INFO - [generated in 0.00374s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 09:11:49,202 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:11:49,203 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:11:49,203 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 09:11:49,203 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 09:11:49,204 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 09:11:49,204 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 09:11:49,204 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:11:49,205 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:11:49,206 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 11, 49, 195306))
2025-04-29 09:11:49,207 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:11:59,534 - app - INFO - 应用程序关闭中...
2025-04-29 09:11:59,534 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 09:11:59,535 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 09:11:59,535 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 09:11:59,535 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 09:11:59,535 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 09:11:59,535 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 09:11:59,535 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 09:11:59,535 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 09:11:59,535 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 09:11:59,535 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 09:11:59,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:11:59,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:11:59,537 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:11:59,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:11:59,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:11:59,537 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 09:11:59,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:11:59,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:11:59,537 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 09:11:59,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:11:59,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:11:59,538 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 09:11:59,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:11:59,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:11:59,538 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 09:11:59,539 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 09:11:59,539 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 09:11:59,539 - app - INFO - 增强版任务调度器已停止
2025-04-29 09:11:59,539 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 09:11:59,540 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 09:11:59,540 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 09:11:59,540 - data.session - INFO - 数据库连接已关闭
2025-04-29 09:12:00,693 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 09:12:00,754 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 09:12:00,755 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 09:12:00,820 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 09:12:00,875 - data.session - INFO - 正在初始化数据库...
2025-04-29 09:12:00,900 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 09:12:00,927 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:12:00,928 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:12:00,928 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:12:00,929 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:12:00,929 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:12:00,929 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:12:00,930 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:12:00,930 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 09:12:00,930 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:12:00,932 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 09:12:00,932 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:12:00,933 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 09:12:00,934 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:12:00,935 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 09:12:00,935 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:12:00,936 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 09:12:00,936 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:12:00,937 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 09:12:00,938 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:12:00,938 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 09:12:00,938 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:12:00,939 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 09:12:00,939 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:12:00,940 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 09:12:00,941 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:12:00,942 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 09:12:00,942 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:12:00,943 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 09:12:00,943 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:12:00,944 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:12:00,945 - data.session - INFO - 数据库表初始化完成
2025-04-29 09:12:01,307 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 09:12:01,307 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 09:12:01,307 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 09:12:01,307 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 09:12:01,307 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 09:12:01,309 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 09:12:01,309 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 09:12:01,309 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 09:12:01,309 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 09:12:01,309 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 09:12:01,309 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:12:01,309 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 09:12:01,310 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 09:12:01,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:12:01,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:12:01,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:12:01,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:12:01,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:12:01,311 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 09:12:01,311 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 09:12:01,335 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:12:01,336 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:12:01,338 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:12:01,339 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:12:01,339 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:12:01,340 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:12:01,340 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:12:01,341 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:12:01,350 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 09:12:01,350 - sqlalchemy.engine.Engine - INFO - [generated in 0.00062s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 09:12:01,351 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 09:12:01,352 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:12:01,352 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 09:12:01,353 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 09:12:01,353 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 09:12:01,354 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:12:01,355 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 09:12:01,356 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 09:12:01,357 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:12:01,358 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 09:12:01,358 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 09:12:01,358 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 09:12:01,358 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 09:12:01,358 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:12:01,359 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:12:01,359 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:12:01,360 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 12, 1, 353215))
2025-04-29 09:12:01,361 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:13:01,351 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:13:01,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:13:01,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:13:01,352 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:13:01,352 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:13:01,352 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:13:01,353 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:13:01,353 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:13:01,353 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:13:01,353 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:13:01,354 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:13:01,354 - sqlalchemy.engine.Engine - INFO - [cached since 59.99s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 13, 1, 351864))
2025-04-29 09:13:01,354 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:13:01,354 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:13:01,354 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:13:01,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:13:01,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:13:01,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:13:01,354 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:13:01,354 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:13:01,354 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:13:01,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:13:01,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:13:01,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:13:01,355 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:13:01,355 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:13:01,355 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:13:01,355 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:13:01,355 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:13:01,355 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:13:01,355 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:13:01,355 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:13:01,356 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:13:01,360 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:14:01,370 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:14:01,374 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:14:01,375 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:14:01,377 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:14:01,379 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:14:01,379 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:14:01,386 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:14:01,390 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:14:01,390 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 14, 1, 370953))
2025-04-29 09:14:01,393 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:14:01,394 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:14:01,394 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:14:01,396 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:14:01,397 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:14:01,397 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:14:01,398 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:14:01,398 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:14:01,400 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:14:01,400 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:14:01,402 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:14:01,402 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:14:01,402 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:14:01,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:14:01,405 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:14:01,405 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:14:01,405 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:14:01,405 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:14:01,406 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:14:01,406 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:14:01,407 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:14:01,407 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:14:01,407 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:14:01,409 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:14:01,413 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:15:01,415 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:15:01,418 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:15:01,418 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:15:01,421 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:15:01,422 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:15:01,423 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:15:01,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:15:01,425 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:15:01,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:15:01,428 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:15:01,429 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:15:01,432 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 15, 1, 417889))
2025-04-29 09:15:01,432 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:15:01,432 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:15:01,433 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:15:01,434 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:15:01,437 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:15:01,438 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:15:01,439 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:15:01,439 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:15:01,441 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:15:01,443 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:15:01,447 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:15:01,447 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:15:01,448 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:15:01,448 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:15:01,448 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:15:01,449 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:15:01,449 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:15:01,450 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:15:01,450 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:15:01,451 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:15:01,452 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:15:01,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:16:01,456 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:16:01,456 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:16:01,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:16:01,457 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:16:01,457 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:16:01,457 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:16:01,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:16:01,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:16:01,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:16:01,457 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:16:01,458 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:16:01,458 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 16, 1, 456757))
2025-04-29 09:16:01,458 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:16:01,462 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:16:01,462 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:16:01,462 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:16:01,462 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:16:01,462 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:16:01,462 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:16:01,462 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:16:01,464 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:16:01,465 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:16:01,465 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:16:01,465 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:16:01,466 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:16:01,466 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:16:01,466 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:16:01,466 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:16:01,466 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:16:01,466 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:16:01,467 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:16:01,467 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:16:01,467 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:16:01,472 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:17:01,489 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:17:01,492 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:17:01,496 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 17, 1, 488319))
2025-04-29 09:17:01,499 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:17:01,502 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:17:01,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:17:01,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:17:01,505 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:17:01,505 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:17:01,506 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:17:01,506 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:17:01,508 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:17:01,510 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:17:01,511 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:17:01,514 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:17:01,515 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:17:01,517 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:17:01,518 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:17:01,518 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:17:01,520 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:17:01,522 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:17:01,523 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:17:01,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:17:01,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:17:01,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:17:01,524 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:17:01,524 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:17:01,524 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:17:01,524 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:17:01,524 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:17:01,525 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:17:01,525 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:17:01,525 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:17:01,530 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:18:01,529 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:18:01,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:18:01,533 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:18:01,533 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:18:01,534 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:18:01,535 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:18:01,537 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:18:01,541 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:18:01,544 - sqlalchemy.engine.Engine - INFO - [cached since 360.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 18, 1, 528730))
2025-04-29 09:18:01,545 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:18:01,545 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:18:01,547 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:18:01,547 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:18:01,550 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:18:01,552 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:18:01,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:18:01,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:18:01,553 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:18:01,554 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:18:01,555 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:18:01,557 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:18:01,559 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:18:01,561 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:18:01,563 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:18:01,564 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:18:01,567 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:18:01,570 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:18:01,571 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:18:01,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:18:01,576 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:18:01,577 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:18:01,577 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:18:01,577 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:18:01,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:19:01,601 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:19:01,602 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:19:01,602 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:19:01,603 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:19:01,603 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:19:01,603 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:19:01,603 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:19:01,603 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:19:01,603 - sqlalchemy.engine.Engine - INFO - [cached since 420.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 19, 1, 601042))
2025-04-29 09:19:01,603 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:19:01,603 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:19:01,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:19:01,604 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:19:01,604 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:19:01,604 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:19:01,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:19:01,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:19:01,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:19:01,606 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:19:01,608 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:19:01,608 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:19:01,608 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:19:01,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:19:01,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:19:01,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:19:01,609 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:19:01,609 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:19:01,609 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:19:01,609 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:19:01,610 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:19:01,610 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:19:01,610 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:19:01,610 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:19:01,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:19:01,770 - app - INFO - 应用程序关闭中...
2025-04-29 09:19:01,771 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 09:19:01,774 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 09:19:01,776 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 09:19:01,778 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 09:19:01,779 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 09:19:01,780 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 09:19:01,780 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 09:19:01,780 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 09:19:01,780 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 09:19:01,780 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 09:19:01,781 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:19:01,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:19:01,790 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:19:01,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:19:01,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:19:01,791 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 09:19:01,791 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:19:01,791 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:19:01,791 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 09:19:01,791 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:19:01,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:19:01,792 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 09:19:01,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:19:01,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:19:01,792 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 09:19:01,792 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 09:19:01,792 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 09:19:01,792 - app - INFO - 增强版任务调度器已停止
2025-04-29 09:19:01,792 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 09:19:01,793 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 09:19:01,793 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 09:19:01,793 - data.session - INFO - 数据库连接已关闭
2025-04-29 09:19:03,120 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 09:19:03,195 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 09:19:03,196 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 09:19:03,254 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 09:19:03,301 - data.session - INFO - 正在初始化数据库...
2025-04-29 09:19:03,333 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 09:19:03,345 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:19:03,348 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:03,350 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:19:03,354 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:03,355 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:19:03,358 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:03,361 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:19:03,361 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 09:19:03,362 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:03,363 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 09:19:03,368 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:03,374 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 09:19:03,376 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:03,378 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 09:19:03,381 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:03,386 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 09:19:03,387 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:03,390 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 09:19:03,391 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:03,393 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 09:19:03,393 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:03,396 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 09:19:03,399 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:03,400 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 09:19:03,403 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:03,406 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 09:19:03,406 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:03,410 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 09:19:03,414 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:03,417 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:19:03,420 - data.session - INFO - 数据库表初始化完成
2025-04-29 09:19:03,776 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 09:19:03,778 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 09:19:03,779 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 09:19:03,782 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 09:19:03,784 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 09:19:03,786 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 09:19:03,788 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 09:19:03,789 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 09:19:03,790 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 09:19:03,792 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 09:19:03,792 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:19:03,792 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 09:19:03,794 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 09:19:03,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:19:03,798 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:19:03,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:19:03,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:19:03,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:19:03,806 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 09:19:03,807 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 09:19:03,827 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:19:03,829 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:19:03,829 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:19:03,830 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:19:03,831 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:19:03,832 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:19:03,832 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:19:03,832 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:19:03,842 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 09:19:03,843 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 09:19:03,845 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 09:19:03,845 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:19:03,846 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 09:19:03,846 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 09:19:03,846 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 09:19:03,846 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:19:03,848 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 09:19:03,848 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 09:19:03,849 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:19:03,850 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 09:19:03,850 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 09:19:03,850 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 09:19:03,850 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 09:19:03,850 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:19:03,851 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:19:03,851 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:19:03,852 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 19, 3, 846488))
2025-04-29 09:19:03,852 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:19:56,573 - app - INFO - 应用程序关闭中...
2025-04-29 09:19:56,576 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 09:19:56,578 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 09:19:56,580 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 09:19:56,582 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 09:19:56,585 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 09:19:56,585 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 09:19:56,589 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 09:19:56,589 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 09:19:56,592 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 09:19:56,593 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 09:19:56,594 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:19:56,594 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:19:56,594 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:19:56,595 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:19:56,595 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:19:56,596 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 09:19:56,598 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:19:56,598 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:19:56,598 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 09:19:56,598 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:19:56,598 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:19:56,598 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 09:19:56,599 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:19:56,599 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:19:56,599 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 09:19:56,599 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 09:19:56,599 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 09:19:56,599 - app - INFO - 增强版任务调度器已停止
2025-04-29 09:19:56,599 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 09:19:56,599 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 09:19:56,600 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 09:19:56,600 - data.session - INFO - 数据库连接已关闭
2025-04-29 09:19:57,749 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 09:19:57,809 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 09:19:57,814 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 09:19:57,879 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 09:19:57,931 - data.session - INFO - 正在初始化数据库...
2025-04-29 09:19:57,972 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 09:19:57,989 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:19:57,989 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:57,991 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:19:57,992 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:57,992 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:19:57,995 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:57,995 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:19:57,996 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 09:19:58,000 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:58,002 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 09:19:58,004 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:58,004 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 09:19:58,005 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:58,007 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 09:19:58,007 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:58,010 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 09:19:58,010 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:58,013 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 09:19:58,014 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:58,015 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 09:19:58,015 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:58,017 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 09:19:58,017 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:58,018 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 09:19:58,018 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:58,020 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 09:19:58,021 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:58,022 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 09:19:58,022 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:19:58,024 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:19:58,026 - data.session - INFO - 数据库表初始化完成
2025-04-29 09:19:58,381 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 09:19:58,381 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 09:19:58,381 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 09:19:58,382 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 09:19:58,382 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 09:19:58,382 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 09:19:58,382 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 09:19:58,382 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 09:19:58,382 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 09:19:58,382 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 09:19:58,382 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:19:58,382 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 09:19:58,382 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 09:19:58,386 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:19:58,386 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:19:58,386 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:19:58,386 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:19:58,386 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:19:58,386 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 09:19:58,386 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 09:19:58,388 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:19:58,388 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:19:58,388 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:19:58,388 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:19:58,388 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:19:58,388 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:19:58,388 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:19:58,391 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:19:58,400 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 09:19:58,400 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 09:19:58,402 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 09:19:58,402 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:19:58,402 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 09:19:58,404 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 09:19:58,404 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 09:19:58,404 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:19:58,404 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 09:19:58,404 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 09:19:58,404 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:19:58,404 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 09:19:58,404 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 09:19:58,404 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 09:19:58,404 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 09:19:58,404 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:19:58,404 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:19:58,404 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:19:58,404 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 19, 58, 404401))
2025-04-29 09:19:58,404 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:20:49,841 - app - INFO - 应用程序关闭中...
2025-04-29 09:20:49,841 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 09:20:49,841 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 09:20:49,841 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 09:20:49,842 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 09:20:49,842 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 09:20:49,842 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 09:20:49,842 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 09:20:49,843 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 09:20:49,843 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 09:20:49,843 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 09:20:49,843 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:20:49,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:20:49,844 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:20:49,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:20:49,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:20:49,845 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 09:20:49,845 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:20:49,845 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:20:49,845 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 09:20:49,845 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:20:49,845 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:20:49,846 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 09:20:49,846 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:20:49,846 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:20:49,846 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 09:20:49,846 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 09:20:49,846 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 09:20:49,846 - app - INFO - 增强版任务调度器已停止
2025-04-29 09:20:49,846 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 09:20:49,847 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 09:20:49,847 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 09:20:49,847 - data.session - INFO - 数据库连接已关闭
2025-04-29 09:20:51,073 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 09:20:51,147 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 09:20:51,149 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 09:20:51,212 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 09:20:51,277 - data.session - INFO - 正在初始化数据库...
2025-04-29 09:20:51,310 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 09:20:51,337 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:20:51,338 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:20:51,339 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:20:51,339 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:20:51,339 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:20:51,340 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:20:51,340 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:20:51,340 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 09:20:51,340 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:20:51,341 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 09:20:51,342 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:20:51,343 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 09:20:51,344 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:20:51,345 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 09:20:51,345 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:20:51,346 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 09:20:51,346 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:20:51,347 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 09:20:51,347 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:20:51,353 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 09:20:51,353 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:20:51,354 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 09:20:51,354 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:20:51,355 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 09:20:51,356 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:20:51,357 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 09:20:51,357 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:20:51,358 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 09:20:51,358 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:20:51,359 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:20:51,360 - data.session - INFO - 数据库表初始化完成
2025-04-29 09:20:51,721 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 09:20:51,721 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 09:20:51,721 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 09:20:51,721 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 09:20:51,722 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 09:20:51,722 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 09:20:51,722 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 09:20:51,722 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 09:20:51,722 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 09:20:51,722 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 09:20:51,722 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:20:51,723 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 09:20:51,724 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 09:20:51,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:20:51,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:20:51,731 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:20:51,731 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:20:51,731 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:20:51,731 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 09:20:51,731 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 09:20:51,754 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:20:51,754 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:20:51,754 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:20:51,755 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:20:51,755 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:20:51,756 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:20:51,756 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:20:51,756 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:20:51,765 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 09:20:51,766 - sqlalchemy.engine.Engine - INFO - [generated in 0.00060s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 09:20:51,767 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 09:20:51,767 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:20:51,768 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 09:20:51,768 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 09:20:51,768 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 09:20:51,769 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:20:51,771 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 09:20:51,772 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 09:20:51,775 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:20:51,776 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:20:51,776 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 09:20:51,776 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 09:20:51,776 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 09:20:51,776 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 09:20:51,777 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:20:51,777 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:20:51,778 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 20, 51, 768834))
2025-04-29 09:20:51,780 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:21:51,777 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:21:51,780 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:21:51,780 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:21:51,780 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:21:51,780 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:21:51,781 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:21:51,782 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:21:51,782 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:21:51,783 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:21:51,783 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:21:51,784 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:21:51,784 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 21, 51, 779628))
2025-04-29 09:21:51,786 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:21:51,789 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:21:51,790 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:21:51,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:21:51,793 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:21:51,794 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:21:51,795 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:21:51,797 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:21:51,797 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:21:51,798 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:21:51,800 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:21:51,801 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:21:51,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:21:51,803 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:21:51,804 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:21:51,805 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:21:51,806 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:21:51,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:21:51,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:21:51,809 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:21:51,809 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:21:51,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:21:51,960 - app - INFO - 应用程序关闭中...
2025-04-29 09:21:51,961 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 09:21:51,961 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 09:21:51,963 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 09:21:51,964 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 09:21:51,964 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 09:21:51,965 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 09:21:51,965 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 09:21:51,965 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 09:21:51,966 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 09:21:51,966 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 09:21:51,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:21:51,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:21:51,967 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:21:51,969 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:21:51,971 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:21:51,972 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 09:21:51,974 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:21:51,974 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:21:51,975 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 09:21:51,976 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:21:51,976 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:21:51,977 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 09:21:51,977 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:21:51,979 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:21:51,980 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 09:21:51,981 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 09:21:51,982 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 09:21:51,982 - app - INFO - 增强版任务调度器已停止
2025-04-29 09:21:51,982 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 09:21:51,983 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 09:21:51,983 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 09:21:51,984 - data.session - INFO - 数据库连接已关闭
2025-04-29 09:21:53,292 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 09:21:53,355 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 09:21:53,356 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 09:21:53,417 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 09:21:53,466 - data.session - INFO - 正在初始化数据库...
2025-04-29 09:21:53,494 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 09:21:53,522 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:21:53,526 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:21:53,530 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:21:53,534 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:21:53,535 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:21:53,535 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:21:53,536 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:21:53,537 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 09:21:53,538 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:21:53,541 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 09:21:53,541 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:21:53,543 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 09:21:53,543 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:21:53,544 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 09:21:53,545 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:21:53,546 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 09:21:53,546 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:21:53,547 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 09:21:53,547 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:21:53,548 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 09:21:53,548 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:21:53,549 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 09:21:53,550 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:21:53,551 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 09:21:53,551 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:21:53,554 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 09:21:53,554 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:21:53,555 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 09:21:53,557 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:21:53,558 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:21:53,559 - data.session - INFO - 数据库表初始化完成
2025-04-29 09:21:53,929 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 09:21:53,930 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 09:21:53,931 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 09:21:53,932 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 09:21:53,933 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 09:21:53,933 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 09:21:53,934 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 09:21:53,934 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 09:21:53,934 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 09:21:53,934 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 09:21:53,934 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:21:53,934 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 09:21:53,935 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 09:21:53,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:21:53,937 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:21:53,938 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:21:53,938 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:21:53,938 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:21:53,938 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 09:21:53,939 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 09:21:53,939 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:21:53,940 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:21:53,940 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:21:53,941 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:21:53,941 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:21:53,942 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:21:53,944 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:21:53,945 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:21:53,955 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 09:21:53,958 - sqlalchemy.engine.Engine - INFO - [generated in 0.00303s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 09:21:53,959 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 09:21:53,960 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:21:53,960 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 09:21:53,961 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 09:21:53,962 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 09:21:53,963 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:21:53,966 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 09:21:53,967 - sqlalchemy.engine.Engine - INFO - [generated in 0.00077s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 09:21:53,970 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:21:53,971 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:21:53,971 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 09:21:53,972 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 09:21:53,973 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 09:21:53,973 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 09:21:53,974 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:21:53,975 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:21:53,975 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 21, 53, 963812))
2025-04-29 09:21:53,977 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:22:53,950 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:22:53,950 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:22:53,950 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:22:53,950 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:22:53,950 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:22:53,951 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:22:53,951 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:22:53,951 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:22:53,951 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:22:53,951 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:22:53,951 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:22:53,951 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:22:53,951 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:22:53,951 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:22:53,951 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:22:53,951 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:22:53,952 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:22:53,952 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:22:53,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:22:53,953 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:22:53,953 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:22:53,953 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:22:53,953 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:22:53,953 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:22:53,954 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:22:53,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:22:53,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:22:53,955 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:22:53,956 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:22:53,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:22:53,981 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:22:53,986 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:22:53,986 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 22, 53, 981400))
2025-04-29 09:22:53,987 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:23:53,965 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:23:53,966 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:23:53,966 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:23:53,967 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:23:53,967 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:23:53,968 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:23:53,968 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:23:53,968 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:23:53,969 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:23:53,969 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:23:53,969 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:23:53,969 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:23:53,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:23:53,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:23:53,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:23:53,970 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:23:53,971 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:23:53,971 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:23:53,971 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:23:53,972 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:23:53,972 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:23:53,973 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:23:53,973 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:23:53,974 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:23:53,974 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:23:53,974 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:23:53,974 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:23:53,975 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:23:53,975 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:23:53,975 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 23, 53, 971656))
2025-04-29 09:23:53,975 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:23:53,976 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:23:53,980 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:23:53,981 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:24:53,993 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:24:53,994 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:24:53,994 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:24:53,994 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:24:53,994 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:24:53,995 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:24:53,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:24:53,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:24:53,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:24:53,995 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:24:53,995 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:24:53,996 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 24, 53, 994593))
2025-04-29 09:24:53,996 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:24:53,996 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:24:53,996 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:24:53,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:24:53,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:24:53,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:24:53,996 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:24:53,998 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:24:53,998 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:24:53,998 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:24:53,998 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:24:53,998 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:24:53,999 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:24:53,999 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:24:54,001 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:24:54,004 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:24:54,004 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:24:54,006 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:24:54,007 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:24:54,007 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:24:54,008 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:24:54,015 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:25:54,032 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:25:54,033 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:25:54,034 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 25, 54, 31700))
2025-04-29 09:25:54,036 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:25:54,063 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:25:54,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:25:54,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:25:54,065 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:25:54,065 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:25:54,065 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:25:54,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:25:54,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:25:54,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:25:54,069 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:25:54,070 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:25:54,070 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:25:54,071 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:25:54,071 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:25:54,071 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:25:54,072 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:25:54,072 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:25:54,072 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:25:54,072 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:25:54,072 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:25:54,073 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:25:54,073 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:25:54,073 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:25:54,073 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:25:54,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:25:54,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:25:54,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:25:54,074 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:25:54,074 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:25:54,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:26:54,033 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:26:54,034 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:26:54,034 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 26, 54, 32169))
2025-04-29 09:26:54,035 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:26:54,109 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:26:54,111 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:26:54,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:26:54,113 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:26:54,113 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:26:54,114 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:26:54,114 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:26:54,114 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:26:54,115 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:26:54,115 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:26:54,115 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:26:54,116 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:26:54,116 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:26:54,116 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:26:54,116 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:26:54,116 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:26:54,117 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:26:54,117 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:26:54,117 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:26:54,117 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:26:54,118 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:26:54,118 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:26:54,118 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:26:54,118 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:26:54,118 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:26:54,119 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:26:54,119 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:26:54,119 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:26:54,119 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:26:54,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:27:54,057 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:27:54,058 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:27:54,058 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 27, 54, 57591))
2025-04-29 09:27:54,059 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:27:54,150 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:27:54,150 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:27:54,151 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:27:54,151 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:27:54,151 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:27:54,151 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:27:54,152 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:27:54,152 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:27:54,153 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:27:54,154 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:27:54,155 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:27:54,155 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:27:54,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:27:54,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:27:54,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:27:54,155 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:27:54,155 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:27:54,156 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:27:54,156 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:27:54,156 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:27:54,156 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:27:54,156 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:27:54,156 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:27:54,156 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:27:54,156 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:27:54,156 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:27:54,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:27:54,157 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:27:54,157 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:27:54,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:28:54,069 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:28:54,070 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:28:54,070 - sqlalchemy.engine.Engine - INFO - [cached since 420.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 28, 54, 69075))
2025-04-29 09:28:54,072 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:28:54,171 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:28:54,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:28:54,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:28:54,172 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:28:54,172 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:28:54,172 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:28:54,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:28:54,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:28:54,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:28:54,174 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:28:54,174 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:28:54,174 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:28:54,175 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:28:54,175 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:28:54,175 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:28:54,175 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:28:54,175 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:28:54,178 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:28:54,178 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:28:54,178 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:28:54,178 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:28:54,178 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:28:54,178 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:28:54,178 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:28:54,178 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:28:54,178 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:28:54,178 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:28:54,178 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:28:54,178 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:28:54,187 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:28:54,284 - app - INFO - 应用程序关闭中...
2025-04-29 09:28:54,285 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 09:28:54,285 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 09:28:54,285 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 09:28:54,285 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 09:28:54,286 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 09:28:54,286 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 09:28:54,286 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 09:28:54,286 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 09:28:54,286 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 09:28:54,287 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 09:28:54,287 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:28:54,287 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:28:54,287 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:28:54,287 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:28:54,288 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:28:54,288 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 09:28:54,288 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:28:54,288 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:28:54,288 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 09:28:54,289 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:28:54,289 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:28:54,289 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 09:28:54,289 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:28:54,289 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:28:54,290 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 09:28:54,290 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 09:28:54,290 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 09:28:54,290 - app - INFO - 增强版任务调度器已停止
2025-04-29 09:28:54,290 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 09:28:54,291 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 09:28:54,292 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 09:28:54,292 - data.session - INFO - 数据库连接已关闭
2025-04-29 09:28:55,614 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 09:28:55,673 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 09:28:55,674 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 09:28:55,725 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 09:28:55,781 - data.session - INFO - 正在初始化数据库...
2025-04-29 09:28:55,806 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 09:28:55,807 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:28:55,808 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:28:55,808 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:28:55,809 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:28:55,809 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:28:55,810 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:28:55,810 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:28:55,810 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 09:28:55,811 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:28:55,812 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 09:28:55,812 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:28:55,814 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 09:28:55,814 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:28:55,815 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 09:28:55,815 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:28:55,816 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 09:28:55,818 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:28:55,818 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 09:28:55,818 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:28:55,826 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 09:28:55,827 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:28:55,831 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 09:28:55,832 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:28:55,832 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 09:28:55,834 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:28:55,837 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 09:28:55,838 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:28:55,841 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 09:28:55,842 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:28:55,843 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:28:55,844 - data.session - INFO - 数据库表初始化完成
2025-04-29 09:28:56,251 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 09:28:56,251 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 09:28:56,251 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 09:28:56,258 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 09:28:56,260 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 09:28:56,260 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 09:28:56,260 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 09:28:56,260 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 09:28:56,260 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 09:28:56,260 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 09:28:56,265 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:28:56,265 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 09:28:56,265 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 09:28:56,274 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:28:56,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:28:56,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:28:56,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:28:56,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:28:56,276 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 09:28:56,276 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 09:28:56,292 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:28:56,292 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:28:56,292 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:28:56,292 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:28:56,292 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:28:56,308 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:28:56,308 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:28:56,308 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:28:56,321 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 09:28:56,324 - sqlalchemy.engine.Engine - INFO - [generated in 0.00237s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 09:28:56,326 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 09:28:56,326 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:28:56,334 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 09:28:56,334 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 09:28:56,334 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 09:28:56,340 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:28:56,340 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 09:28:56,351 - sqlalchemy.engine.Engine - INFO - [generated in 0.00266s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 09:28:56,351 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:28:56,356 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:28:56,356 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 09:28:56,356 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 09:28:56,356 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 09:28:56,356 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 09:28:56,356 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:28:56,356 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:28:56,366 - sqlalchemy.engine.Engine - INFO - [generated in 0.00342s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 28, 56, 340619))
2025-04-29 09:28:56,372 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:29:56,316 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:29:56,316 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:29:56,316 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:29:56,316 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:29:56,316 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:29:56,316 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:29:56,316 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:29:56,316 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:29:56,316 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:29:56,316 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:29:56,316 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:29:56,316 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:29:56,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:29:56,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:29:56,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:29:56,321 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:29:56,321 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:29:56,321 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:29:56,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:29:56,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:29:56,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:29:56,321 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:29:56,321 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:29:56,321 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:29:56,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:29:56,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:29:56,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:29:56,321 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:29:56,321 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:29:56,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:29:56,348 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:29:56,348 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:29:56,348 - sqlalchemy.engine.Engine - INFO - [cached since 59.99s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 29, 56, 348568))
2025-04-29 09:29:56,348 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:29:56,522 - app - INFO - 应用程序关闭中...
2025-04-29 09:29:56,522 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 09:29:56,522 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 09:29:56,522 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 09:29:56,522 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 09:29:56,522 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 09:29:56,522 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 09:29:56,522 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 09:29:56,522 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 09:29:56,529 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 09:29:56,529 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 09:29:56,529 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:29:56,529 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:29:56,531 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:29:56,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:29:56,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:29:56,531 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 09:29:56,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:29:56,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:29:56,531 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 09:29:56,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:29:56,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:29:56,531 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 09:29:56,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:29:56,539 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:29:56,539 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 09:29:56,539 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 09:29:56,539 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 09:29:56,539 - app - INFO - 增强版任务调度器已停止
2025-04-29 09:29:56,539 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 09:29:56,539 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 09:29:56,539 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 09:29:56,539 - data.session - INFO - 数据库连接已关闭
2025-04-29 09:29:57,864 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 09:29:57,944 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 09:29:57,944 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 09:29:58,037 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 09:29:58,106 - data.session - INFO - 正在初始化数据库...
2025-04-29 09:29:58,141 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 09:29:58,154 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:29:58,157 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:29:58,157 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:29:58,157 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:29:58,157 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:29:58,157 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:29:58,159 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:29:58,159 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 09:29:58,159 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:29:58,162 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 09:29:58,162 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:29:58,162 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 09:29:58,162 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:29:58,162 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 09:29:58,162 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:29:58,162 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 09:29:58,162 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:29:58,169 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 09:29:58,169 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:29:58,171 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 09:29:58,171 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:29:58,171 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 09:29:58,171 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:29:58,171 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 09:29:58,171 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:29:58,171 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 09:29:58,171 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:29:58,171 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 09:29:58,171 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:29:58,171 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:29:58,171 - data.session - INFO - 数据库表初始化完成
2025-04-29 09:29:58,662 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 09:29:58,662 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 09:29:58,662 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 09:29:58,662 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 09:29:58,662 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 09:29:58,662 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 09:29:58,662 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 09:29:58,662 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 09:29:58,662 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 09:29:58,662 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 09:29:58,662 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:29:58,662 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 09:29:58,662 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 09:29:58,668 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:29:58,668 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:29:58,668 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:29:58,671 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:29:58,671 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:29:58,671 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 09:29:58,671 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 09:29:58,681 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:29:58,681 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:29:58,681 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:29:58,681 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:29:58,681 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:29:58,681 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:29:58,681 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:29:58,681 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:29:58,698 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 09:29:58,698 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 09:29:58,698 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 09:29:58,698 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:29:58,698 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 09:29:58,698 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 09:29:58,698 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 09:29:58,698 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:29:58,704 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 09:29:58,704 - sqlalchemy.engine.Engine - INFO - [generated in 0.00056s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 09:29:58,704 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:29:58,704 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 09:29:58,704 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 09:29:58,704 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 09:29:58,704 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 09:29:58,704 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:29:58,704 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:29:58,704 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:29:58,704 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 29, 58, 698971))
2025-04-29 09:29:58,713 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:30:58,678 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:30:58,680 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:30:58,680 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:30:58,680 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:30:58,686 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:30:58,688 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:30:58,688 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:30:58,694 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:30:58,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:30:58,695 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:30:58,695 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:30:58,695 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:30:58,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:30:58,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:30:58,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:30:58,695 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:30:58,695 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:30:58,695 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:30:58,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:30:58,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:30:58,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:30:58,695 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:30:58,695 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:30:58,695 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:30:58,695 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:30:58,695 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:30:58,695 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 30, 58, 695823))
2025-04-29 09:30:58,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:30:58,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:30:58,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:30:58,712 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:30:58,712 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:30:58,716 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:30:58,716 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:30:58,902 - app - INFO - 应用程序关闭中...
2025-04-29 09:30:58,902 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 09:30:58,904 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 09:30:58,904 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 09:30:58,906 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 09:30:58,906 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 09:30:58,908 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 09:30:58,911 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 09:30:58,911 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 09:30:58,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:30:58,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:30:58,911 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 09:30:58,911 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 09:30:58,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:30:58,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:30:58,911 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:30:58,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:30:58,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:30:58,911 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 09:30:58,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:30:58,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:30:58,918 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 09:30:58,918 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 09:30:58,918 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 09:30:58,918 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 09:30:58,918 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 09:30:58,918 - app - INFO - 增强版任务调度器已停止
2025-04-29 09:30:58,918 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 09:30:58,918 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 09:30:58,918 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 09:30:58,918 - data.session - INFO - 数据库连接已关闭
2025-04-29 09:31:00,333 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 09:31:00,417 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 09:31:00,419 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 09:31:00,501 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 09:31:00,569 - data.session - INFO - 正在初始化数据库...
2025-04-29 09:31:00,608 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 09:31:00,626 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:31:00,626 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:31:00,626 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:31:00,626 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:31:00,626 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:31:00,626 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:31:00,626 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:31:00,626 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 09:31:00,626 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:31:00,626 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 09:31:00,626 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:31:00,626 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 09:31:00,626 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:31:00,626 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 09:31:00,640 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:31:00,643 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 09:31:00,647 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:31:00,649 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 09:31:00,649 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:31:00,651 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 09:31:00,651 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:31:00,653 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 09:31:00,653 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:31:00,661 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 09:31:00,661 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:31:00,661 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 09:31:00,661 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:31:00,661 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 09:31:00,661 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:31:00,667 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:31:00,668 - data.session - INFO - 数据库表初始化完成
2025-04-29 09:31:01,174 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 09:31:01,174 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 09:31:01,174 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 09:31:01,174 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 09:31:01,174 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 09:31:01,174 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 09:31:01,174 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 09:31:01,174 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 09:31:01,174 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 09:31:01,174 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 09:31:01,174 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:31:01,174 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 09:31:01,174 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 09:31:01,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:31:01,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:31:01,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:31:01,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:31:01,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:31:01,174 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 09:31:01,174 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 09:31:01,191 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:31:01,193 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:31:01,193 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:31:01,193 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:31:01,193 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:31:01,193 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:31:01,193 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:31:01,193 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:31:01,217 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 09:31:01,217 - sqlalchemy.engine.Engine - INFO - [generated in 0.00066s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 09:31:01,217 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 09:31:01,219 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:31:01,219 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 09:31:01,219 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 09:31:01,219 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 09:31:01,219 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:31:01,225 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 09:31:01,225 - sqlalchemy.engine.Engine - INFO - [generated in 0.00063s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 09:31:01,251 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:31:01,251 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:31:01,251 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 09:31:01,251 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 09:31:01,251 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 09:31:01,251 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 09:31:01,260 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:31:01,260 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:31:01,260 - sqlalchemy.engine.Engine - INFO - [generated in 0.00077s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 31, 1, 219518))
2025-04-29 09:31:01,260 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:32:01,182 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:32:01,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:32:01,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:32:01,182 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:32:01,182 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:32:01,182 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:32:01,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:32:01,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:32:01,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:32:01,182 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:32:01,182 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:32:01,182 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:32:01,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:32:01,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:32:01,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:32:01,182 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:32:01,182 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:32:01,187 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:32:01,187 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:32:01,189 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:32:01,189 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:32:01,189 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:32:01,189 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:32:01,189 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:32:01,189 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:32:01,189 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:32:01,189 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:32:01,189 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:32:01,189 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:32:01,202 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:32:01,279 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:32:01,281 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:32:01,281 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 32, 1, 277194))
2025-04-29 09:32:01,283 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:32:01,372 - app - INFO - 应用程序关闭中...
2025-04-29 09:32:01,372 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 09:32:01,372 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 09:32:01,372 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 09:32:01,372 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 09:32:01,372 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 09:32:01,372 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 09:32:01,372 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 09:32:01,372 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 09:32:01,372 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 09:32:01,372 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 09:32:01,375 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:32:01,375 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:32:01,375 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:32:01,375 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:32:01,375 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:32:01,375 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 09:32:01,375 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:32:01,375 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:32:01,378 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 09:32:01,378 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:32:01,378 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:32:01,378 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:32:01,378 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 09:32:01,378 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 09:32:01,378 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 09:32:01,378 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 09:32:01,378 - app - INFO - 增强版任务调度器已停止
2025-04-29 09:32:01,378 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 09:32:01,378 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 09:32:01,380 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 09:32:01,381 - data.session - INFO - 数据库连接已关闭
2025-04-29 09:32:02,767 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 09:32:02,870 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 09:32:02,870 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 09:32:02,965 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 09:32:03,030 - data.session - INFO - 正在初始化数据库...
2025-04-29 09:32:03,295 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 09:32:03,314 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:32:03,314 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:32:03,314 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:32:03,314 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:32:03,315 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:32:03,315 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:32:03,315 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:32:03,315 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 09:32:03,315 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:32:03,318 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 09:32:03,318 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:32:03,318 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 09:32:03,318 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:32:03,318 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 09:32:03,318 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:32:03,318 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 09:32:03,318 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:32:03,325 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 09:32:03,329 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:32:03,330 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 09:32:03,330 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:32:03,330 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 09:32:03,330 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:32:03,330 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 09:32:03,330 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:32:03,330 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 09:32:03,330 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:32:03,330 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 09:32:03,343 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:32:03,343 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:32:03,345 - data.session - INFO - 数据库表初始化完成
2025-04-29 09:32:03,842 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 09:32:03,842 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 09:32:03,842 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 09:32:03,844 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 09:32:03,844 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 09:32:03,844 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 09:32:03,844 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 09:32:03,844 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 09:32:03,844 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 09:32:03,844 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 09:32:03,844 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:32:03,844 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 09:32:03,844 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 09:32:03,848 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:32:03,848 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:32:03,848 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:32:03,848 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:32:03,848 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:32:03,848 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 09:32:03,848 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 09:32:03,865 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:32:03,865 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:32:03,865 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:32:03,865 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:32:03,865 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:32:03,865 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:32:03,865 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:32:03,865 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:32:03,881 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 09:32:03,881 - sqlalchemy.engine.Engine - INFO - [generated in 0.00097s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 09:32:03,889 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 09:32:03,889 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:32:03,889 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 09:32:03,889 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 09:32:03,893 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 09:32:03,893 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:32:03,896 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 09:32:03,896 - sqlalchemy.engine.Engine - INFO - [generated in 0.00078s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 09:32:03,896 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:32:03,896 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 09:32:03,896 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 09:32:03,896 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 09:32:03,896 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 09:32:03,896 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:32:03,896 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:32:03,896 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:32:03,896 - sqlalchemy.engine.Engine - INFO - [generated in 0.00104s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 32, 3, 893441))
2025-04-29 09:32:03,905 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:33:03,881 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:33:03,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:33:03,884 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:33:03,884 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:33:03,884 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:33:03,884 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:33:03,884 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:33:03,884 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:33:03,884 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:33:03,884 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:33:03,884 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:33:03,884 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:33:03,884 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:33:03,884 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:33:03,884 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:33:03,884 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:33:03,884 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:33:03,884 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:33:03,884 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:33:03,884 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:33:03,896 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:33:03,897 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:33:03,898 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:33:03,898 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:33:03,898 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:33:03,900 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:33:03,901 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:33:03,902 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:33:03,902 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:33:03,907 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:33:03,907 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:33:03,915 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:33:03,915 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 33, 3, 901493))
2025-04-29 09:33:03,915 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:34:03,917 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:34:03,917 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:34:03,921 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 34, 3, 917453))
2025-04-29 09:34:03,926 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:34:03,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:34:03,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:34:03,930 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:34:03,930 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:34:03,930 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:34:03,936 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:34:03,940 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:34:03,940 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:34:03,940 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:34:03,940 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:34:03,940 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:34:03,940 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:34:03,940 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:34:03,940 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:34:03,940 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:34:03,940 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:34:03,942 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:34:03,942 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:34:03,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:34:03,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:34:03,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:34:03,942 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:34:03,942 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:34:03,942 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:34:03,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:34:03,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:34:03,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:34:03,942 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:34:03,947 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:34:03,969 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:35:03,940 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:35:03,940 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:35:03,940 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:35:03,940 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:35:03,944 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:35:03,946 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:35:03,946 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:35:03,946 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 35, 3, 940778))
2025-04-29 09:35:03,946 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:35:03,955 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:35:18,944 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:35:18,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:35:18,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:35:18,944 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:35:18,944 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:35:18,944 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:35:18,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:35:18,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:35:18,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:35:18,944 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:35:18,944 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:35:18,944 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:35:18,951 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:35:18,951 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:35:18,951 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:35:18,951 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:35:18,951 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:35:18,951 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:35:18,951 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:35:18,951 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:35:18,953 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:35:18,954 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:35:18,954 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:35:18,954 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:36:03,959 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:36:03,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:36:03,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:36:03,961 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:36:03,961 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:36:03,968 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:36:03,968 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:36:03,968 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:36:03,968 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 36, 3, 959902))
2025-04-29 09:36:03,968 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:36:18,965 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:36:18,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:36:18,974 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:36:18,974 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:36:18,974 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:36:18,974 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:36:18,974 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:36:18,974 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:36:18,974 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:36:18,974 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:36:18,977 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:36:18,977 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:36:18,977 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:36:18,977 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:36:18,977 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:36:18,977 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:36:18,977 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:36:18,977 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:36:18,977 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:36:18,979 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:36:18,979 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:36:18,981 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:36:18,981 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:36:18,981 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:37:03,962 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:37:03,965 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:37:03,965 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 37, 3, 962345))
2025-04-29 09:37:03,967 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:37:04,009 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:37:04,009 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:37:04,009 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:37:04,009 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:37:04,009 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:37:04,021 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:37:19,034 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:37:19,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:37:19,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:37:19,035 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:37:19,035 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:37:19,035 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:37:19,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:37:19,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:37:19,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:37:19,035 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:37:19,035 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:37:19,035 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:37:19,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:37:19,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:37:19,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:37:19,035 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:37:19,035 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:37:19,035 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:37:19,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:37:19,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:37:19,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:37:19,035 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:37:19,035 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:37:19,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:38:03,964 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:38:03,964 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:38:03,964 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 38, 3, 964767))
2025-04-29 09:38:03,969 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:38:04,056 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:38:04,056 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:38:04,056 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:38:04,056 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:38:04,056 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:38:04,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:38:19,097 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:38:19,098 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:38:19,098 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:38:19,098 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:38:19,098 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:38:19,098 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:38:19,098 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:38:19,100 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:38:19,100 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:38:19,100 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:38:19,100 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:38:19,100 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:38:19,100 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:38:19,100 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:38:19,101 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:38:19,101 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:38:19,101 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:38:19,101 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:38:19,101 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:38:19,101 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:38:19,101 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:38:19,102 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:38:19,102 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:38:19,104 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:39:03,959 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:39:03,959 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:39:03,959 - sqlalchemy.engine.Engine - INFO - [cached since 420.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 39, 3, 959666))
2025-04-29 09:39:03,959 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:39:04,102 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:39:04,102 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:39:04,102 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:39:04,102 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:39:04,102 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:39:04,102 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:39:19,113 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:39:19,115 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:39:19,115 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:39:19,115 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:39:19,116 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:39:19,116 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:39:19,116 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:39:19,116 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:39:19,116 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:39:19,116 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:39:19,116 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:39:19,116 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:39:19,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:39:19,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:39:19,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:39:19,120 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:39:19,120 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:39:19,120 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:39:19,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:39:19,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:39:19,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:39:19,120 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:39:19,120 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:39:19,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:40:03,965 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:40:03,965 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:40:03,965 - sqlalchemy.engine.Engine - INFO - [cached since 480.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 40, 3, 965165))
2025-04-29 09:40:03,965 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:40:04,124 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:40:04,124 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:40:04,124 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:40:04,124 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:40:04,124 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:40:04,124 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:40:34,121 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:40:34,124 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:40:34,124 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:40:34,124 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:40:34,124 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:40:34,124 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:40:34,124 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:40:34,124 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:40:34,124 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:40:34,124 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:40:34,124 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:40:34,124 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:40:34,126 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:40:34,126 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:40:34,126 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:40:34,126 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:40:34,126 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:40:34,126 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:40:34,126 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:40:34,128 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:40:34,128 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:40:34,129 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:40:34,131 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:40:34,133 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:41:03,959 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:41:03,964 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:41:03,964 - sqlalchemy.engine.Engine - INFO - [cached since 540.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 41, 3, 959489))
2025-04-29 09:41:03,964 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:41:04,138 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:41:04,140 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:41:04,140 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:41:04,140 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:41:04,140 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:41:04,140 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:41:34,144 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:41:34,146 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:41:34,146 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:41:34,146 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:41:34,146 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:41:34,146 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:41:34,146 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:41:34,146 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:41:34,146 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:41:34,146 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:41:34,146 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:41:34,146 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:41:34,146 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:41:34,146 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:41:34,152 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:41:34,152 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:41:34,152 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:41:34,152 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:41:34,152 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:41:34,152 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:41:34,152 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:41:34,152 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:41:34,152 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:41:34,156 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:42:03,971 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:42:03,971 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:42:03,971 - sqlalchemy.engine.Engine - INFO - [cached since 600.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 42, 3, 968067))
2025-04-29 09:42:03,971 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:42:04,160 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:42:04,160 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:42:04,160 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:42:04,160 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:42:04,160 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:42:04,160 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:42:34,167 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:42:34,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:42:34,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:42:34,179 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:42:34,182 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:42:34,182 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:42:34,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:42:34,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:42:34,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:42:34,182 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:42:34,182 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:42:34,182 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:42:34,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:42:34,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:42:34,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:42:34,182 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:42:34,182 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:42:34,182 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:42:34,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:42:34,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:42:34,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:42:34,182 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:42:34,182 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:42:34,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:43:03,982 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:43:03,985 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:43:03,985 - sqlalchemy.engine.Engine - INFO - [cached since 660.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 43, 3, 982254))
2025-04-29 09:43:03,990 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:43:04,190 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:43:04,190 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:43:04,190 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:43:04,190 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:43:04,190 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:43:04,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:43:34,200 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:43:34,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:43:34,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:43:34,201 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:43:34,201 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:43:34,201 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:43:34,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:43:34,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:43:34,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:43:34,201 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:43:34,201 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:43:34,201 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:43:34,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:43:34,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:43:34,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:43:34,201 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:43:34,201 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:43:34,201 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:43:34,208 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:43:34,208 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:43:34,208 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:43:34,208 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:43:34,208 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:43:34,208 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:44:03,972 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:44:03,972 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:44:03,972 - sqlalchemy.engine.Engine - INFO - [cached since 720.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 44, 3, 970726))
2025-04-29 09:44:03,977 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:44:04,209 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:44:04,213 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:44:04,219 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:44:04,222 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:44:04,228 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:44:04,240 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:44:34,266 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:44:34,267 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:44:34,267 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:44:34,267 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:44:34,267 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:44:34,267 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:44:34,267 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:44:34,267 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:44:34,267 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:44:34,267 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:44:34,267 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:44:34,267 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:44:34,267 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:44:34,269 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:44:34,269 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:44:34,269 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:44:34,269 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:44:34,269 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:44:34,269 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:44:34,269 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:44:34,269 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:44:34,269 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:44:34,269 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:44:34,269 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:45:03,992 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:45:03,996 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:45:03,996 - sqlalchemy.engine.Engine - INFO - [cached since 780.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 45, 3, 991212))
2025-04-29 09:45:03,997 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:45:04,278 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:45:04,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:45:04,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:45:04,280 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:45:04,280 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:45:04,287 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:45:34,296 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:45:34,302 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:45:34,302 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:45:34,302 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:45:34,302 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:45:34,303 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:45:34,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:45:34,304 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:45:34,304 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:45:34,304 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:45:34,305 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:45:34,305 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:45:34,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:45:34,306 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:45:34,306 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:45:34,306 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:45:34,306 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:45:34,306 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:45:34,307 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:45:34,307 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:45:34,307 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:45:34,307 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:45:34,307 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:45:34,307 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:46:04,010 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:46:04,010 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:46:04,010 - sqlalchemy.engine.Engine - INFO - [cached since 840.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 46, 4, 10664))
2025-04-29 09:46:04,010 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:46:04,314 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:46:04,314 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:46:04,314 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:46:04,314 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:46:04,314 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:46:04,314 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:46:34,332 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:46:34,334 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:46:34,334 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:46:34,334 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:46:34,334 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:46:34,334 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:46:34,334 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:46:34,336 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:46:34,336 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:46:34,337 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:46:34,337 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:46:34,338 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:46:34,338 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:46:34,338 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:46:34,340 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:46:34,340 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:46:34,340 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:46:34,340 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:46:34,340 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:46:34,340 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:46:34,342 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:46:34,342 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:46:34,342 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:46:34,342 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:47:04,009 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:47:04,009 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:47:04,009 - sqlalchemy.engine.Engine - INFO - [cached since 900.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 47, 4, 9328))
2025-04-29 09:47:04,013 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:47:04,359 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:47:04,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:47:04,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:47:04,359 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:47:04,359 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:47:04,365 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:47:34,373 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:47:34,375 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:47:34,375 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:47:34,377 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:47:34,377 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:47:34,377 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:47:34,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:47:34,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:47:34,378 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:47:34,378 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:47:34,378 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:47:34,378 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:47:34,378 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:47:34,378 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:47:34,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:47:34,379 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:47:34,379 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:47:34,379 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:47:34,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:47:34,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:47:34,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:47:34,379 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:47:34,379 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:47:34,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:48:04,011 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:48:04,011 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:48:04,011 - sqlalchemy.engine.Engine - INFO - [cached since 960.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 48, 4, 11256))
2025-04-29 09:48:04,011 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:48:04,379 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:48:04,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:48:04,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:48:04,379 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:48:04,379 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:48:04,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:48:34,380 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:48:34,382 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:48:34,382 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:48:34,382 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:48:34,382 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:48:34,382 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:48:34,382 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:48:34,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:48:34,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:48:34,384 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:48:34,385 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:48:34,385 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:48:34,385 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:48:34,385 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:48:34,385 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:48:34,385 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:48:34,385 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:48:34,385 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:48:34,385 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:48:34,385 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:48:34,385 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:48:34,385 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:48:34,385 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:48:34,385 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:49:04,014 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:49:04,014 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:49:04,017 - sqlalchemy.engine.Engine - INFO - [cached since 1020s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 49, 4, 12119))
2025-04-29 09:49:04,020 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:49:04,409 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:49:04,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:49:04,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:49:04,411 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:49:04,411 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:49:04,421 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:49:34,421 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:49:34,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:49:34,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:49:34,422 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:49:34,422 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:49:34,422 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:49:34,425 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:49:34,425 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:49:34,426 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:49:34,426 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:49:34,426 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:49:34,427 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:49:34,432 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:49:34,434 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:49:34,434 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:49:34,434 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:49:34,434 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:49:34,434 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:49:34,434 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:49:34,436 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:49:34,436 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:49:34,436 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:49:34,436 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:49:34,436 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:50:04,049 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:50:04,064 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:50:04,064 - sqlalchemy.engine.Engine - INFO - [cached since 1080s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 50, 4, 49179))
2025-04-29 09:50:04,064 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:50:04,446 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:50:04,446 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:50:04,446 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:50:04,446 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:50:04,446 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:50:04,446 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:50:34,444 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:50:34,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:50:34,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:50:34,444 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:50:34,444 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:50:34,444 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:50:34,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:50:34,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:50:34,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:50:34,444 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:50:34,444 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:50:34,444 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:50:34,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:50:34,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:50:34,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:50:34,444 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:50:34,444 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:50:34,444 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:50:34,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:50:34,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:50:34,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:50:34,444 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:50:34,444 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:50:34,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:55:46,516 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:55:46,517 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:55:46,517 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:55:46,517 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:55:46,517 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:55:46,517 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:55:46,517 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:55:46,517 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:55:46,517 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:55:46,517 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:55:46,519 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:55:46,519 - sqlalchemy.engine.Engine - INFO - [cached since 1423s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 55, 46, 516511))
2025-04-29 09:55:46,519 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:55:46,519 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:55:46,519 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:55:46,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:55:46,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:55:46,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:55:46,519 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:55:46,519 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:55:46,519 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:55:46,519 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:55:46,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:55:46,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:55:46,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:55:46,519 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:55:46,519 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:55:46,522 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:55:46,522 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:55:46,522 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:55:46,522 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:55:46,522 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:55:46,522 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:55:46,527 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:56:46,525 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:56:46,530 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:56:46,530 - sqlalchemy.engine.Engine - INFO - [cached since 1483s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 56, 46, 525525))
2025-04-29 09:56:46,530 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:56:46,551 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:56:46,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:56:46,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:56:46,552 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:56:46,552 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:56:46,552 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:56:46,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:56:46,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:56:46,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:56:46,552 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:56:46,552 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:56:46,552 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:56:46,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:56:46,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:56:46,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:56:46,555 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:56:46,555 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:56:46,555 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:56:46,555 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:56:46,555 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:56:46,555 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:56:46,555 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:56:46,555 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:56:46,555 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:56:46,555 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:56:46,555 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:56:46,555 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:56:46,555 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:56:46,555 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:56:46,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:57:46,551 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:57:46,551 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:57:46,552 - sqlalchemy.engine.Engine - INFO - [cached since 1543s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 57, 46, 551201))
2025-04-29 09:57:46,553 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:58:01,566 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:58:01,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:58:01,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:58:01,568 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:58:01,570 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:58:01,571 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:58:01,572 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:58:01,573 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:58:01,573 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:58:01,576 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:58:01,578 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:58:01,580 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:58:01,582 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:58:01,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:58:01,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:58:01,583 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:58:01,583 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:58:01,584 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:58:01,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:58:01,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:58:01,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:58:01,584 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:58:01,584 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:58:01,584 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:58:01,585 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:58:01,585 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:58:01,585 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:58:01,585 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:58:01,585 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:58:01,589 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:58:46,558 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:58:46,559 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:58:46,559 - sqlalchemy.engine.Engine - INFO - [cached since 1603s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 58, 46, 557998))
2025-04-29 09:58:46,560 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:59:01,599 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 09:59:01,600 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:59:01,600 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:59:01,600 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:59:01,600 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 09:59:01,600 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 09:59:01,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:59:01,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:59:01,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:59:01,601 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 09:59:01,601 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 09:59:01,602 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 09:59:01,602 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:59:01,603 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:59:01,603 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:59:01,603 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 09:59:01,603 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 09:59:01,603 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 09:59:01,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:59:01,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:59:01,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:59:01,605 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 09:59:01,605 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 09:59:01,605 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 09:59:01,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:59:01,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:59:01,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:59:01,605 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 09:59:01,605 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:59:01,610 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:59:46,566 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:59:46,568 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:59:46,568 - sqlalchemy.engine.Engine - INFO - [cached since 1663s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 59, 46, 566755))
2025-04-29 09:59:46,569 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:59:46,752 - app - INFO - 应用程序关闭中...
2025-04-29 09:59:46,752 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 09:59:46,752 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 09:59:46,752 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 09:59:46,752 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 09:59:46,752 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 09:59:46,752 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 09:59:46,752 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 09:59:46,752 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 09:59:46,752 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 09:59:46,752 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 09:59:46,752 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 09:59:46,752 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 09:59:46,752 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 09:59:46,752 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 09:59:46,752 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 09:59:46,752 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 09:59:46,752 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 09:59:46,754 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 09:59:46,755 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 09:59:46,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 09:59:46,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 09:59:46,755 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 09:59:46,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 09:59:46,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 09:59:46,755 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 09:59:46,755 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 09:59:46,755 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 09:59:46,755 - app - INFO - 增强版任务调度器已停止
2025-04-29 09:59:46,755 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 09:59:46,755 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 09:59:46,757 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 09:59:46,757 - data.session - INFO - 数据库连接已关闭
2025-04-29 09:59:48,071 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 09:59:48,130 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 09:59:48,134 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 09:59:48,189 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 09:59:48,243 - data.session - INFO - 正在初始化数据库...
2025-04-29 09:59:48,285 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 09:59:48,300 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:59:48,304 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:59:48,304 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:59:48,309 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:59:48,317 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:59:48,317 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:59:48,321 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:59:48,326 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 09:59:48,326 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:59:48,332 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 09:59:48,334 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:59:48,338 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 09:59:48,339 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:59:48,339 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 09:59:48,339 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:59:48,339 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 09:59:48,339 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:59:48,343 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 09:59:48,343 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:59:48,343 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 09:59:48,343 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:59:48,343 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 09:59:48,343 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:59:48,343 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 09:59:48,343 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:59:48,347 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 09:59:48,347 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:59:48,350 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 09:59:48,350 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 09:59:48,351 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:59:48,351 - data.session - INFO - 数据库表初始化完成
2025-04-29 09:59:48,718 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 09:59:48,718 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 09:59:48,718 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 09:59:48,718 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 09:59:48,718 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 09:59:48,718 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 09:59:48,719 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 09:59:48,719 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 09:59:48,719 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 09:59:48,719 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 09:59:48,719 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 09:59:48,719 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 09:59:48,719 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 09:59:48,720 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 09:59:48,720 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 09:59:48,720 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 09:59:48,720 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 09:59:48,720 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 09:59:48,720 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 09:59:48,720 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 09:59:48,723 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:59:48,723 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 09:59:48,723 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:59:48,724 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 09:59:48,724 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:59:48,725 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 09:59:48,725 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 09:59:48,725 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:59:48,734 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 09:59:48,735 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 09:59:48,736 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 09:59:48,736 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:59:48,736 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 09:59:48,737 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 09:59:48,737 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 09:59:48,737 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:59:48,739 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 09:59:48,739 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 09:59:48,741 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 09:59:48,742 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 09:59:48,742 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 09:59:48,742 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 09:59:48,743 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 09:59:48,743 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 09:59:48,743 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 09:59:48,744 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 09:59:48,744 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 8, 59, 48, 737628))
2025-04-29 09:59:48,744 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:00:48,760 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:00:48,760 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:00:48,764 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 0, 48, 760458))
2025-04-29 10:00:48,772 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:00:48,772 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:00:48,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:00:48,777 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:00:48,777 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:00:48,777 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:00:48,781 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:00:48,786 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:00:48,786 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:00:48,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:00:48,790 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:00:48,790 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:00:48,790 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:00:48,795 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:00:48,795 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:00:48,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:00:48,799 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:00:48,803 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:00:48,803 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:00:48,803 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:00:48,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:00:48,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:00:48,808 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:00:48,808 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:00:48,812 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:00:48,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:00:48,816 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:00:48,816 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:00:48,816 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:00:48,816 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:00:48,822 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:01:48,827 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:01:48,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:01:48,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:01:48,831 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:01:48,831 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:01:48,831 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:01:48,831 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:01:48,831 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:01:48,831 - sqlalchemy.engine.Engine - INFO - [cached since 120.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 1, 48, 827164))
2025-04-29 10:01:48,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:01:48,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:01:48,834 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:01:48,836 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:01:48,836 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:01:48,836 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:01:48,836 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:01:48,836 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:01:48,837 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:01:48,837 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:01:48,837 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:01:48,837 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:01:48,840 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:01:48,840 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:01:48,840 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:01:48,840 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:01:48,840 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:01:48,840 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:01:48,840 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:01:48,841 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:01:48,841 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:01:48,841 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:01:48,841 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:01:48,841 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:01:48,850 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:02:48,857 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:02:48,858 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:02:48,858 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:02:48,859 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:02:48,859 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:02:48,859 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:02:48,859 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:02:48,859 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:02:48,860 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 2, 48, 857339))
2025-04-29 10:02:48,863 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:02:48,865 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:02:48,866 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:02:48,866 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:02:48,866 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:02:48,867 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:02:48,867 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:02:48,868 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:02:48,868 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:02:48,870 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:02:48,873 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:02:48,873 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:02:48,873 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:02:48,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:02:48,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:02:48,874 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:02:48,874 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:02:48,875 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:02:48,875 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:02:48,875 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:02:48,875 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:02:48,875 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:02:48,876 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:02:48,876 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:02:48,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:03:48,883 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:03:48,886 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:03:48,887 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 3, 48, 881546))
2025-04-29 10:03:48,889 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:03:48,911 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:03:48,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:03:48,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:03:48,912 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:03:48,912 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:03:48,913 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:03:48,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:03:48,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:03:48,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:03:48,914 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:03:48,914 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:03:48,914 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:03:48,914 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:03:48,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:03:48,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:03:48,915 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:03:48,915 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:03:48,916 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:03:48,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:03:48,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:03:48,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:03:48,917 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:03:48,918 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:03:48,918 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:03:48,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:03:48,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:03:48,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:03:48,918 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:03:48,918 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:03:48,922 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:04:48,892 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:04:48,893 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:04:48,896 - sqlalchemy.engine.Engine - INFO - [cached since 300.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 4, 48, 891212))
2025-04-29 10:04:48,901 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:05:03,901 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:05:03,902 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:05:03,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:05:03,903 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:05:03,903 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:05:03,903 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:05:03,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:05:03,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:05:03,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:05:03,903 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:05:03,903 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:05:03,903 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:05:03,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:05:03,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:05:03,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:05:03,903 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:05:03,903 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:05:03,903 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:05:03,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:05:03,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:05:03,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:05:03,903 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:05:03,903 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:05:03,919 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:05:03,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:05:03,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:05:03,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:05:03,919 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:05:03,919 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:05:03,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:05:48,897 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:05:48,897 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:05:48,897 - sqlalchemy.engine.Engine - INFO - [cached since 360.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 5, 48, 897435))
2025-04-29 10:05:48,897 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:06:03,939 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:06:03,940 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:06:03,940 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:06:03,940 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:06:03,942 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:06:03,943 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:06:03,945 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:06:03,945 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:06:03,945 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:06:03,946 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:06:03,947 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:06:03,949 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:06:03,953 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:06:03,954 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:06:03,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:06:03,955 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:06:03,955 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:06:03,955 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:06:03,958 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:06:03,959 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:06:03,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:06:03,963 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:06:03,965 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:06:03,966 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:06:03,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:06:03,972 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:06:03,972 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:06:03,972 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:06:03,975 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:06:03,981 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:06:48,915 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:06:48,917 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:06:48,919 - sqlalchemy.engine.Engine - INFO - [cached since 420.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 6, 48, 915192))
2025-04-29 10:06:48,919 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:07:03,998 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:07:03,999 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:07:04,000 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:07:04,000 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:07:04,000 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:07:04,000 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:07:04,000 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:07:04,000 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:07:04,001 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:07:04,001 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:07:04,001 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:07:04,001 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:07:04,001 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:07:04,002 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:07:04,002 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:07:04,002 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:07:04,002 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:07:04,002 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:07:04,002 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:07:04,002 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:07:04,002 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:07:04,002 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:07:04,003 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:07:04,003 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:07:04,003 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:07:04,003 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:07:04,003 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:07:04,003 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:07:04,003 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:07:04,007 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:07:04,157 - app - INFO - 应用程序关闭中...
2025-04-29 10:07:04,157 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 10:07:04,158 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 10:07:04,158 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 10:07:04,159 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 10:07:04,159 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 10:07:04,160 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 10:07:04,161 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 10:07:04,161 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 10:07:04,161 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 10:07:04,161 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 10:07:04,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:07:04,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:07:04,161 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:07:04,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:07:04,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:07:04,161 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 10:07:04,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:07:04,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:07:04,161 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 10:07:04,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:07:04,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:07:04,161 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 10:07:04,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:07:04,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:07:04,161 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 10:07:04,161 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 10:07:04,161 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 10:07:04,161 - app - INFO - 增强版任务调度器已停止
2025-04-29 10:07:04,161 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 10:07:04,161 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 10:07:04,161 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 10:07:04,161 - data.session - INFO - 数据库连接已关闭
2025-04-29 10:07:05,308 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 10:07:05,360 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 10:07:05,360 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 10:07:05,426 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 10:07:05,479 - data.session - INFO - 正在初始化数据库...
2025-04-29 10:07:05,508 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 10:07:05,529 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 10:07:05,530 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:07:05,531 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 10:07:05,532 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:07:05,535 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 10:07:05,536 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:07:05,538 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:07:05,539 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 10:07:05,541 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:07:05,544 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 10:07:05,546 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:07:05,547 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 10:07:05,549 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:07:05,553 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 10:07:05,555 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:07:05,558 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 10:07:05,559 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:07:05,559 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 10:07:05,560 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:07:05,562 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 10:07:05,562 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:07:05,562 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 10:07:05,562 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:07:05,562 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 10:07:05,562 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:07:05,562 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 10:07:05,562 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:07:05,579 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 10:07:05,579 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:07:05,581 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:07:05,582 - data.session - INFO - 数据库表初始化完成
2025-04-29 10:07:05,947 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 10:07:05,947 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 10:07:05,947 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 10:07:05,947 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 10:07:05,947 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 10:07:05,947 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 10:07:05,947 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 10:07:05,947 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 10:07:05,947 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 10:07:05,947 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 10:07:05,947 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:07:05,947 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 10:07:05,947 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 10:07:05,947 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:07:05,947 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:07:05,947 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:07:05,947 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:07:05,947 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:07:05,947 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 10:07:05,947 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 10:07:05,960 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 10:07:05,960 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 10:07:05,960 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:07:05,963 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 10:07:05,963 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:07:05,964 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 10:07:05,964 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:07:05,964 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:07:05,973 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 10:07:05,975 - sqlalchemy.engine.Engine - INFO - [generated in 0.00182s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 10:07:05,977 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 10:07:05,977 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:07:05,980 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 10:07:05,980 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 10:07:05,980 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 10:07:05,980 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:07:05,982 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 10:07:05,984 - sqlalchemy.engine.Engine - INFO - [generated in 0.00136s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 10:07:05,987 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:07:05,987 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 10:07:05,988 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 10:07:05,988 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 10:07:05,989 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 10:07:05,990 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 10:07:05,991 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:07:05,992 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:07:05,993 - sqlalchemy.engine.Engine - INFO - [generated in 0.00077s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 7, 5, 980874))
2025-04-29 10:07:05,994 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:08:05,963 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:08:05,965 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:08:05,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:08:05,969 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:08:05,969 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:08:05,972 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:08:05,976 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:08:05,976 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:08:05,976 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:08:05,977 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:08:05,978 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:08:05,978 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:08:05,981 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:08:05,982 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:08:05,982 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:08:05,983 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:08:05,983 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:08:05,983 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:08:05,984 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:08:05,984 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:08:05,984 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:08:05,984 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:08:05,984 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:08:05,987 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 8, 5, 981873))
2025-04-29 10:08:05,988 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:08:05,988 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:08:05,988 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:08:05,988 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:08:05,988 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:08:05,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:08:05,989 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:08:05,989 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:08:05,995 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:08:05,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:08:06,179 - app - INFO - 应用程序关闭中...
2025-04-29 10:08:06,181 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 10:08:06,181 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 10:08:06,181 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 10:08:06,181 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 10:08:06,182 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 10:08:06,182 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 10:08:06,184 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 10:08:06,184 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 10:08:06,184 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 10:08:06,184 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 10:08:06,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:08:06,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:08:06,185 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:08:06,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:08:06,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:08:06,185 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 10:08:06,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:08:06,186 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:08:06,186 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 10:08:06,186 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:08:06,186 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:08:06,186 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 10:08:06,186 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:08:06,186 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:08:06,186 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 10:08:06,186 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 10:08:06,186 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 10:08:06,186 - app - INFO - 增强版任务调度器已停止
2025-04-29 10:08:06,187 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 10:08:06,187 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 10:08:06,187 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 10:08:06,187 - data.session - INFO - 数据库连接已关闭
2025-04-29 10:08:07,391 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 10:08:07,461 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 10:08:07,462 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 10:08:07,534 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 10:08:07,589 - data.session - INFO - 正在初始化数据库...
2025-04-29 10:08:07,633 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 10:08:07,650 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 10:08:07,650 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:08:07,651 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 10:08:07,653 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:08:07,657 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 10:08:07,657 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:08:07,658 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:08:07,658 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 10:08:07,658 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:08:07,659 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 10:08:07,659 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:08:07,660 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 10:08:07,660 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:08:07,665 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 10:08:07,665 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:08:07,666 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 10:08:07,667 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:08:07,668 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 10:08:07,668 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:08:07,668 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 10:08:07,669 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:08:07,670 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 10:08:07,670 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:08:07,671 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 10:08:07,671 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:08:07,672 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 10:08:07,672 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:08:07,673 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 10:08:07,673 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:08:07,675 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:08:07,675 - data.session - INFO - 数据库表初始化完成
2025-04-29 10:08:08,067 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 10:08:08,069 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 10:08:08,070 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 10:08:08,071 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 10:08:08,071 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 10:08:08,071 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 10:08:08,072 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 10:08:08,073 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 10:08:08,074 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 10:08:08,075 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 10:08:08,077 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:08:08,080 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 10:08:08,083 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 10:08:08,087 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:08:08,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:08:08,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:08:08,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:08:08,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:08:08,088 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 10:08:08,089 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 10:08:08,090 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 10:08:08,090 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 10:08:08,095 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:08:08,096 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 10:08:08,100 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:08:08,102 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 10:08:08,106 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:08:08,112 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:08:08,123 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 10:08:08,126 - sqlalchemy.engine.Engine - INFO - [generated in 0.00336s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 10:08:08,129 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 10:08:08,130 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:08:08,135 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 10:08:08,137 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 10:08:08,138 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 10:08:08,141 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:08:08,147 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 10:08:08,149 - sqlalchemy.engine.Engine - INFO - [generated in 0.00273s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 10:08:08,164 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:08:08,170 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 10:08:08,170 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 10:08:08,171 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 10:08:08,173 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 10:08:08,175 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 10:08:08,181 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:08:08,183 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:08:08,185 - sqlalchemy.engine.Engine - INFO - [generated in 0.00211s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 8, 8, 141813))
2025-04-29 10:08:08,187 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:09:08,109 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:09:08,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:09:08,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:09:08,109 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:09:08,109 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:09:08,109 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:09:08,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:09:08,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:09:08,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:09:08,109 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:09:08,109 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:09:08,109 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:09:08,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:09:08,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:09:08,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:09:08,109 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:09:08,109 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:09:08,109 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:09:08,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:09:08,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:09:08,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:09:08,125 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:09:08,125 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:09:08,125 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:09:08,125 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:09:08,125 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:09:08,125 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:09:08,125 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:09:08,125 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:09:08,131 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:09:08,182 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:09:08,182 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:09:08,182 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 9, 8, 182653))
2025-04-29 10:09:08,182 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:10:08,144 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:10:08,144 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:10:08,144 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:10:08,144 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:10:08,144 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:10:08,144 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:10:08,144 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:10:08,144 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:10:08,144 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:10:08,144 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:10:08,144 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:10:08,144 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:10:08,144 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:10:08,144 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:10:08,144 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:10:08,144 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:10:08,144 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:10:08,144 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:10:08,160 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:10:08,160 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:10:08,160 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:10:08,160 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:10:08,160 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:10:08,160 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:10:08,160 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:10:08,160 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:10:08,160 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:10:08,160 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:10:08,160 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:10:08,168 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:10:08,204 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:10:08,204 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:10:08,204 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 10, 8, 204291))
2025-04-29 10:10:08,204 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:10:08,354 - app - INFO - 应用程序关闭中...
2025-04-29 10:10:08,354 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 10:10:08,354 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 10:10:08,354 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 10:10:08,354 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 10:10:08,354 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 10:10:08,354 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 10:10:08,354 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 10:10:08,354 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 10:10:08,354 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 10:10:08,354 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 10:10:08,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:10:08,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:10:08,354 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:10:08,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:10:08,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:10:08,354 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 10:10:08,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:10:08,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:10:08,370 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 10:10:08,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:10:08,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:10:08,370 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 10:10:08,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:10:08,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:10:08,386 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 10:10:08,386 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 10:10:08,386 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 10:10:08,402 - app - INFO - 增强版任务调度器已停止
2025-04-29 10:10:08,402 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 10:10:08,402 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 10:10:08,402 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 10:10:08,402 - data.session - INFO - 数据库连接已关闭
2025-04-29 10:10:09,762 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 10:10:09,821 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 10:10:09,823 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 10:10:09,876 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 10:10:09,923 - data.session - INFO - 正在初始化数据库...
2025-04-29 10:10:09,969 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 10:10:09,971 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 10:10:09,971 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:10:09,971 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 10:10:09,971 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:10:09,971 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 10:10:09,971 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:10:09,971 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:10:09,971 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 10:10:09,971 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:10:09,971 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 10:10:09,971 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:10:09,971 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 10:10:09,971 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:10:09,987 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 10:10:09,987 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:10:09,987 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 10:10:09,987 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:10:10,003 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 10:10:10,007 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:10:10,007 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 10:10:10,007 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:10:10,020 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 10:10:10,021 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:10:10,024 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 10:10:10,026 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:10:10,026 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 10:10:10,026 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:10:10,026 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 10:10:10,026 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:10:10,038 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:10:10,041 - data.session - INFO - 数据库表初始化完成
2025-04-29 10:10:10,401 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 10:10:10,401 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 10:10:10,401 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 10:10:10,403 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 10:10:10,403 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 10:10:10,405 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 10:10:10,407 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 10:10:10,407 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 10:10:10,409 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 10:10:10,411 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 10:10:10,411 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:10:10,411 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 10:10:10,411 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 10:10:10,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:10:10,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:10:10,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:10:10,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:10:10,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:10:10,411 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 10:10:10,411 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 10:10:10,438 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 10:10:10,438 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 10:10:10,438 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:10:10,438 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 10:10:10,438 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:10:10,438 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 10:10:10,438 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:10:10,438 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:10:10,455 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 10:10:10,455 - sqlalchemy.engine.Engine - INFO - [generated in 0.00088s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 10:10:10,455 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 10:10:10,455 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:10:10,455 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 10:10:10,455 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 10:10:10,455 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 10:10:10,455 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:10:10,471 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 10:10:10,471 - sqlalchemy.engine.Engine - INFO - [generated in 0.00120s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 10:10:10,487 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:10:10,487 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 10:10:10,487 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 10:10:10,487 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 10:10:10,487 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 10:10:10,487 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 10:10:10,487 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:10:10,487 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:10:10,487 - sqlalchemy.engine.Engine - INFO - [generated in 0.00089s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 10, 10, 455139))
2025-04-29 10:10:10,487 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:11:10,445 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:11:10,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:11:10,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:11:10,445 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:11:10,445 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:11:10,445 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:11:10,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:11:10,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:11:10,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:11:10,445 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:11:10,445 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:11:10,445 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:11:10,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:11:10,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:11:10,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:11:10,445 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:11:10,445 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:11:10,445 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:11:10,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:11:10,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:11:10,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:11:10,445 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:11:10,445 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:11:10,445 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:11:10,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:11:10,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:11:10,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:11:10,445 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:11:10,445 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:11:10,461 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:11:10,492 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:11:10,492 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:11:10,492 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 11, 10, 492877))
2025-04-29 10:11:10,492 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:12:10,462 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:12:10,469 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:12:10,469 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:12:10,481 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:12:10,481 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:12:10,481 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:12:10,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:12:10,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:12:10,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:12:10,481 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:12:10,481 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:12:10,497 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:12:10,497 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:12:10,497 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:12:10,497 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:12:10,497 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:12:10,512 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:12:10,512 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:12:10,512 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:12:10,512 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:12:10,512 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 12, 10, 481799))
2025-04-29 10:12:10,512 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:12:10,528 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:12:10,528 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:12:10,528 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:12:10,528 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:12:10,528 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:12:10,528 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:12:10,528 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:12:10,528 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:12:10,544 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:12:10,544 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:12:10,544 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:12:10,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:13:10,552 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:13:10,552 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:13:10,552 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 13, 10, 551553))
2025-04-29 10:13:10,552 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:13:10,584 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:13:10,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:13:10,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:13:10,584 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:13:10,584 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:13:10,584 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:13:10,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:13:10,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:13:10,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:13:10,584 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:13:10,584 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:13:10,584 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:13:10,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:13:10,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:13:10,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:13:10,584 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:13:10,584 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:13:10,584 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:13:10,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:13:10,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:13:10,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:13:10,584 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:13:10,584 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:13:10,584 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:13:10,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:13:10,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:13:10,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:13:10,584 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:13:10,584 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:13:10,599 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:14:10,569 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:14:10,569 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:14:10,569 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 14, 10, 569763))
2025-04-29 10:14:10,585 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:14:10,601 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:14:10,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:14:10,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:14:10,601 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:14:10,601 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:14:10,601 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:14:10,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:14:10,617 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:14:10,617 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:14:10,617 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:14:10,617 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:14:10,617 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:14:10,617 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:14:10,617 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:14:10,617 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:14:10,617 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:14:10,617 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:14:10,633 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:14:10,635 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:14:10,637 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:14:10,637 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:14:10,639 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:14:10,639 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:14:10,640 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:14:10,643 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:14:10,643 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:14:10,643 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:14:10,650 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:14:10,650 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:14:10,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:15:10,595 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:15:10,595 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:15:10,598 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 15, 10, 595167))
2025-04-29 10:15:10,598 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:15:10,712 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:15:10,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:15:10,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:15:10,712 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:15:10,712 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:15:10,712 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:15:10,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:15:10,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:15:10,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:15:10,712 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:15:10,712 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:15:10,712 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:15:10,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:15:10,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:15:10,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:15:10,712 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:15:10,712 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:15:10,712 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:15:10,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:15:10,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:15:10,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:15:10,712 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:15:10,712 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:15:10,712 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:15:10,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:15:10,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:15:10,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:15:10,712 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:15:10,712 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:15:10,728 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:16:10,616 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:16:10,616 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:16:10,626 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 16, 10, 616286))
2025-04-29 10:16:10,628 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:16:10,735 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:16:10,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:16:10,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:16:10,735 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:16:10,735 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:16:10,735 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:16:10,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:16:10,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:16:10,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:16:10,745 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:16:10,751 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:16:10,752 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:16:10,752 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:16:10,752 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:16:10,752 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:16:10,752 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:16:10,752 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:16:10,752 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:16:10,762 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:16:10,762 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:16:10,762 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:16:10,762 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:16:10,767 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:16:10,767 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:16:10,767 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:16:10,767 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:16:10,767 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:16:10,767 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:16:10,767 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:16:10,783 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:17:10,633 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:17:10,633 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:17:10,633 - sqlalchemy.engine.Engine - INFO - [cached since 420.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 17, 10, 633988))
2025-04-29 10:17:10,633 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:17:10,787 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:17:10,793 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:17:10,793 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:17:10,793 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:17:10,793 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:17:10,793 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:17:10,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:17:10,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:17:10,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:17:10,802 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:17:10,802 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:17:10,802 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:17:10,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:17:10,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:17:10,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:17:10,802 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:17:10,818 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:17:10,818 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:17:10,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:17:10,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:17:10,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:17:10,818 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:17:10,818 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:17:10,818 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:17:10,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:17:10,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:17:10,834 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:17:10,834 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:17:10,834 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:17:10,840 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:18:10,647 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:18:10,648 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:18:10,650 - sqlalchemy.engine.Engine - INFO - [cached since 480.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 18, 10, 647854))
2025-04-29 10:18:10,652 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:18:10,862 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:18:10,865 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:18:10,865 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:18:10,865 - app - INFO - 应用程序关闭中...
2025-04-29 10:18:10,866 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:18:10,866 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:18:10,866 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:18:10,866 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 10:18:10,866 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 10:18:10,866 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:18:10,866 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:18:10,867 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:18:10,867 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:18:10,867 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:18:10,868 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:18:10,868 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:18:10,868 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 10:18:10,870 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 10:18:10,870 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:18:10,870 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:18:10,870 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:18:10,870 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:18:10,870 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 10:18:10,870 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:18:10,870 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:18:10,870 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:18:10,870 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 10:18:10,871 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 10:18:10,871 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:18:10,871 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:18:10,871 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:18:10,872 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:18:10,872 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 10:18:10,872 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:18:10,872 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:18:10,872 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:18:10,872 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:18:10,872 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:18:10,872 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:18:10,872 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:18:10,874 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:18:10,874 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:18:10,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:18:10,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:18:25,884 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 10:18:25,884 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:18:25,886 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 10:18:25,888 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 10:18:25,888 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 10:18:25,889 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 10:18:25,889 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 10:18:25,889 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 10:18:25,889 - app - INFO - 增强版任务调度器已停止
2025-04-29 10:18:25,889 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 10:18:25,890 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 10:18:25,893 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 10:18:25,893 - data.session - INFO - 数据库连接已关闭
2025-04-29 10:18:27,078 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 10:18:27,137 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 10:18:27,142 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 10:18:27,201 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 10:18:27,248 - data.session - INFO - 正在初始化数据库...
2025-04-29 10:18:27,283 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 10:18:27,301 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 10:18:27,302 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:18:27,304 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 10:18:27,304 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:18:27,305 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 10:18:27,306 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:18:27,309 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:18:27,310 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 10:18:27,310 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:18:27,311 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 10:18:27,311 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:18:27,313 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 10:18:27,313 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:18:27,314 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 10:18:27,314 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:18:27,315 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 10:18:27,315 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:18:27,316 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 10:18:27,316 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:18:27,317 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 10:18:27,317 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:18:27,318 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 10:18:27,318 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:18:27,319 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 10:18:27,319 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:18:27,321 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 10:18:27,323 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:18:27,324 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 10:18:27,324 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:18:27,325 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:18:27,325 - data.session - INFO - 数据库表初始化完成
2025-04-29 10:18:27,702 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 10:18:27,702 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 10:18:27,703 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 10:18:27,703 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 10:18:27,703 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 10:18:27,703 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 10:18:27,703 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 10:18:27,704 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 10:18:27,704 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 10:18:27,704 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 10:18:27,704 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:18:27,704 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 10:18:27,704 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 10:18:27,706 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:18:27,706 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:18:27,706 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:18:27,706 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:18:27,707 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:18:27,707 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 10:18:27,707 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 10:18:27,709 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 10:18:27,710 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 10:18:27,710 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:18:27,711 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 10:18:27,711 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:18:27,713 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 10:18:27,713 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:18:27,714 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:18:27,723 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 10:18:27,724 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 10:18:27,724 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 10:18:27,725 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:18:27,727 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 10:18:27,727 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 10:18:27,727 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 10:18:27,728 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:18:27,730 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 10:18:27,731 - sqlalchemy.engine.Engine - INFO - [generated in 0.00179s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 10:18:27,734 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:18:27,734 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 10:18:27,735 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 10:18:27,735 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 10:18:27,735 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 10:18:27,735 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 10:18:27,736 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:18:27,737 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:18:27,738 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 18, 27, 728271))
2025-04-29 10:18:27,739 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:19:27,742 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:19:27,743 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:19:27,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:19:27,744 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:19:27,744 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:19:27,744 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:19:27,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:19:27,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:19:27,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:19:27,746 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:19:27,746 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:19:27,747 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 19, 27, 743049))
2025-04-29 10:19:27,747 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:19:27,747 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:19:27,747 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:19:27,747 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:19:27,747 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:19:27,747 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:19:27,747 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:19:27,747 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:19:27,747 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:19:27,747 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:19:27,748 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:19:27,748 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:19:27,748 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:19:27,748 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:19:27,748 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:19:27,748 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:19:27,748 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:19:27,748 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:19:27,748 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:19:27,749 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:19:27,749 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:19:27,757 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:20:27,777 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:20:27,780 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:20:27,783 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:20:27,785 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:20:27,787 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:20:27,788 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:20:27,792 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:20:27,792 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:20:27,793 - sqlalchemy.engine.Engine - INFO - [cached since 120.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 20, 27, 777084))
2025-04-29 10:20:27,793 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:20:27,793 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:20:27,793 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:20:27,798 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:20:27,801 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:20:27,804 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:20:27,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:20:27,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:20:27,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:20:27,809 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:20:27,811 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:20:27,811 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:20:27,811 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:20:27,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:20:27,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:20:27,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:20:27,813 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:20:27,815 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:20:27,816 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:20:27,821 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:20:27,823 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:20:27,825 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:20:27,826 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:20:27,826 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:20:27,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:21:27,847 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:21:27,847 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:21:27,848 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:21:27,848 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:21:27,849 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:21:27,849 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:21:27,850 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:21:27,852 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:21:27,852 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 21, 27, 846235))
2025-04-29 10:21:27,853 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:21:27,853 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:21:27,854 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:21:27,854 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:21:27,854 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:21:27,854 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:21:27,855 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:21:27,855 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:21:27,855 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:21:27,856 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:21:27,856 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:21:27,857 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:21:27,857 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:21:27,857 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:21:27,857 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:21:27,857 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:21:27,858 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:21:27,858 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:21:27,858 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:21:27,858 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:21:27,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:21:27,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:21:27,859 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:21:27,860 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:21:27,864 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:22:27,875 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:22:27,876 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:22:27,876 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 22, 27, 874388))
2025-04-29 10:22:27,877 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:22:27,878 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:22:27,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:22:27,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:22:27,880 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:22:27,880 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:22:27,880 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:22:27,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:22:27,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:22:27,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:22:27,882 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:22:27,882 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:22:27,882 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:22:27,882 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:22:27,882 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:22:27,882 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:22:27,884 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:22:27,884 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:22:27,884 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:22:27,884 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:22:27,884 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:22:27,885 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:22:27,885 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:22:27,885 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:22:27,885 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:22:27,885 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:22:27,886 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:22:27,886 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:22:27,886 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:22:27,886 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:22:27,890 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:23:27,892 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:23:27,893 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:23:27,899 - sqlalchemy.engine.Engine - INFO - [cached since 300.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 23, 27, 891906))
2025-04-29 10:23:27,901 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:23:27,904 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:23:27,906 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:23:27,908 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:23:27,908 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:23:27,908 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:23:27,909 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:23:27,909 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:23:27,909 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:23:27,910 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:23:27,910 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:23:27,910 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:23:27,910 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:23:27,910 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:23:27,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:23:27,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:23:27,911 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:23:27,911 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:23:27,911 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:23:27,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:23:27,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:23:27,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:23:27,912 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:23:27,913 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:23:27,913 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:23:27,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:23:27,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:23:27,914 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:23:27,914 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:23:27,914 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:23:27,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:24:27,921 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:24:27,922 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:24:27,923 - sqlalchemy.engine.Engine - INFO - [cached since 360.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 24, 27, 921123))
2025-04-29 10:24:27,924 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:24:27,925 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:24:27,925 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:24:27,925 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:24:27,925 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:24:27,926 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:24:27,926 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:24:27,926 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:24:27,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:24:27,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:24:27,927 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:24:27,927 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:24:27,927 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:24:27,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:24:27,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:24:27,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:24:27,928 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:24:27,929 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:24:27,929 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:24:27,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:24:27,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:24:27,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:24:27,930 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:24:27,930 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:24:27,930 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:24:27,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:24:27,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:24:27,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:24:27,930 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:24:27,930 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:24:27,935 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:25:27,930 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:25:27,933 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:25:27,935 - sqlalchemy.engine.Engine - INFO - [cached since 420.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 25, 27, 928417))
2025-04-29 10:25:27,940 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:25:27,942 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:25:27,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:25:27,945 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:25:27,947 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:25:27,949 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:25:27,951 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:25:27,956 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:25:27,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:25:27,959 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:25:27,960 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:25:27,961 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:25:27,961 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:25:27,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:25:27,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:25:27,965 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:25:27,967 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:25:27,969 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:25:27,970 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:25:27,973 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:25:27,976 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:25:27,976 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:25:27,978 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:25:27,980 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:25:27,981 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:25:27,988 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:25:27,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:25:27,991 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:25:27,992 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:25:27,994 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:25:27,999 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:26:27,968 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:26:27,969 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:26:27,969 - sqlalchemy.engine.Engine - INFO - [cached since 480.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 26, 27, 968988))
2025-04-29 10:26:27,969 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:26:28,045 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:26:28,046 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:26:28,047 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:26:28,047 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:26:28,047 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:26:28,047 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:26:28,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:26:28,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:26:28,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:26:28,048 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:26:28,048 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:26:28,049 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:26:28,049 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:26:28,049 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:26:28,049 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:26:28,050 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:26:28,050 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:26:28,050 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:26:28,050 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:26:28,050 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:26:28,050 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:26:28,051 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:26:28,051 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:26:28,051 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:26:28,051 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:26:28,051 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:26:28,051 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:26:28,051 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:26:28,051 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:26:28,057 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:27:27,989 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:27:27,990 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:27:27,991 - sqlalchemy.engine.Engine - INFO - [cached since 540.3s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 27, 27, 988073))
2025-04-29 10:27:27,993 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:27:28,082 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:27:28,085 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:27:28,085 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:27:28,085 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:27:28,086 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:27:28,086 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:27:28,086 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:27:28,086 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:27:28,086 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:27:28,086 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:27:28,086 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:27:28,086 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:27:28,087 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:27:28,087 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:27:28,087 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:27:28,088 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:27:28,088 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:27:28,089 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:27:28,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:27:28,090 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:27:28,090 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:27:28,091 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:27:28,092 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:27:28,093 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:27:28,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:27:28,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:27:28,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:27:28,095 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:27:28,095 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:27:28,099 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:28:28,011 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:28:28,016 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:28:28,020 - sqlalchemy.engine.Engine - INFO - [cached since 600.3s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 28, 28, 10051))
2025-04-29 10:28:28,023 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:28:28,152 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:28:28,154 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:28:28,156 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:28:28,157 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:28:28,158 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:28:28,158 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:28:28,158 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:28:28,158 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:28:28,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:28:28,159 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:28:28,159 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:28:28,159 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:28:28,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:28:28,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:28:28,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:28:28,161 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:28:28,161 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:28:28,161 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:28:28,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:28:28,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:28:28,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:28:28,161 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:28:28,162 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:28:28,162 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:28:28,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:28:28,164 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:28:28,164 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:28:28,165 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:28:28,165 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:28:28,169 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:29:28,043 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:29:28,044 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:29:28,044 - sqlalchemy.engine.Engine - INFO - [cached since 660.3s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 29, 28, 40397))
2025-04-29 10:29:28,046 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:29:28,213 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:29:28,214 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:29:28,214 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:29:28,215 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:29:28,215 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:29:28,216 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:29:28,221 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:29:28,223 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:29:28,225 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:29:28,228 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:29:28,228 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:29:28,229 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:29:28,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:29:28,233 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:29:28,234 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:29:28,236 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:29:28,238 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:29:28,241 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:29:28,244 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:29:28,245 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:29:28,248 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:29:28,250 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:29:28,251 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:29:28,254 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:29:28,260 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:29:28,261 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:29:28,261 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:29:28,264 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:29:28,266 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:29:28,273 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:30:28,033 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:30:28,033 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:30:28,033 - sqlalchemy.engine.Engine - INFO - [cached since 720.3s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 30, 28, 32620))
2025-04-29 10:30:28,035 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:30:28,342 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:30:28,348 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:30:28,348 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:30:28,348 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:30:28,348 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:30:28,348 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:30:28,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:30:28,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:30:28,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:30:28,350 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:30:28,350 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:30:28,351 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:30:28,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:30:28,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:30:28,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:30:28,351 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:30:28,352 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:30:28,352 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:30:28,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:30:28,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:30:28,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:30:28,355 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:30:28,355 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:30:28,355 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:30:28,355 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:30:28,355 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:30:28,355 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:30:28,355 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:30:28,355 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:30:28,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:31:28,033 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:31:28,034 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:31:28,035 - sqlalchemy.engine.Engine - INFO - [cached since 780.3s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 31, 28, 33968))
2025-04-29 10:31:28,036 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:31:28,406 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:31:28,407 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:31:28,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:31:28,408 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:31:28,408 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:31:28,408 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:31:28,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:31:28,410 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:31:28,410 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:31:28,410 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:31:28,411 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:31:28,411 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:31:28,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:31:28,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:31:28,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:31:28,413 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:31:28,413 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:31:28,414 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:31:28,414 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:31:28,414 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:31:28,415 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:31:28,416 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:31:28,416 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:31:28,416 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:31:28,416 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:31:28,417 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:31:28,417 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:31:28,418 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:31:28,418 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:31:28,423 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:32:28,051 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:32:28,051 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:32:28,053 - sqlalchemy.engine.Engine - INFO - [cached since 840.3s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 32, 28, 49825))
2025-04-29 10:32:28,054 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:32:28,472 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:32:28,473 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:32:28,473 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:32:28,473 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:32:28,473 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:32:28,473 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:32:28,474 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:32:28,474 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:32:28,474 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:32:28,474 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:32:28,474 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:32:28,474 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:32:28,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:32:28,476 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:32:28,476 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:32:28,476 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:32:28,476 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:32:28,476 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:32:28,476 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:32:28,477 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:32:28,477 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:32:28,477 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:32:28,477 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:32:28,477 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:32:28,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:32:28,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:32:28,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:32:28,478 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:32:28,478 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:32:28,483 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:33:28,077 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:33:28,080 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:33:28,081 - sqlalchemy.engine.Engine - INFO - [cached since 900.3s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 33, 28, 76538))
2025-04-29 10:33:28,083 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:33:28,544 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:33:28,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:33:28,547 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:33:28,549 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:33:28,549 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:33:28,549 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:33:28,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:33:28,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:33:28,550 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:33:28,550 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:33:28,550 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:33:28,550 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:33:28,551 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:33:28,551 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:33:28,551 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:33:28,551 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:33:28,551 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:33:28,551 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:33:28,551 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:33:28,551 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:33:28,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:33:28,552 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:33:28,552 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:33:28,552 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:33:28,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:33:28,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:33:28,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:33:28,552 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:33:28,552 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:33:28,557 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:34:28,083 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:34:28,085 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:34:28,088 - sqlalchemy.engine.Engine - INFO - [cached since 960.4s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 34, 28, 82095))
2025-04-29 10:34:28,090 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:34:28,567 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:34:28,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:34:28,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:34:28,568 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:34:28,568 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:34:28,569 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:34:28,570 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:34:28,570 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:34:28,571 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:34:28,571 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:34:28,571 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:34:28,572 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:34:28,572 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:34:28,572 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:34:28,573 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:34:28,573 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:34:28,574 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:34:28,574 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:34:28,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:34:28,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:34:28,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:34:28,574 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:34:28,574 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:34:28,574 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:34:28,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:34:28,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:34:28,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:34:28,575 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:34:28,575 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:34:28,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:35:28,084 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:35:28,087 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:35:28,088 - sqlalchemy.engine.Engine - INFO - [cached since 1020s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 35, 28, 83899))
2025-04-29 10:35:28,090 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:35:43,582 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:35:43,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:35:43,585 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:35:43,587 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:35:43,589 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:35:43,591 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:35:43,594 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:35:43,596 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:35:43,597 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:35:43,598 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:35:43,599 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:35:43,600 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:35:43,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:35:43,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:35:43,610 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:35:43,610 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:35:43,612 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:35:43,613 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:35:43,618 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:35:43,620 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:35:43,620 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:35:43,622 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:35:43,626 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:35:43,626 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:35:43,630 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:35:43,631 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:35:43,632 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:35:43,634 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:35:43,636 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:35:43,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:36:28,081 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:36:28,084 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:36:28,086 - sqlalchemy.engine.Engine - INFO - [cached since 1080s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 36, 28, 80571))
2025-04-29 10:36:28,089 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:36:43,684 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:36:43,685 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:36:43,685 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:36:43,686 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:36:43,688 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:36:43,690 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:36:43,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:36:43,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:36:43,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:36:43,693 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:36:43,694 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:36:43,694 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:36:43,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:36:43,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:36:43,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:36:43,699 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:36:43,699 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:36:43,699 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:36:43,700 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:36:43,701 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:36:43,703 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:36:43,703 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:36:43,705 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:36:43,705 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:36:43,706 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:36:43,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:36:43,709 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:36:43,710 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:36:43,711 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:36:43,720 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:37:28,086 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:37:28,090 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:37:28,092 - sqlalchemy.engine.Engine - INFO - [cached since 1140s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 37, 28, 85729))
2025-04-29 10:37:28,096 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:37:43,736 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:37:43,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:37:43,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:37:43,738 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:37:43,738 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:37:43,738 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:37:43,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:37:43,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:37:43,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:37:43,739 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:37:43,740 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:37:43,740 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:37:43,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:37:43,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:37:43,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:37:43,740 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:37:43,741 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:37:43,741 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:37:43,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:37:43,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:37:43,746 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:37:43,746 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:37:43,747 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:37:43,747 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:37:43,748 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:37:43,748 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:37:43,748 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:37:43,748 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:37:43,748 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:37:43,757 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:38:28,119 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:38:28,120 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:38:28,122 - sqlalchemy.engine.Engine - INFO - [cached since 1200s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 38, 28, 118786))
2025-04-29 10:38:28,125 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:38:43,785 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:38:43,785 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:38:43,785 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:38:43,785 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:38:43,785 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:38:43,785 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:38:43,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:38:43,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:38:43,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:38:43,787 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:38:43,787 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:38:43,787 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:38:43,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:38:43,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:38:43,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:38:43,787 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:38:43,788 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:38:43,788 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:38:43,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:38:43,789 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:38:43,789 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:38:43,789 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:38:43,790 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:38:43,790 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:38:43,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:38:43,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:38:43,791 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:38:43,791 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:38:43,791 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:38:43,796 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:39:28,142 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:39:28,143 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:39:28,143 - sqlalchemy.engine.Engine - INFO - [cached since 1260s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 39, 28, 142026))
2025-04-29 10:39:28,145 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:39:43,811 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:39:43,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:39:43,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:39:43,813 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:39:43,814 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:39:43,814 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:39:43,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:39:43,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:39:43,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:39:43,814 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:39:43,814 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:39:43,814 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:39:43,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:39:43,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:39:43,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:39:43,814 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:39:43,814 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:39:43,814 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:39:43,815 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:39:43,815 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:39:43,815 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:39:43,815 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:39:43,815 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:39:43,815 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:39:43,815 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:39:43,815 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:39:43,815 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:39:43,815 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:39:43,815 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:39:43,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:40:28,165 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:40:28,165 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:40:28,166 - sqlalchemy.engine.Engine - INFO - [cached since 1320s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 40, 28, 164412))
2025-04-29 10:40:28,167 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:40:43,834 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:40:43,837 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:40:43,838 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:40:43,839 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:40:43,840 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:40:43,840 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:40:43,840 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:40:43,841 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:40:43,843 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:40:43,844 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:40:43,845 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:40:43,846 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:40:43,847 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:40:43,847 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:40:43,848 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:40:43,850 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:40:43,851 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:40:43,851 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:40:43,853 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:40:43,854 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:40:43,854 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:40:43,856 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:40:43,860 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:40:43,862 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:40:43,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:40:43,864 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:40:43,864 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:40:43,865 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:40:43,865 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:40:43,870 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:41:28,163 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:41:28,164 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:41:28,166 - sqlalchemy.engine.Engine - INFO - [cached since 1380s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 41, 28, 162015))
2025-04-29 10:41:28,169 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:41:43,909 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:41:43,909 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:41:43,909 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:41:43,909 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:41:43,911 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:41:43,911 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:41:43,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:41:43,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:41:43,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:41:43,911 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:41:43,911 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:41:43,911 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:41:43,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:41:43,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:41:43,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:41:43,911 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:41:43,912 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:41:43,912 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:41:43,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:41:43,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:41:43,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:41:43,912 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:41:43,912 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:41:43,912 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:41:43,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:41:43,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:41:43,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:41:43,912 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:41:43,912 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:41:43,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:42:28,177 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:42:28,180 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:42:28,181 - sqlalchemy.engine.Engine - INFO - [cached since 1440s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 42, 28, 172619))
2025-04-29 10:42:28,183 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:42:43,918 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:42:43,920 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:42:43,920 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:42:43,921 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:42:43,921 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:42:43,922 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:42:43,922 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:42:43,923 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:42:43,923 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:42:43,923 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:42:43,925 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:42:43,925 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:42:43,925 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:42:43,925 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:42:43,925 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:42:43,925 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:42:43,926 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:42:43,926 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:42:43,926 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:42:43,926 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:42:43,926 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:42:43,928 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:42:43,928 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:42:43,930 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:42:43,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:42:43,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:42:43,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:42:43,930 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:42:43,930 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:42:43,934 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:43:28,187 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:43:28,188 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:43:28,188 - sqlalchemy.engine.Engine - INFO - [cached since 1500s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 43, 28, 185185))
2025-04-29 10:43:28,189 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:43:43,958 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:43:43,958 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:43:43,958 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:43:43,958 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:43:43,958 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:43:43,958 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:43:43,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:43:43,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:43:43,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:43:43,961 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:43:43,961 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:43:43,961 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:43:43,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:43:43,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:43:43,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:43:43,961 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:43:43,961 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:43:43,961 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:43:43,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:43:43,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:43:43,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:43:43,961 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:43:43,961 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:43:43,961 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:43:43,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:43:43,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:43:43,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:43:43,961 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:43:43,961 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:43:43,968 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:44:28,200 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:44:28,201 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:44:28,204 - sqlalchemy.engine.Engine - INFO - [cached since 1560s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 44, 28, 200031))
2025-04-29 10:44:28,206 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:44:58,947 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:44:58,947 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:44:58,947 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:44:58,947 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:44:58,947 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:44:58,947 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:44:58,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:44:58,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:44:58,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:44:58,957 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:44:58,957 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:44:58,957 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:44:58,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:44:58,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:44:58,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:44:58,967 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:44:58,967 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:44:58,967 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:44:58,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:44:58,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:44:58,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:44:58,967 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:44:58,977 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:44:58,977 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:44:58,977 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:44:58,977 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:44:58,977 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:44:58,977 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:44:58,977 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:44:58,988 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:45:28,215 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:45:28,215 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:45:28,215 - sqlalchemy.engine.Engine - INFO - [cached since 1620s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 45, 28, 215462))
2025-04-29 10:45:28,219 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:45:28,428 - app - INFO - 应用程序关闭中...
2025-04-29 10:45:28,428 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 10:45:28,428 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 10:45:28,428 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 10:45:28,428 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 10:45:28,428 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 10:45:28,428 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 10:45:28,428 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 10:45:28,428 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 10:45:28,428 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 10:45:28,428 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 10:45:28,428 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:45:28,428 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:45:28,428 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:45:28,428 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:45:28,428 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:45:28,428 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 10:45:28,428 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:45:28,428 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:45:28,428 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 10:45:28,428 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:45:28,428 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:45:28,428 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 10:45:28,428 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:45:28,428 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:45:28,428 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 10:45:28,428 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 10:45:28,428 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 10:45:28,428 - app - INFO - 增强版任务调度器已停止
2025-04-29 10:45:28,428 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 10:45:28,428 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 10:45:28,428 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 10:45:28,428 - data.session - INFO - 数据库连接已关闭
2025-04-29 10:45:29,684 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 10:45:29,747 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 10:45:29,747 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 10:45:29,810 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 10:45:29,862 - data.session - INFO - 正在初始化数据库...
2025-04-29 10:45:29,895 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 10:45:29,911 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 10:45:29,911 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:45:29,911 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 10:45:29,911 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:45:29,921 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 10:45:29,926 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:45:29,927 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:45:29,927 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 10:45:29,928 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:45:29,928 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 10:45:29,930 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:45:29,932 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 10:45:29,935 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:45:29,938 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 10:45:29,938 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:45:29,943 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 10:45:29,945 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:45:29,945 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 10:45:29,945 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:45:29,954 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 10:45:29,954 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:45:29,963 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 10:45:29,966 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:45:29,967 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 10:45:29,967 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:45:29,967 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 10:45:29,967 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:45:29,977 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 10:45:29,979 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:45:29,979 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:45:29,979 - data.session - INFO - 数据库表初始化完成
2025-04-29 10:45:30,359 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 10:45:30,360 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 10:45:30,362 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 10:45:30,364 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 10:45:30,364 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 10:45:30,364 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 10:45:30,364 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 10:45:30,364 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 10:45:30,364 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 10:45:30,364 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 10:45:30,375 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:45:30,375 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 10:45:30,377 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 10:45:30,378 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:45:30,378 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:45:30,378 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:45:30,387 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:45:30,387 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:45:30,387 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 10:45:30,393 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 10:45:30,394 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 10:45:30,395 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 10:45:30,397 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:45:30,397 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 10:45:30,397 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:45:30,406 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 10:45:30,408 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:45:30,409 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:45:30,421 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 10:45:30,425 - sqlalchemy.engine.Engine - INFO - [generated in 0.00321s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 10:45:30,427 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 10:45:30,427 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:45:30,427 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 10:45:30,427 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 10:45:30,427 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 10:45:30,436 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:45:30,439 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 10:45:30,443 - sqlalchemy.engine.Engine - INFO - [generated in 0.00290s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 10:45:30,444 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:45:30,444 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 10:45:30,444 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 10:45:30,444 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 10:45:30,444 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 10:45:30,444 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 10:45:30,444 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:45:30,444 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:45:30,444 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 45, 30, 427330))
2025-04-29 10:45:30,444 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:46:30,394 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:46:30,395 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:46:30,396 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:46:30,396 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:46:30,396 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:46:30,396 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:46:30,396 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:46:30,396 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:46:30,396 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:46:30,396 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:46:30,396 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:46:30,396 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:46:30,396 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:46:30,396 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:46:30,396 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:46:30,396 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:46:30,396 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:46:30,396 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:46:30,396 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:46:30,396 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:46:30,396 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:46:30,396 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:46:30,396 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:46:30,396 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:46:30,396 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:46:30,396 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:46:30,396 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:46:30,396 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:46:30,396 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:46:30,406 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:46:30,456 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:46:30,456 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:46:30,456 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 46, 30, 456387))
2025-04-29 10:46:30,456 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:46:30,611 - app - INFO - 应用程序关闭中...
2025-04-29 10:46:30,611 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 10:46:30,611 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 10:46:30,611 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 10:46:30,611 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 10:46:30,611 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 10:46:30,611 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 10:46:30,611 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 10:46:30,611 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 10:46:30,611 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 10:46:30,611 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 10:46:30,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:46:30,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:46:30,611 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:46:30,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:46:30,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:46:30,611 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 10:46:30,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:46:30,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:46:30,611 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 10:46:30,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:46:30,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:46:30,611 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 10:46:30,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:46:30,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:46:30,611 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 10:46:30,611 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 10:46:30,611 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 10:46:30,611 - app - INFO - 增强版任务调度器已停止
2025-04-29 10:46:30,611 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 10:46:30,611 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 10:46:30,611 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 10:46:30,611 - data.session - INFO - 数据库连接已关闭
2025-04-29 10:46:31,840 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 10:46:31,906 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 10:46:31,906 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 10:46:31,962 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 10:46:32,016 - data.session - INFO - 正在初始化数据库...
2025-04-29 10:46:32,044 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 10:46:32,059 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 10:46:32,059 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:46:32,059 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 10:46:32,059 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:46:32,059 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 10:46:32,059 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:46:32,059 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:46:32,059 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 10:46:32,059 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:46:32,059 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 10:46:32,059 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:46:32,069 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 10:46:32,069 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:46:32,069 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 10:46:32,069 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:46:32,069 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 10:46:32,069 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:46:32,069 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 10:46:32,069 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:46:32,075 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 10:46:32,075 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:46:32,075 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 10:46:32,075 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:46:32,075 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 10:46:32,075 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:46:32,079 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 10:46:32,079 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:46:32,079 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 10:46:32,079 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:46:32,089 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:46:32,099 - data.session - INFO - 数据库表初始化完成
2025-04-29 10:46:32,457 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 10:46:32,457 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 10:46:32,457 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 10:46:32,457 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 10:46:32,457 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 10:46:32,457 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 10:46:32,457 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 10:46:32,457 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 10:46:32,457 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 10:46:32,457 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 10:46:32,457 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:46:32,457 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 10:46:32,457 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 10:46:32,467 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:46:32,467 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:46:32,467 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:46:32,467 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:46:32,467 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:46:32,467 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 10:46:32,467 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 10:46:32,467 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 10:46:32,467 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 10:46:32,467 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:46:32,467 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 10:46:32,467 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:46:32,467 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 10:46:32,467 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:46:32,474 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:46:32,478 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 10:46:32,478 - sqlalchemy.engine.Engine - INFO - [generated in 0.00079s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 10:46:32,478 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 10:46:32,478 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:46:32,478 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 10:46:32,488 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 10:46:32,488 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 10:46:32,489 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:46:32,491 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 10:46:32,491 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 10:46:32,512 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:46:32,514 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 10:46:32,514 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 10:46:32,514 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 10:46:32,514 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 10:46:32,514 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 10:46:32,514 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:46:32,514 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:46:32,514 - sqlalchemy.engine.Engine - INFO - [generated in 0.00053s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 46, 32, 489881))
2025-04-29 10:46:32,514 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:47:32,520 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:47:32,520 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:47:32,520 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 47, 32, 520443))
2025-04-29 10:47:32,525 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:47:47,457 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:47:47,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:47:47,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:47:47,457 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:47:47,457 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:47:47,457 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:47:47,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:47:47,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:47:47,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:47:47,457 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:47:47,457 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:47:47,457 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:47:47,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:47:47,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:47:47,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:47:47,457 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:47:47,457 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:47:47,457 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:47:47,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:47:47,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:47:47,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:47:47,457 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:47:47,457 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:47:47,457 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:47:47,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:47:47,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:47:47,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:47:47,457 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:47:47,457 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:47:47,467 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:48:32,520 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:48:32,521 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:48:32,521 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 48, 32, 520042))
2025-04-29 10:48:32,521 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:48:47,513 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:48:47,513 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:48:47,513 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:48:47,513 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:48:47,513 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:48:47,513 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:48:47,513 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:48:47,513 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:48:47,513 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:48:47,529 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:48:47,529 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:48:47,529 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:48:47,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:48:47,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:48:47,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:48:47,531 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:48:47,531 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:48:47,531 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:48:47,544 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:48:47,544 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:48:47,544 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:48:47,544 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:48:47,546 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:48:47,546 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:48:47,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:48:47,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:48:47,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:48:47,546 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:48:47,546 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:48:47,563 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:49:32,539 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:49:32,541 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:49:32,543 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 49, 32, 539475))
2025-04-29 10:49:32,544 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:49:32,749 - app - INFO - 应用程序关闭中...
2025-04-29 10:49:32,749 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 10:49:32,757 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 10:49:32,757 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 10:49:32,758 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 10:49:32,758 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 10:49:32,758 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 10:49:32,758 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 10:49:32,758 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 10:49:32,758 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 10:49:32,758 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 10:49:32,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:49:32,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:49:32,759 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:49:32,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:49:32,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:49:32,759 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 10:49:32,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:49:32,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:49:32,759 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 10:49:32,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:49:32,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:49:32,759 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 10:49:32,760 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:49:32,761 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:49:32,763 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 10:49:32,763 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 10:49:32,764 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 10:49:32,766 - app - INFO - 增强版任务调度器已停止
2025-04-29 10:49:32,766 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 10:49:32,767 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 10:49:32,767 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 10:49:32,767 - data.session - INFO - 数据库连接已关闭
2025-04-29 10:49:34,207 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 10:49:34,272 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 10:49:34,273 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 10:49:34,335 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 10:49:34,387 - data.session - INFO - 正在初始化数据库...
2025-04-29 10:49:34,419 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 10:49:34,432 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 10:49:34,432 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:49:34,433 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 10:49:34,434 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:49:34,434 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 10:49:34,435 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:49:34,435 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:49:34,436 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 10:49:34,436 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:49:34,437 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 10:49:34,438 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:49:34,439 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 10:49:34,439 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:49:34,441 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 10:49:34,441 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:49:34,442 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 10:49:34,442 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:49:34,443 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 10:49:34,443 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:49:34,444 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 10:49:34,444 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:49:34,445 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 10:49:34,445 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:49:34,447 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 10:49:34,447 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:49:34,448 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 10:49:34,448 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:49:34,449 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 10:49:34,449 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:49:34,450 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:49:34,451 - data.session - INFO - 数据库表初始化完成
2025-04-29 10:49:34,840 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 10:49:34,842 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 10:49:34,843 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 10:49:34,844 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 10:49:34,845 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 10:49:34,845 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 10:49:34,846 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 10:49:34,846 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 10:49:34,846 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 10:49:34,846 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 10:49:34,846 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:49:34,846 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 10:49:34,847 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 10:49:34,848 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:49:34,848 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:49:34,848 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:49:34,848 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:49:34,848 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:49:34,849 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 10:49:34,849 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 10:49:34,850 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 10:49:34,850 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 10:49:34,850 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:49:34,851 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 10:49:34,851 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:49:34,852 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 10:49:34,852 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:49:34,853 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:49:34,861 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 10:49:34,862 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 10:49:34,863 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 10:49:34,863 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:49:34,864 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 10:49:34,864 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 10:49:34,866 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 10:49:34,866 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:49:34,868 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 10:49:34,868 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 10:49:34,869 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:49:34,869 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 10:49:34,870 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 10:49:34,870 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 10:49:34,870 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 10:49:34,870 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 10:49:34,871 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:49:34,871 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:49:34,871 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 49, 34, 866866))
2025-04-29 10:49:34,873 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:50:34,855 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:50:34,857 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:50:34,857 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:50:34,857 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:50:34,857 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:50:34,857 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:50:34,858 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:50:34,858 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:50:34,858 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:50:34,858 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:50:34,858 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:50:34,860 - sqlalchemy.engine.Engine - INFO - [cached since 59.99s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 50, 34, 856387))
2025-04-29 10:50:34,860 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:50:34,860 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:50:34,860 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:50:34,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:50:34,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:50:34,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:50:34,860 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:50:34,860 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:50:34,860 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:50:34,860 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:50:34,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:50:34,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:50:34,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:50:34,860 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:50:34,860 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:50:34,860 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:50:34,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:50:34,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:50:34,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:50:34,860 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:50:34,860 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:50:34,871 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:50:34,960 - app - INFO - 应用程序关闭中...
2025-04-29 10:50:34,960 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 10:50:34,961 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 10:50:34,961 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 10:50:34,961 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 10:50:34,961 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 10:50:34,961 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 10:50:34,961 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 10:50:34,961 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 10:50:34,961 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 10:50:34,961 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 10:50:34,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:50:34,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:50:34,963 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:50:34,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:50:34,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:50:34,963 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 10:50:34,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:50:34,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:50:34,963 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 10:50:34,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:50:34,964 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:50:34,964 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 10:50:34,964 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:50:34,964 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:50:34,964 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 10:50:34,964 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 10:50:34,964 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 10:50:34,964 - app - INFO - 增强版任务调度器已停止
2025-04-29 10:50:34,964 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 10:50:34,965 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 10:50:34,965 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 10:50:34,965 - data.session - INFO - 数据库连接已关闭
2025-04-29 10:50:36,169 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 10:50:36,226 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 10:50:36,226 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 10:50:36,294 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 10:50:36,346 - data.session - INFO - 正在初始化数据库...
2025-04-29 10:50:36,384 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 10:50:36,406 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 10:50:36,406 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:50:36,407 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 10:50:36,407 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:50:36,408 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 10:50:36,408 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:50:36,408 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:50:36,411 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 10:50:36,412 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:50:36,413 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 10:50:36,413 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:50:36,414 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 10:50:36,415 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:50:36,416 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 10:50:36,416 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:50:36,417 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 10:50:36,418 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:50:36,418 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 10:50:36,419 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:50:36,419 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 10:50:36,419 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:50:36,420 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 10:50:36,420 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:50:36,421 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 10:50:36,421 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:50:36,422 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 10:50:36,422 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:50:36,423 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 10:50:36,424 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:50:36,425 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:50:36,427 - data.session - INFO - 数据库表初始化完成
2025-04-29 10:50:36,783 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 10:50:36,783 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 10:50:36,783 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 10:50:36,783 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 10:50:36,783 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 10:50:36,783 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 10:50:36,783 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 10:50:36,783 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 10:50:36,783 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 10:50:36,783 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 10:50:36,783 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:50:36,783 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 10:50:36,783 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 10:50:36,783 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:50:36,783 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:50:36,783 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:50:36,783 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:50:36,783 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:50:36,783 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 10:50:36,783 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 10:50:36,783 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 10:50:36,793 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 10:50:36,793 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:50:36,793 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 10:50:36,793 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:50:36,793 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 10:50:36,793 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:50:36,793 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:50:36,803 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 10:50:36,803 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 10:50:36,803 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 10:50:36,806 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:50:36,806 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 10:50:36,806 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 10:50:36,806 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 10:50:36,806 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:50:36,806 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 10:50:36,806 - sqlalchemy.engine.Engine - INFO - [generated in 0.00072s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 10:50:36,824 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:50:36,824 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 10:50:36,824 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 10:50:36,824 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 10:50:36,824 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 10:50:36,824 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 10:50:36,824 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:50:36,824 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:50:36,824 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 50, 36, 806828))
2025-04-29 10:50:36,824 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:51:36,807 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:51:36,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:51:36,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:51:36,807 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:51:36,807 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:51:36,807 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:51:36,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:51:36,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:51:36,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:51:36,807 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:51:36,807 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:51:36,807 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:51:36,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:51:36,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:51:36,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:51:36,807 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:51:36,807 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:51:36,807 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:51:36,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:51:36,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:51:36,817 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:51:36,817 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:51:36,817 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:51:36,817 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:51:36,817 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:51:36,817 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:51:36,817 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:51:36,817 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:51:36,817 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:51:36,817 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:51:36,824 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:51:36,824 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:51:36,824 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 51, 36, 817609))
2025-04-29 10:51:36,824 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:51:36,981 - app - INFO - 应用程序关闭中...
2025-04-29 10:51:36,983 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 10:51:36,983 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 10:51:36,983 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 10:51:36,983 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 10:51:36,983 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 10:51:36,983 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 10:51:36,983 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 10:51:36,983 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 10:51:36,983 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 10:51:36,983 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 10:51:36,983 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:51:36,985 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:51:36,985 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:51:36,985 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:51:36,987 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:51:36,987 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 10:51:36,987 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:51:36,987 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:51:36,990 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 10:51:36,990 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:51:36,990 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:51:36,990 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 10:51:36,990 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:51:36,990 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:51:36,990 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 10:51:36,990 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 10:51:36,990 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 10:51:36,990 - app - INFO - 增强版任务调度器已停止
2025-04-29 10:51:36,990 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 10:51:36,990 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 10:51:36,990 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 10:51:36,990 - data.session - INFO - 数据库连接已关闭
2025-04-29 10:51:38,217 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 10:51:38,288 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 10:51:38,290 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 10:51:38,353 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 10:51:38,403 - data.session - INFO - 正在初始化数据库...
2025-04-29 10:51:38,426 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 10:51:38,445 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 10:51:38,445 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:51:38,445 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 10:51:38,445 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:51:38,445 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 10:51:38,445 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:51:38,445 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:51:38,445 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 10:51:38,445 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:51:38,445 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 10:51:38,445 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:51:38,445 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 10:51:38,445 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:51:38,445 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 10:51:38,445 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:51:38,445 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 10:51:38,445 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:51:38,455 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 10:51:38,456 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:51:38,456 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 10:51:38,456 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:51:38,456 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 10:51:38,456 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:51:38,456 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 10:51:38,456 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:51:38,456 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 10:51:38,456 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:51:38,456 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 10:51:38,456 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:51:38,456 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:51:38,456 - data.session - INFO - 数据库表初始化完成
2025-04-29 10:51:38,827 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 10:51:38,827 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 10:51:38,827 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 10:51:38,827 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 10:51:38,827 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 10:51:38,827 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 10:51:38,827 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 10:51:38,827 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 10:51:38,827 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 10:51:38,827 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 10:51:38,827 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:51:38,827 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 10:51:38,827 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 10:51:38,827 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:51:38,833 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:51:38,834 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:51:38,834 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:51:38,834 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:51:38,834 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 10:51:38,834 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 10:51:38,857 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 10:51:38,858 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 10:51:38,858 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:51:38,858 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 10:51:38,859 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:51:38,859 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 10:51:38,859 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:51:38,859 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:51:38,869 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 10:51:38,869 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 10:51:38,869 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 10:51:38,869 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:51:38,869 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 10:51:38,869 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 10:51:38,873 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 10:51:38,873 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:51:38,873 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 10:51:38,873 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 10:51:38,887 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:51:38,887 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 10:51:38,887 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 10:51:38,887 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 10:51:38,887 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 10:51:38,887 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 10:51:38,890 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:51:38,890 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:51:38,890 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 51, 38, 873084))
2025-04-29 10:51:38,890 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:52:38,859 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:52:38,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:52:38,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:52:38,859 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:52:38,859 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:52:38,859 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:52:38,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:52:38,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:52:38,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:52:38,859 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:52:38,859 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:52:38,859 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:52:38,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:52:38,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:52:38,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:52:38,859 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:52:38,859 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:52:38,859 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:52:38,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:52:38,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:52:38,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:52:38,859 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:52:38,859 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:52:38,859 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:52:38,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:52:38,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:52:38,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:52:38,859 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:52:38,859 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:52:38,869 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:52:38,887 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:52:38,889 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:52:38,889 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 52, 38, 887362))
2025-04-29 10:52:38,891 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:53:38,867 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:53:38,867 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:53:38,867 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:53:38,867 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:53:38,869 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:53:38,869 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:53:38,869 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:53:38,869 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:53:38,869 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:53:38,869 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:53:38,869 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:53:38,869 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:53:38,869 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:53:38,869 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:53:38,869 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:53:38,869 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:53:38,869 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:53:38,869 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:53:38,869 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:53:38,869 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:53:38,869 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:53:38,869 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:53:38,869 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:53:38,869 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:53:38,869 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:53:38,869 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:53:38,869 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:53:38,869 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:53:38,869 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:53:38,877 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:53:38,877 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:53:38,877 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:53:38,877 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 53, 38, 877603))
2025-04-29 10:53:38,877 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:54:38,891 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:54:38,893 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:54:38,894 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 54, 38, 889858))
2025-04-29 10:54:38,896 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:54:38,901 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:54:38,905 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:54:38,906 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:54:38,907 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:54:38,909 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:54:38,909 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:54:38,909 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:54:38,909 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:54:38,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:54:38,913 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:54:38,913 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:54:38,914 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:54:38,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:54:38,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:54:38,921 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:54:38,921 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:54:38,921 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:54:38,921 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:54:38,921 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:54:38,921 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:54:38,925 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:54:38,925 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:54:38,925 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:54:38,928 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:54:38,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:54:38,932 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:54:38,933 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:54:38,933 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:54:38,935 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:54:38,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:55:38,924 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:55:38,924 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:55:38,924 - sqlalchemy.engine.Engine - INFO - [cached since 240s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 55, 38, 924712))
2025-04-29 10:55:38,924 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:55:38,973 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:55:38,973 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:55:38,973 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:55:38,973 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:55:38,974 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:55:38,974 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:55:38,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:55:38,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:55:38,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:55:38,975 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:55:38,975 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:55:38,975 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:55:38,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:55:38,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:55:38,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:55:38,976 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:55:38,976 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:55:38,976 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:55:38,976 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:55:38,976 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:55:38,977 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:55:38,977 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:55:38,977 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:55:38,977 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:55:38,977 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:55:38,977 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:55:38,977 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:55:38,978 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:55:38,978 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:55:38,985 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:55:39,093 - app - INFO - 应用程序关闭中...
2025-04-29 10:55:39,093 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 10:55:39,093 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 10:55:39,093 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 10:55:39,093 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 10:55:39,093 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 10:55:39,094 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 10:55:39,094 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 10:55:39,094 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 10:55:39,094 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 10:55:39,094 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 10:55:39,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:55:39,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:55:39,095 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:55:39,095 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:55:39,095 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:55:39,095 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 10:55:39,095 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:55:39,095 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:55:39,095 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 10:55:39,095 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:55:39,095 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:55:39,095 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 10:55:39,096 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:55:39,096 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:55:39,096 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 10:55:39,096 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 10:55:39,096 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 10:55:39,096 - app - INFO - 增强版任务调度器已停止
2025-04-29 10:55:39,096 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 10:55:39,096 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 10:55:39,097 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 10:55:39,097 - data.session - INFO - 数据库连接已关闭
2025-04-29 10:55:40,420 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 10:55:40,490 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 10:55:40,490 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 10:55:40,568 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 10:55:40,626 - data.session - INFO - 正在初始化数据库...
2025-04-29 10:55:40,652 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 10:55:40,656 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 10:55:40,658 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:55:40,658 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 10:55:40,660 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:55:40,662 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 10:55:40,662 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:55:40,663 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:55:40,664 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 10:55:40,664 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:55:40,665 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 10:55:40,667 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:55:40,672 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 10:55:40,675 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:55:40,679 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 10:55:40,683 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:55:40,686 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 10:55:40,689 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:55:40,692 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 10:55:40,695 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:55:40,697 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 10:55:40,700 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:55:40,705 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 10:55:40,708 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:55:40,710 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 10:55:40,711 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:55:40,712 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 10:55:40,713 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:55:40,714 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 10:55:40,714 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:55:40,715 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:55:40,716 - data.session - INFO - 数据库表初始化完成
2025-04-29 10:55:41,111 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 10:55:41,112 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 10:55:41,114 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 10:55:41,115 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 10:55:41,116 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 10:55:41,116 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 10:55:41,117 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 10:55:41,117 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 10:55:41,117 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 10:55:41,118 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 10:55:41,118 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:55:41,120 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 10:55:41,120 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 10:55:41,122 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:55:41,122 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:55:41,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:55:41,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:55:41,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:55:41,123 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 10:55:41,124 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 10:55:41,149 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 10:55:41,150 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 10:55:41,150 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:55:41,151 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 10:55:41,151 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:55:41,152 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 10:55:41,152 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:55:41,152 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:55:41,162 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 10:55:41,162 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 10:55:41,163 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 10:55:41,163 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:55:41,164 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 10:55:41,164 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 10:55:41,164 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 10:55:41,165 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:55:41,167 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 10:55:41,167 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 10:55:41,180 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:55:41,181 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 10:55:41,182 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 10:55:41,182 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 10:55:41,182 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 10:55:41,182 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 10:55:41,182 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:55:41,184 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:55:41,184 - sqlalchemy.engine.Engine - INFO - [generated in 0.00062s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 55, 41, 165929))
2025-04-29 10:55:41,185 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:56:41,187 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:56:41,187 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:56:41,187 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 56, 41, 187668))
2025-04-29 10:56:41,187 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:56:41,323 - app - INFO - 应用程序关闭中...
2025-04-29 10:56:41,323 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 10:56:41,323 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 10:56:41,323 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 10:56:41,323 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 10:56:41,323 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 10:56:41,323 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 10:56:41,323 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 10:56:41,323 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 10:56:41,323 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 10:56:41,323 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 10:56:41,323 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:56:41,323 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:56:41,323 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:56:41,323 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:56:41,323 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:56:41,323 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 10:56:41,323 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:56:41,323 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:56:41,323 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 10:56:41,323 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:56:41,323 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:56:41,323 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 10:56:41,323 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:56:41,323 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:56:41,323 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 10:56:41,323 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 10:56:41,323 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 10:56:41,323 - app - INFO - 增强版任务调度器已停止
2025-04-29 10:56:41,323 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 10:56:41,323 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 10:56:41,323 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 10:56:41,323 - data.session - INFO - 数据库连接已关闭
2025-04-29 10:56:42,497 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 10:56:42,556 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 10:56:42,556 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 10:56:42,619 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 10:56:42,667 - data.session - INFO - 正在初始化数据库...
2025-04-29 10:56:42,695 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 10:56:42,710 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 10:56:42,710 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:56:42,710 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 10:56:42,710 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:56:42,710 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 10:56:42,710 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:56:42,710 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:56:42,710 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 10:56:42,710 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:56:42,710 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 10:56:42,710 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:56:42,716 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 10:56:42,716 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:56:42,716 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 10:56:42,716 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:56:42,716 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 10:56:42,716 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:56:42,716 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 10:56:42,716 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:56:42,716 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 10:56:42,716 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:56:42,716 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 10:56:42,716 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:56:42,716 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 10:56:42,716 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:56:42,716 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 10:56:42,716 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:56:42,716 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 10:56:42,716 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:56:42,726 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:56:42,726 - data.session - INFO - 数据库表初始化完成
2025-04-29 10:56:43,084 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 10:56:43,084 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 10:56:43,084 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 10:56:43,084 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 10:56:43,086 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 10:56:43,086 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 10:56:43,086 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 10:56:43,086 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 10:56:43,086 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 10:56:43,086 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 10:56:43,086 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:56:43,086 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 10:56:43,086 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 10:56:43,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:56:43,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:56:43,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:56:43,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:56:43,090 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:56:43,090 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 10:56:43,090 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 10:56:43,090 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 10:56:43,092 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 10:56:43,092 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:56:43,092 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 10:56:43,092 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:56:43,092 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 10:56:43,092 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:56:43,092 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:56:43,102 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 10:56:43,102 - sqlalchemy.engine.Engine - INFO - [generated in 0.00075s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 10:56:43,102 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 10:56:43,102 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:56:43,102 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 10:56:43,102 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 10:56:43,102 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 10:56:43,102 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:56:43,102 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 10:56:43,102 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 10:56:43,102 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:56:43,102 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 10:56:43,102 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 10:56:43,102 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 10:56:43,112 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 10:56:43,112 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 10:56:43,112 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:56:43,112 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:56:43,112 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 56, 43, 102342))
2025-04-29 10:56:43,112 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:57:43,126 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:57:43,127 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:57:43,128 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 57, 43, 126560))
2025-04-29 10:57:43,132 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:57:43,293 - app - INFO - 应用程序关闭中...
2025-04-29 10:57:43,293 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 10:57:43,293 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 10:57:43,293 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 10:57:43,293 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 10:57:43,293 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 10:57:43,293 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 10:57:43,293 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 10:57:43,293 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 10:57:43,293 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 10:57:43,293 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 10:57:43,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:57:43,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:57:43,294 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:57:43,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:57:43,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:57:43,294 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 10:57:43,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:57:43,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:57:43,294 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 10:57:43,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:57:43,295 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:57:43,295 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 10:57:43,295 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:57:43,295 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:57:43,295 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 10:57:43,295 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 10:57:43,295 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 10:57:43,295 - app - INFO - 增强版任务调度器已停止
2025-04-29 10:57:43,295 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 10:57:43,296 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 10:57:43,296 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 10:57:43,296 - data.session - INFO - 数据库连接已关闭
2025-04-29 10:57:44,503 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 10:57:44,557 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 10:57:44,557 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 10:57:44,626 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 10:57:44,680 - data.session - INFO - 正在初始化数据库...
2025-04-29 10:57:44,700 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 10:57:44,710 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 10:57:44,710 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:57:44,710 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 10:57:44,720 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:57:44,721 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 10:57:44,724 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:57:44,726 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:57:44,726 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 10:57:44,726 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:57:44,726 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 10:57:44,726 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:57:44,731 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 10:57:44,731 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:57:44,733 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 10:57:44,733 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:57:44,733 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 10:57:44,733 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:57:44,736 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 10:57:44,739 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:57:44,745 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 10:57:44,747 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:57:44,756 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 10:57:44,760 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:57:44,768 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 10:57:44,768 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:57:44,769 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 10:57:44,769 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:57:44,769 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 10:57:44,780 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 10:57:44,780 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:57:44,780 - data.session - INFO - 数据库表初始化完成
2025-04-29 10:57:45,137 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 10:57:45,137 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 10:57:45,137 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 10:57:45,137 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 10:57:45,137 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 10:57:45,146 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 10:57:45,146 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 10:57:45,146 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 10:57:45,146 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 10:57:45,146 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 10:57:45,148 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:57:45,148 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 10:57:45,148 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 10:57:45,148 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:57:45,148 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:57:45,148 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:57:45,148 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:57:45,148 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:57:45,148 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 10:57:45,148 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 10:57:45,148 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 10:57:45,148 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 10:57:45,148 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:57:45,153 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 10:57:45,153 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:57:45,153 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 10:57:45,154 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 10:57:45,154 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:57:45,164 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 10:57:45,164 - sqlalchemy.engine.Engine - INFO - [generated in 0.00074s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 10:57:45,166 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 10:57:45,166 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:57:45,166 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 10:57:45,168 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 10:57:45,168 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 10:57:45,168 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:57:45,170 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 10:57:45,170 - sqlalchemy.engine.Engine - INFO - [generated in 0.00089s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 10:57:45,172 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:57:45,172 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 10:57:45,172 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 10:57:45,172 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 10:57:45,172 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 10:57:45,173 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 10:57:45,173 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:57:45,174 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:57:45,174 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 57, 45, 168036))
2025-04-29 10:57:45,175 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:58:45,175 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:58:45,176 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:58:45,176 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:58:45,176 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:58:45,176 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:58:45,176 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:58:45,176 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:58:45,176 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:58:45,176 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:58:45,176 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:58:45,176 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:58:45,176 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 58, 45, 175279))
2025-04-29 10:58:45,176 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:58:45,176 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:58:45,176 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:58:45,176 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:58:45,176 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:58:45,176 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:58:45,176 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:58:45,180 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:58:45,180 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:58:45,180 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:58:45,180 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:58:45,180 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:58:45,180 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:58:45,180 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:58:45,180 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:58:45,180 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:58:45,180 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:58:45,180 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:58:45,180 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:58:45,180 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:58:45,180 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:58:45,183 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 10:59:45,181 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 10:59:45,181 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 10:59:45,181 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 10:59:45,183 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 10:59:45,183 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 10:59:45,183 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 10:59:45,183 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 10:59:45,183 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 10:59:45,183 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 9, 59, 45, 181982))
2025-04-29 10:59:45,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 10:59:45,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 10:59:45,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 10:59:45,185 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 10:59:45,185 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 10:59:45,185 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 10:59:45,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 10:59:45,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 10:59:45,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 10:59:45,185 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 10:59:45,185 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 10:59:45,185 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 10:59:45,185 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 10:59:45,188 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 10:59:45,188 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 10:59:45,189 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 10:59:45,189 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 10:59:45,189 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 10:59:45,189 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 10:59:45,189 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 10:59:45,190 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 10:59:45,190 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 10:59:45,190 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 10:59:45,190 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 10:59:45,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 11:00:45,199 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 11:00:45,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 11:00:45,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 11:00:45,201 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 11:00:45,202 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 11:00:45,202 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 11:00:45,202 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:00:45,204 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 11:00:45,206 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 10, 0, 45, 198122))
2025-04-29 11:00:45,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 11:00:45,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 11:00:45,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 11:00:45,207 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 11:00:45,207 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 11:00:45,207 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 11:00:45,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 11:00:45,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 11:00:45,209 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 11:00:45,209 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:00:45,209 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 11:00:45,209 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 11:00:45,215 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 11:00:45,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 11:00:45,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 11:00:45,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 11:00:45,215 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 11:00:45,215 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 11:00:45,215 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 11:00:45,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 11:00:45,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 11:00:45,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 11:00:45,215 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 11:00:45,215 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 11:00:45,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 11:01:45,203 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 11:01:45,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 11:01:45,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 11:01:45,203 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 11:01:45,203 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 11:01:45,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 11:01:45,203 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:01:45,203 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 11:01:45,203 - sqlalchemy.engine.Engine - INFO - [cached since 240s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 10, 1, 45, 203548))
2025-04-29 11:01:45,203 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:02:00,195 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 11:02:00,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 11:02:00,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 11:02:00,196 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 11:02:00,196 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 11:02:00,196 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 11:02:00,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 11:02:00,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 11:02:00,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 11:02:00,196 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 11:02:00,196 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 11:02:00,196 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 11:02:00,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 11:02:00,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 11:02:00,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 11:02:00,196 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 11:02:00,196 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 11:02:00,196 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 11:02:00,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 11:02:00,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 11:02:00,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 11:02:00,196 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 11:02:00,196 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 11:02:00,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 11:02:45,205 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 11:02:45,205 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 11:02:45,205 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 11:02:45,205 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 11:02:45,207 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 11:02:45,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 11:02:45,207 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:02:45,207 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 11:02:45,207 - sqlalchemy.engine.Engine - INFO - [cached since 300s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 10, 2, 45, 205693))
2025-04-29 11:02:45,207 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:03:15,204 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 11:03:15,205 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 11:03:15,205 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 11:03:15,205 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 11:03:15,205 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 11:03:15,209 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 11:03:15,213 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 11:03:15,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 11:03:15,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 11:03:15,219 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 11:03:15,220 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 11:03:15,220 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 11:03:15,224 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 11:03:15,226 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 11:03:15,226 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 11:03:15,227 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 11:03:15,227 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 11:03:15,227 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 11:03:15,227 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 11:03:15,227 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 11:03:15,227 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 11:03:15,237 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 11:03:15,237 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 11:03:15,237 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 11:03:45,224 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:03:45,224 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 11:03:45,228 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 10, 3, 45, 224429))
2025-04-29 11:03:45,230 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:03:45,262 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 11:03:45,264 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 11:03:45,264 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 11:03:45,264 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 11:03:45,264 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 11:03:45,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 11:04:15,274 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 11:04:15,274 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 11:04:15,274 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 11:04:15,274 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 11:04:15,274 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 11:04:15,274 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 11:04:15,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 11:04:15,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 11:04:15,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 11:04:15,276 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 11:04:15,276 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 11:04:15,276 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 11:04:15,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 11:04:15,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 11:04:15,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 11:04:15,276 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 11:04:15,276 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 11:04:15,276 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 11:04:15,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 11:04:15,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 11:04:15,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 11:04:15,276 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 11:04:15,276 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 11:04:15,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 11:04:45,228 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:04:45,232 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 11:04:45,232 - sqlalchemy.engine.Engine - INFO - [cached since 420.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 10, 4, 45, 228117))
2025-04-29 11:04:45,235 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:04:45,275 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 11:04:45,275 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 11:04:45,281 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 11:04:45,281 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 11:04:45,281 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 11:04:45,281 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 11:05:15,278 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 11:05:15,278 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 11:05:15,278 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 11:05:15,278 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 11:05:15,278 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 11:05:15,278 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 11:05:15,278 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 11:05:15,278 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 11:05:15,278 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 11:05:15,278 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 11:05:15,278 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 11:05:15,284 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 11:05:15,284 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 11:05:15,284 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 11:05:15,284 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 11:05:15,284 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 11:05:15,284 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 11:05:15,284 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 11:05:15,284 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 11:05:15,284 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 11:05:15,284 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 11:05:15,284 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 11:05:15,284 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 11:05:15,284 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 11:05:45,237 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:05:45,238 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 11:05:45,238 - sqlalchemy.engine.Engine - INFO - [cached since 480.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 10, 5, 45, 236250))
2025-04-29 11:05:45,239 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:05:45,303 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 11:05:45,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 11:05:45,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 11:05:45,303 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 11:05:45,303 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 11:05:45,313 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 11:05:52,266 - app - INFO - 应用程序关闭中...
2025-04-29 11:05:52,266 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 11:05:52,266 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 11:05:52,266 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 11:05:52,266 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 11:05:52,266 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 11:05:52,266 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 11:05:52,266 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 11:05:52,266 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 11:05:52,277 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 11:05:52,277 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 11:05:52,277 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 11:05:52,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 11:05:52,283 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 11:05:52,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 11:05:52,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 11:05:52,283 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-29 11:05:52,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 11:05:52,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 11:05:52,283 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-29 11:05:52,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 11:05:52,293 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 11:05:52,293 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-29 11:05:52,293 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 11:05:52,293 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 11:05:52,293 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-29 11:05:52,293 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 11:05:52,299 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 11:05:52,299 - app - INFO - 增强版任务调度器已停止
2025-04-29 11:05:52,299 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 11:05:52,299 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 11:05:52,299 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 11:05:52,302 - data.session - INFO - 数据库连接已关闭
2025-04-29 11:05:54,342 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 11:05:54,399 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 11:05:54,409 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 11:05:55,131 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 11:05:55,191 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 11:05:55,191 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 11:05:55,260 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 11:05:55,316 - data.session - INFO - 正在初始化数据库...
2025-04-29 11:05:55,333 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 11:05:55,359 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 11:05:55,359 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:05:55,359 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 11:05:55,361 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:05:55,361 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 11:05:55,362 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:05:55,362 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:05:55,362 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 11:05:55,362 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:05:55,364 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 11:05:55,364 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:05:55,364 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 11:05:55,364 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:05:55,364 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 11:05:55,364 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:05:55,364 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 11:05:55,364 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:05:55,364 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 11:05:55,364 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:05:55,364 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 11:05:55,374 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:05:55,374 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 11:05:55,374 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:05:55,374 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 11:05:55,374 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:05:55,374 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 11:05:55,374 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:05:55,374 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 11:05:55,383 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:05:55,384 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:05:55,384 - data.session - INFO - 数据库表初始化完成
2025-04-29 11:05:55,749 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 11:05:55,749 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 11:05:55,749 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 11:05:55,749 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 11:05:55,749 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 11:05:55,749 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 11:05:55,749 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 11:05:55,749 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 11:05:55,749 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 11:05:55,749 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 11:05:55,749 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 11:05:55,749 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 11:05:55,749 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 11:05:55,756 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 11:05:55,756 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 11:05:55,756 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 11:05:55,756 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 11:05:55,756 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 11:05:55,756 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 11:05:55,756 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 11:05:55,756 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 11:05:55,759 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 11:05:55,759 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 11:05:55,759 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 11:05:55,759 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 11:05:55,759 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 11:05:55,759 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 11:05:55,759 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:05:55,764 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 11:05:55,764 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 11:05:55,764 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 11:05:55,764 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:05:55,774 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 11:05:55,774 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 11:05:55,774 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 11:05:55,774 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:05:55,774 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 11:05:55,774 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 11:05:55,774 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:05:55,779 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 11:05:55,779 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 11:05:55,779 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 11:05:55,779 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 11:05:55,779 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 11:05:55,781 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:05:55,781 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 11:05:55,784 - sqlalchemy.engine.Engine - INFO - [generated in 0.00087s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 10, 5, 55, 774418))
2025-04-29 11:05:55,784 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:28,237 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 11:06:28,239 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:28,241 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 11:06:28,242 - sqlalchemy.engine.Engine - INFO - [generated in 0.00156s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 11:06:28,243 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:28,244 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:28,245 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 11:06:28,245 - sqlalchemy.engine.Engine - INFO - [cached since 0.004478s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 11:06:28,246 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:28,250 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 11:06:28,250 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 11:06:28,250 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 11:06:28,251 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:28,252 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 11:06:28,252 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (None, datetime.datetime(2025, 4, 29, 11, 6, 28, 252715), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 11:06:28,253 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:28,267 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:28,268 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 11:06:28,273 - sqlalchemy.engine.Engine - INFO - [cached since 0.03224s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 11:06:28,275 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 11:06:28,275 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('c4e0357b-edb8-44a5-abf7-d1020161df74', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 3, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (290 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 11, 6, 28, 250424), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 11, 6, 28, 275721), datetime.datetime(2025, 4, 29, 11, 6, 28, 275721), 0)
2025-04-29 11:06:28,276 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:28,283 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:28,284 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 11:06:28,284 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('c4e0357b-edb8-44a5-abf7-d1020161df74',)
2025-04-29 11:06:28,286 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:28,286 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 c4e0357b-edb8-44a5-abf7-d1020161df74 (优先级 1) 添加到队列 0
2025-04-29 11:06:28,292 - services.sync_service - INFO - 正在同步创建任务到天风系统: c4e0357b-edb8-44a5-abf7-d1020161df74
2025-04-29 11:06:28,292 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"c4e0357b-edb8-44a5-abf7-d1020161df74","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 11:06:28","sceneId":"1912043207186550785","needAmr":1}
2025-04-29 11:06:28,322 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: c4e0357b-edb8-44a5-abf7-d1020161df74, 优先级: 1
2025-04-29 11:06:28,323 - services.execution.task_executor - DEBUG - 任务 c4e0357b-edb8-44a5-abf7-d1020161df74 设置超时时间: 3600秒
2025-04-29 11:06:28,323 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:28,325 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 11:06:28,327 - sqlalchemy.engine.Engine - INFO - [cached since 0.04171s ago] ('c4e0357b-edb8-44a5-abf7-d1020161df74',)
2025-04-29 11:06:28,330 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 11:06:28,331 - sqlalchemy.engine.Engine - INFO - [cached since 0.09036s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 11:06:28,334 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 11:06:28,335 - sqlalchemy.engine.Engine - INFO - [generated in 0.00114s] (datetime.datetime(2025, 4, 29, 11, 6, 28, 333302), datetime.datetime(2025, 4, 29, 11, 6, 28, 334303), 'c4e0357b-edb8-44a5-abf7-d1020161df74')
2025-04-29 11:06:28,337 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:28,347 - services.sync_service - INFO - 成功同步任务到系统任务: c4e0357b-edb8-44a5-abf7-d1020161df74
2025-04-29 11:06:28,350 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: c4e0357b-edb8-44a5-abf7-d1020161df74
2025-04-29 11:06:28,351 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: c4e0357b-edb8-44a5-abf7-d1020161df74
2025-04-29 11:06:28,351 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:28,353 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 11:06:28,353 - sqlalchemy.engine.Engine - INFO - [generated in 0.00076s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 11, 6, 28, 353762), 'c4e0357b-edb8-44a5-abf7-d1020161df74')
2025-04-29 11:06:28,354 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1173秒
2025-04-29 11:06:28,356 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:28,367 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 11:06:28,368 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:28,370 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 11:06:28,371 - sqlalchemy.engine.Engine - INFO - [generated in 0.00165s] ('d80463ed-be8a-4526-96ac-e72d0fe86b5d', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'c4e0357b-edb8-44a5-abf7-d1020161df74', datetime.datetime(2025, 4, 29, 11, 6, 28, 368809), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 11, 6, 28, 370761), datetime.datetime(2025, 4, 29, 11, 6, 28, 370761), 0)
2025-04-29 11:06:28,373 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:28,381 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:28,383 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 11:06:28,383 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('d80463ed-be8a-4526-96ac-e72d0fe86b5d',)
2025-04-29 11:06:28,387 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 11:06:28,387 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 11:06:28,388 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 11:06:28,392 - sqlalchemy.engine.Engine - INFO - [generated in 0.00395s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 11, 6, 28, 388760), 'd80463ed-be8a-4526-96ac-e72d0fe86b5d')
2025-04-29 11:06:28,394 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:28,403 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 11:06:28,404 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 11:06:28,407 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-29 11:06:28,409 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:28,410 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 11:06:28,411 - sqlalchemy.engine.Engine - INFO - [cached since 0.04056s ago] ('31251a08-1daf-42a9-a9d6-cae4660077b4', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"priority": "10", "keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'c4e0357b-edb8-44a5-abf7-d1020161df74', datetime.datetime(2025, 4, 29, 11, 6, 28, 409278), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 29, 11, 6, 28, 410269), datetime.datetime(2025, 4, 29, 11, 6, 28, 410269), 0)
2025-04-29 11:06:28,412 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:28,419 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 31251a08-1daf-42a9-a9d6-cae4660077b4
2025-04-29 11:06:28,419 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:28,420 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 11:06:28,421 - sqlalchemy.engine.Engine - INFO - [cached since 0.03773s ago] ('31251a08-1daf-42a9-a9d6-cae4660077b4',)
2025-04-29 11:06:28,423 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 11:06:28,424 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 11:06:28,426 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 11:06:28,427 - sqlalchemy.engine.Engine - INFO - [cached since 0.03821s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 29, 11, 6, 28, 426270), '31251a08-1daf-42a9-a9d6-cae4660077b4')
2025-04-29 11:06:28,432 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:28,445 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-29 11:06:28,446 - services.sync_service - INFO - 正在创建选择AMR任务: c4e0357b-edb8-44a5-abf7-d1020161df74, 站点: TK01
2025-04-29 11:06:28,579 - services.sync_service - INFO - 成功为任务选择AMR: c4e0357b-edb8-44a5-abf7-d1020161df74, AMR: None
2025-04-29 11:06:28,582 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917052836034895874 的AMR选择结果
2025-04-29 11:06:28,583 - services.sync_service - INFO - 开始等待任务块 1917052836034895874 的AMR选择结果
2025-04-29 11:06:28,583 - services.sync_service - INFO - 正在获取任务块详情: 1917052836034895874
2025-04-29 11:06:28,657 - services.sync_service - INFO - 成功获取任务块详情: 1917052836034895874 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917052836034895874', 'taskId': '1917052835401555969', 'tenantId': 1000, 'vwedTaskId': 'c4e0357b-edb8-44a5-abf7-d1020161df74', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 11:06:28', 'updateTime': None}, 'timestamp': 1745895988051}
2025-04-29 11:06:28,666 - services.sync_service - DEBUG - 任务块 1917052836034895874 AMR选择未完成，已尝试 1 次
2025-04-29 11:06:29,163 - services.sync_service - INFO - 正在获取任务块详情: 1917052836034895874
2025-04-29 11:06:29,182 - services.sync_service - INFO - 成功获取任务块详情: 1917052836034895874 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917052836034895874', 'taskId': '1917052835401555969', 'tenantId': 1000, 'vwedTaskId': 'c4e0357b-edb8-44a5-abf7-d1020161df74', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 11:06:28', 'updateTime': None}, 'timestamp': 1745895988576}
2025-04-29 11:06:29,182 - services.sync_service - DEBUG - 任务块 1917052836034895874 AMR选择未完成，已尝试 2 次
2025-04-29 11:06:29,336 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:29,340 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 11:06:29,342 - sqlalchemy.engine.Engine - INFO - [generated in 0.00267s] ('c4e0357b-edb8-44a5-abf7-d1020161df74',)
2025-04-29 11:06:29,347 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:29,679 - services.sync_service - INFO - 正在获取任务块详情: 1917052836034895874
2025-04-29 11:06:29,694 - services.sync_service - INFO - 成功获取任务块详情: 1917052836034895874 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917052836034895874', 'taskId': '1917052835401555969', 'tenantId': 1000, 'vwedTaskId': 'c4e0357b-edb8-44a5-abf7-d1020161df74', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 11:06:28', 'updateTime': None}, 'timestamp': 1745895989089}
2025-04-29 11:06:29,695 - services.sync_service - DEBUG - 任务块 1917052836034895874 AMR选择未完成，已尝试 3 次
2025-04-29 11:06:30,208 - services.sync_service - INFO - 正在获取任务块详情: 1917052836034895874
2025-04-29 11:06:30,224 - services.sync_service - INFO - 成功获取任务块详情: 1917052836034895874 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917052836034895874', 'taskId': '1917052835401555969', 'tenantId': 1000, 'vwedTaskId': 'c4e0357b-edb8-44a5-abf7-d1020161df74', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 11:06:28', 'updateTime': None}, 'timestamp': 1745895989619}
2025-04-29 11:06:30,224 - services.sync_service - DEBUG - 任务块 1917052836034895874 AMR选择未完成，已尝试 4 次
2025-04-29 11:06:30,365 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:30,368 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 11:06:30,370 - sqlalchemy.engine.Engine - INFO - [cached since 1.031s ago] ('c4e0357b-edb8-44a5-abf7-d1020161df74',)
2025-04-29 11:06:30,373 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:30,739 - services.sync_service - INFO - 正在获取任务块详情: 1917052836034895874
2025-04-29 11:06:30,796 - services.sync_service - INFO - 成功获取任务块详情: 1917052836034895874 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917052836034895874', 'taskId': '1917052835401555969', 'tenantId': 1000, 'vwedTaskId': 'c4e0357b-edb8-44a5-abf7-d1020161df74', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 11:06:28', 'updateTime': None}, 'timestamp': 1745895990191}
2025-04-29 11:06:30,796 - services.sync_service - DEBUG - 任务块 1917052836034895874 AMR选择未完成，已尝试 5 次
2025-04-29 11:06:31,298 - services.sync_service - INFO - 正在获取任务块详情: 1917052836034895874
2025-04-29 11:06:31,362 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:31,362 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 11:06:31,364 - sqlalchemy.engine.Engine - INFO - [cached since 2.025s ago] ('c4e0357b-edb8-44a5-abf7-d1020161df74',)
2025-04-29 11:06:31,365 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:31,445 - services.sync_service - INFO - 成功获取任务块详情: 1917052836034895874 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917052836034895874', 'taskId': '1917052835401555969', 'tenantId': 1000, 'vwedTaskId': 'c4e0357b-edb8-44a5-abf7-d1020161df74', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 11:06:28', 'updateTime': None}, 'timestamp': 1745895990752}
2025-04-29 11:06:31,446 - services.sync_service - DEBUG - 任务块 1917052836034895874 AMR选择未完成，已尝试 6 次
2025-04-29 11:06:31,957 - services.sync_service - INFO - 正在获取任务块详情: 1917052836034895874
2025-04-29 11:06:32,060 - services.sync_service - INFO - 成功获取任务块详情: 1917052836034895874 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917052836034895874', 'taskId': '1917052835401555969', 'tenantId': 1000, 'vwedTaskId': 'c4e0357b-edb8-44a5-abf7-d1020161df74', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 11:06:28', 'updateTime': None}, 'timestamp': 1745895991386}
2025-04-29 11:06:32,061 - services.sync_service - DEBUG - 任务块 1917052836034895874 AMR选择未完成，已尝试 7 次
2025-04-29 11:06:32,364 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:32,365 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 11:06:32,365 - sqlalchemy.engine.Engine - INFO - [cached since 3.026s ago] ('c4e0357b-edb8-44a5-abf7-d1020161df74',)
2025-04-29 11:06:32,366 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:32,564 - services.sync_service - INFO - 正在获取任务块详情: 1917052836034895874
2025-04-29 11:06:32,672 - services.sync_service - INFO - 成功获取任务块详情: 1917052836034895874 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917052836034895874', 'taskId': '1917052835401555969', 'tenantId': 1000, 'vwedTaskId': 'c4e0357b-edb8-44a5-abf7-d1020161df74', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 11:06:28', 'updateTime': None}, 'timestamp': 1745895991990}
2025-04-29 11:06:32,674 - services.sync_service - DEBUG - 任务块 1917052836034895874 AMR选择未完成，已尝试 8 次
2025-04-29 11:06:33,199 - services.sync_service - INFO - 正在获取任务块详情: 1917052836034895874
2025-04-29 11:06:33,258 - services.sync_service - INFO - 成功获取任务块详情: 1917052836034895874 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917052836034895874', 'taskId': '1917052835401555969', 'tenantId': 1000, 'vwedTaskId': 'c4e0357b-edb8-44a5-abf7-d1020161df74', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 11:06:28', 'updateTime': None}, 'timestamp': 1745895992653}
2025-04-29 11:06:33,259 - services.sync_service - DEBUG - 任务块 1917052836034895874 AMR选择未完成，已尝试 9 次
2025-04-29 11:06:33,368 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:33,369 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 11:06:33,369 - sqlalchemy.engine.Engine - INFO - [cached since 4.03s ago] ('c4e0357b-edb8-44a5-abf7-d1020161df74',)
2025-04-29 11:06:33,370 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:33,771 - services.sync_service - INFO - 正在获取任务块详情: 1917052836034895874
2025-04-29 11:06:33,798 - services.sync_service - INFO - 成功获取任务块详情: 1917052836034895874 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917052836034895874', 'taskId': '1917052835401555969', 'tenantId': 1000, 'vwedTaskId': 'c4e0357b-edb8-44a5-abf7-d1020161df74', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 11:06:28', 'updateTime': None}, 'timestamp': 1745895993193}
2025-04-29 11:06:33,800 - services.sync_service - INFO - 任务块 1917052836034895874 AMR选择未完成(amrId/appointAmrId/appointAmrGroupId均为空)，已尝试 10 次，继续等待...
2025-04-29 11:06:34,316 - services.sync_service - INFO - 正在获取任务块详情: 1917052836034895874
2025-04-29 11:06:34,353 - services.sync_service - INFO - 成功获取任务块详情: 1917052836034895874 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917052836034895874', 'taskId': '1917052835401555969', 'tenantId': 1000, 'vwedTaskId': 'c4e0357b-edb8-44a5-abf7-d1020161df74', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 11:06:28', 'updateTime': None}, 'timestamp': 1745895993747}
2025-04-29 11:06:34,355 - services.sync_service - DEBUG - 任务块 1917052836034895874 AMR选择未完成，已尝试 11 次
2025-04-29 11:06:34,355 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:34,357 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 11:06:34,357 - sqlalchemy.engine.Engine - INFO - [cached since 5.018s ago] ('c4e0357b-edb8-44a5-abf7-d1020161df74',)
2025-04-29 11:06:34,359 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:34,858 - services.sync_service - INFO - 正在获取任务块详情: 1917052836034895874
2025-04-29 11:06:34,994 - services.sync_service - INFO - 成功获取任务块详情: 1917052836034895874 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917052836034895874', 'taskId': '1917052835401555969', 'tenantId': 1000, 'vwedTaskId': 'c4e0357b-edb8-44a5-abf7-d1020161df74', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 11:06:28', 'updateTime': None}, 'timestamp': 1745895994343}
2025-04-29 11:06:34,994 - services.sync_service - DEBUG - 任务块 1917052836034895874 AMR选择未完成，已尝试 12 次
2025-04-29 11:06:35,372 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:35,373 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 11:06:35,374 - sqlalchemy.engine.Engine - INFO - [cached since 6.034s ago] ('c4e0357b-edb8-44a5-abf7-d1020161df74',)
2025-04-29 11:06:35,375 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:35,497 - services.sync_service - INFO - 正在获取任务块详情: 1917052836034895874
2025-04-29 11:06:35,672 - services.sync_service - INFO - 成功获取任务块详情: 1917052836034895874 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917052836034895874', 'taskId': '1917052835401555969', 'tenantId': 1000, 'vwedTaskId': 'c4e0357b-edb8-44a5-abf7-d1020161df74', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 11:06:28', 'updateTime': None}, 'timestamp': 1745895994951}
2025-04-29 11:06:35,675 - services.sync_service - DEBUG - 任务块 1917052836034895874 AMR选择未完成，已尝试 13 次
2025-04-29 11:06:36,197 - services.sync_service - INFO - 正在获取任务块详情: 1917052836034895874
2025-04-29 11:06:36,272 - services.sync_service - INFO - 成功获取任务块详情: 1917052836034895874 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917052836034895874', 'taskId': '1917052835401555969', 'tenantId': 1000, 'vwedTaskId': 'c4e0357b-edb8-44a5-abf7-d1020161df74', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 11:06:28', 'updateTime': None}, 'timestamp': 1745895995668}
2025-04-29 11:06:36,273 - services.sync_service - DEBUG - 任务块 1917052836034895874 AMR选择未完成，已尝试 14 次
2025-04-29 11:06:36,386 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:36,387 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 11:06:36,387 - sqlalchemy.engine.Engine - INFO - [cached since 7.047s ago] ('c4e0357b-edb8-44a5-abf7-d1020161df74',)
2025-04-29 11:06:36,387 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:36,789 - services.sync_service - INFO - 正在获取任务块详情: 1917052836034895874
2025-04-29 11:06:36,838 - services.sync_service - INFO - 成功获取任务块详情: 1917052836034895874 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917052836034895874', 'taskId': '1917052835401555969', 'tenantId': 1000, 'vwedTaskId': 'c4e0357b-edb8-44a5-abf7-d1020161df74', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 11:06:28', 'updateTime': None}, 'timestamp': 1745895996232}
2025-04-29 11:06:36,841 - services.sync_service - DEBUG - 任务块 1917052836034895874 AMR选择未完成，已尝试 15 次
2025-04-29 11:06:37,350 - services.sync_service - INFO - 正在获取任务块详情: 1917052836034895874
2025-04-29 11:06:37,369 - services.sync_service - INFO - 成功获取任务块详情: 1917052836034895874 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917052836034895874', 'taskId': '1917052835401555969', 'tenantId': 1000, 'vwedTaskId': 'c4e0357b-edb8-44a5-abf7-d1020161df74', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 11:06:28', 'updateTime': None}, 'timestamp': 1745895996763}
2025-04-29 11:06:37,369 - services.sync_service - DEBUG - 任务块 1917052836034895874 AMR选择未完成，已尝试 16 次
2025-04-29 11:06:37,398 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:37,405 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 11:06:37,405 - sqlalchemy.engine.Engine - INFO - [cached since 8.066s ago] ('c4e0357b-edb8-44a5-abf7-d1020161df74',)
2025-04-29 11:06:37,406 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:37,864 - services.sync_service - INFO - 正在获取任务块详情: 1917052836034895874
2025-04-29 11:06:37,923 - services.sync_service - INFO - 成功获取任务块详情: 1917052836034895874 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917052836034895874', 'taskId': '1917052835401555969', 'tenantId': 1000, 'vwedTaskId': 'c4e0357b-edb8-44a5-abf7-d1020161df74', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 11:06:28', 'updateTime': '2025-04-29 11:06:37'}, 'timestamp': 1745895997282}
2025-04-29 11:06:37,923 - services.sync_service - INFO - 任务块 1917052836034895874 已选择AMR: 1912328602264645634，共尝试 17 次
2025-04-29 11:06:37,924 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-29 11:06:37,924 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: []
2025-04-29 11:06:37,924 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-29 11:06:37,924 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 0 个
2025-04-29 11:06:37,925 - services.sync_service - INFO - 正在封口任务: 1917052836034895874
2025-04-29 11:06:37,964 - services.sync_service - INFO - 成功封口任务: 1917052836034895874
2025-04-29 11:06:37,967 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:37,973 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 11:06:37,976 - sqlalchemy.engine.Engine - INFO - [generated in 0.00377s] ('7168619c-af06-4283-9f78-3a59a988cac6', 1, '{"success": true, "message": "选择执行机器人成功: 1912328602264645634", "code": 200, "result": {"taskBlockId": "1917052836034895874"}, "timestamp": 1745895987891}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'c4e0357b-edb8-44a5-abf7-d1020161df74', datetime.datetime(2025, 4, 29, 11, 6, 37, 973258), datetime.datetime(2025, 4, 29, 11, 6, 37, 973258), 0)
2025-04-29 11:06:37,981 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:38,002 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:38,004 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 11:06:38,007 - sqlalchemy.engine.Engine - INFO - [cached since 9.624s ago] ('31251a08-1daf-42a9-a9d6-cae4660077b4',)
2025-04-29 11:06:38,008 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 11:06:38,008 - services.execution.block_executor - INFO - 为块 b1 存储输出: ['selectedAgvId']
2025-04-29 11:06:38,011 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 11:06:38,014 - sqlalchemy.engine.Engine - INFO - [generated in 0.00224s] ('{"selectedAgvId": "1912328602264645634"}', datetime.datetime(2025, 4, 29, 11, 6, 38, 10981), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '{"blocks": {"b1": {"selectedAgvId": "1912328602264645634"}}}', '执行成功', datetime.datetime(2025, 4, 29, 11, 6, 38, 11940), '31251a08-1daf-42a9-a9d6-cae4660077b4')
2025-04-29 11:06:38,017 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:38,028 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:38,031 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 11:06:38,036 - sqlalchemy.engine.Engine - INFO - [cached since 0.0639s ago] ('7298f678-16f5-4b03-a4f0-5d8a8ddd89ac', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {}}]}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'c4e0357b-edb8-44a5-abf7-d1020161df74', datetime.datetime(2025, 4, 29, 11, 6, 38, 31883), datetime.datetime(2025, 4, 29, 11, 6, 38, 31883), 0)
2025-04-29 11:06:38,040 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:38,051 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:38,052 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 11:06:38,052 - sqlalchemy.engine.Engine - INFO - [cached since 9.67s ago] ('d80463ed-be8a-4526-96ac-e72d0fe86b5d',)
2025-04-29 11:06:38,055 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 11:06:38,056 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 11:06:38,057 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 11:06:38,057 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] (datetime.datetime(2025, 4, 29, 11, 6, 38, 56443), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 11, 6, 38, 56443), 'd80463ed-be8a-4526-96ac-e72d0fe86b5d')
2025-04-29 11:06:38,058 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:38,065 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:38,066 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 11:06:38,066 - sqlalchemy.engine.Engine - INFO - [generated in 0.00053s] (datetime.datetime(2025, 4, 29, 11, 6, 38, 64722), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 9717, 1, datetime.datetime(2025, 4, 29, 11, 6, 38, 66763), 'c4e0357b-edb8-44a5-abf7-d1020161df74')
2025-04-29 11:06:38,067 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:38,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: c4e0357b-edb8-44a5-abf7-d1020161df74, 结果: True
2025-04-29 11:06:55,806 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 11:06:55,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 11:06:55,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 11:06:55,808 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 11:06:55,808 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 11:06:55,811 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 11:06:55,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 11:06:55,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 11:06:55,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 11:06:55,813 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:06:55,813 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 11:06:55,814 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 10, 6, 55, 806097))
2025-04-29 11:06:55,814 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 11:06:55,814 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 11:06:55,814 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 11:06:55,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 11:06:55,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 11:06:55,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 11:06:55,815 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 11:06:55,815 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 11:06:55,815 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 11:06:55,815 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:06:55,816 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 11:06:55,816 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 11:06:55,816 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 11:06:55,816 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 11:06:55,816 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 11:06:55,821 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 11:07:28,999 - app - INFO - 应用程序关闭中...
2025-04-29 11:07:29,000 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 11:07:29,000 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 11:07:29,000 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 11:07:29,000 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 11:07:29,001 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 11:07:29,001 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 11:07:29,001 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 11:07:29,003 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 11:07:29,003 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 11:07:29,004 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 11:07:29,004 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 11:07:29,004 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 11:07:29,004 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 11:07:29,004 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 11:07:29,005 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 11:07:29,005 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 11:07:29,005 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 11:07:29,005 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 11:07:29,006 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 11:07:29,006 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 11:07:29,006 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 11:07:29,006 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 11:07:29,006 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 11:07:29,006 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 11:07:29,006 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 11:07:29,006 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 11:07:29,006 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 11:07:29,006 - app - INFO - 增强版任务调度器已停止
2025-04-29 11:07:29,006 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 11:07:29,006 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 11:07:29,007 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 11:07:29,008 - data.session - INFO - 数据库连接已关闭
2025-04-29 11:07:30,196 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 11:07:30,262 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 11:07:30,264 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 11:07:30,323 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 11:07:30,376 - data.session - INFO - 正在初始化数据库...
2025-04-29 11:07:30,402 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 11:07:30,429 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 11:07:30,430 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:30,431 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 11:07:30,431 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:30,432 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 11:07:30,432 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:30,433 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:30,433 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 11:07:30,433 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:30,436 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 11:07:30,436 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:30,438 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 11:07:30,438 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:30,441 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 11:07:30,441 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:30,442 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 11:07:30,442 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:30,443 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 11:07:30,443 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:30,443 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 11:07:30,444 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:30,444 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 11:07:30,444 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:30,445 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 11:07:30,447 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:30,448 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 11:07:30,448 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:30,450 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 11:07:30,451 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:30,453 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:30,453 - data.session - INFO - 数据库表初始化完成
2025-04-29 11:07:30,810 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 11:07:30,811 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 11:07:30,811 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 11:07:30,811 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 11:07:30,811 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 11:07:30,811 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 11:07:30,811 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 11:07:30,812 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 11:07:30,812 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 11:07:30,812 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 11:07:30,812 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 11:07:30,812 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 11:07:30,813 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 11:07:30,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 11:07:30,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 11:07:30,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 11:07:30,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 11:07:30,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 11:07:30,814 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 11:07:30,815 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 11:07:30,816 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 11:07:30,817 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 11:07:30,817 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 11:07:30,817 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 11:07:30,817 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 11:07:30,817 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 11:07:30,818 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 11:07:30,818 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:30,828 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 11:07:30,828 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 11:07:30,831 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 11:07:30,831 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:30,831 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 11:07:30,832 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 11:07:30,832 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 11:07:30,832 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:30,834 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 11:07:30,834 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 11:07:30,835 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:30,836 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 11:07:30,836 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 11:07:30,836 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 11:07:30,836 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 11:07:30,837 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 11:07:30,837 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:30,839 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 11:07:30,840 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 10, 7, 30, 832742))
2025-04-29 11:07:30,840 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:48,056 - app - INFO - 应用程序关闭中...
2025-04-29 11:07:48,056 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 11:07:48,056 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 11:07:48,057 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 11:07:48,058 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 11:07:48,058 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 11:07:48,058 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 11:07:48,058 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 11:07:48,058 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 11:07:48,058 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 11:07:48,058 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 11:07:48,059 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 11:07:48,059 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 11:07:48,059 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 11:07:48,059 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 11:07:48,059 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 11:07:48,059 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 11:07:48,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 11:07:48,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 11:07:48,060 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 11:07:48,061 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 11:07:48,061 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 11:07:48,061 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 11:07:48,061 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 11:07:48,061 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 11:07:48,061 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 11:07:48,061 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 11:07:48,061 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 11:07:48,061 - app - INFO - 增强版任务调度器已停止
2025-04-29 11:07:48,062 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 11:07:48,062 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 11:07:48,062 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 11:07:48,062 - data.session - INFO - 数据库连接已关闭
2025-04-29 11:07:49,973 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 11:07:50,033 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 11:07:50,034 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 11:07:50,733 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 11:07:50,789 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 11:07:50,792 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 11:07:50,854 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 11:07:50,909 - data.session - INFO - 正在初始化数据库...
2025-04-29 11:07:50,950 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 11:07:50,952 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 11:07:50,952 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:50,953 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 11:07:50,953 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:50,954 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 11:07:50,954 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:50,954 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:50,954 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 11:07:50,954 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:50,955 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 11:07:50,955 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:50,956 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 11:07:50,957 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:50,957 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 11:07:50,958 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:50,959 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 11:07:50,959 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:50,960 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 11:07:50,960 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:50,961 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 11:07:50,961 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:50,962 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 11:07:50,962 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:50,963 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 11:07:50,964 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:50,965 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 11:07:50,965 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:50,965 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 11:07:50,966 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:07:50,966 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:50,967 - data.session - INFO - 数据库表初始化完成
2025-04-29 11:07:51,366 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 11:07:51,367 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 11:07:51,367 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 11:07:51,367 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 11:07:51,367 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 11:07:51,367 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 11:07:51,368 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 11:07:51,368 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 11:07:51,368 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 11:07:51,368 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 11:07:51,369 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 11:07:51,369 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 11:07:51,369 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 11:07:51,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 11:07:51,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 11:07:51,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 11:07:51,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 11:07:51,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 11:07:51,371 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 11:07:51,371 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 11:07:51,372 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 11:07:51,372 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 11:07:51,373 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 11:07:51,373 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 11:07:51,375 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 11:07:51,375 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 11:07:51,375 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 11:07:51,376 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:51,385 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 11:07:51,385 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 11:07:51,386 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 11:07:51,386 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:51,387 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 11:07:51,387 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 11:07:51,388 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 11:07:51,388 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:51,390 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 11:07:51,390 - sqlalchemy.engine.Engine - INFO - [generated in 0.00075s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 11:07:51,391 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:51,392 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 11:07:51,392 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 11:07:51,392 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 11:07:51,392 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 11:07:51,392 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 11:07:51,394 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:51,395 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 11:07:51,395 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 10, 7, 51, 388371))
2025-04-29 11:07:51,396 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:55,021 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 11:07:55,024 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:55,025 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 11:07:55,025 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 11:07:55,027 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:55,028 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:55,028 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 11:07:55,029 - sqlalchemy.engine.Engine - INFO - [cached since 0.003834s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 11:07:55,030 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:55,031 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 11:07:55,031 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 11:07:55,031 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 11:07:55,031 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:55,032 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 11:07:55,033 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (None, datetime.datetime(2025, 4, 29, 11, 7, 55, 32777), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 11:07:55,033 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:55,041 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:55,041 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 11:07:55,042 - sqlalchemy.engine.Engine - INFO - [cached since 0.0166s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 11:07:55,044 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 11:07:55,044 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] ('8d1da29a-b766-42c9-bfb4-27c7e465697a', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 3, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "1222", "type": "String", "label": "231", "remark": "12", "defaultValue": "333", "required": false}], "outputParams": [], " ... (290 characters truncated) ... uired": true}}, "children": {}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 11, 7, 55, 31678), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 11, 7, 55, 43419), datetime.datetime(2025, 4, 29, 11, 7, 55, 43419), 0)
2025-04-29 11:07:55,045 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:55,051 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:55,052 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 11:07:55,052 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('8d1da29a-b766-42c9-bfb4-27c7e465697a',)
2025-04-29 11:07:55,053 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:55,054 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 8d1da29a-b766-42c9-bfb4-27c7e465697a (优先级 1) 添加到队列 0
2025-04-29 11:07:55,057 - services.sync_service - INFO - 正在同步创建任务到天风系统: 8d1da29a-b766-42c9-bfb4-27c7e465697a
2025-04-29 11:07:55,057 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"8d1da29a-b766-42c9-bfb4-27c7e465697a","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 11:07:55","sceneId":"1912043207186550785","needAmr":1}
2025-04-29 11:07:55,084 - services.sync_service - INFO - 成功同步任务到系统任务: 8d1da29a-b766-42c9-bfb4-27c7e465697a
2025-04-29 11:07:55,085 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 8d1da29a-b766-42c9-bfb4-27c7e465697a
2025-04-29 11:07:55,085 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 8d1da29a-b766-42c9-bfb4-27c7e465697a
2025-04-29 11:07:55,085 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0638秒
2025-04-29 11:07:55,138 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 8d1da29a-b766-42c9-bfb4-27c7e465697a, 优先级: 1
2025-04-29 11:07:55,139 - services.execution.task_executor - DEBUG - 任务 8d1da29a-b766-42c9-bfb4-27c7e465697a 设置超时时间: 3600秒
2025-04-29 11:07:55,139 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:55,140 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 11:07:55,145 - sqlalchemy.engine.Engine - INFO - [cached since 0.09304s ago] ('8d1da29a-b766-42c9-bfb4-27c7e465697a',)
2025-04-29 11:07:55,146 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 11:07:55,149 - sqlalchemy.engine.Engine - INFO - [cached since 0.1243s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 11:07:55,153 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 11:07:55,154 - sqlalchemy.engine.Engine - INFO - [generated in 0.00080s] (datetime.datetime(2025, 4, 29, 11, 7, 55, 153668), datetime.datetime(2025, 4, 29, 11, 7, 55, 153668), '8d1da29a-b766-42c9-bfb4-27c7e465697a')
2025-04-29 11:07:55,155 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:55,165 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:55,166 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 11:07:55,166 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 11, 7, 55, 166666), '8d1da29a-b766-42c9-bfb4-27c7e465697a')
2025-04-29 11:07:55,172 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:55,187 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 11:07:55,188 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:55,192 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 11:07:55,192 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] ('f502b5ca-89ff-4fc0-bf31-2e5c5408072b', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '8d1da29a-b766-42c9-bfb4-27c7e465697a', datetime.datetime(2025, 4, 29, 11, 7, 55, 188667), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 11, 7, 55, 192666), datetime.datetime(2025, 4, 29, 11, 7, 55, 192666), 0)
2025-04-29 11:07:55,193 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:55,200 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:55,202 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 11:07:55,202 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] ('f502b5ca-89ff-4fc0-bf31-2e5c5408072b',)
2025-04-29 11:07:55,203 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 11:07:55,204 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 11:07:55,205 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 11:07:55,205 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 11, 7, 55, 204666), 'f502b5ca-89ff-4fc0-bf31-2e5c5408072b')
2025-04-29 11:07:55,206 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:55,213 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 11:07:55,213 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 11:07:55,214 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-29 11:07:55,214 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:55,215 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 11:07:55,215 - sqlalchemy.engine.Engine - INFO - [cached since 0.02372s ago] ('2956bbe2-8d3c-4e48-84b9-c9b970d404b3', 'b1', '1', '', '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"priority": "10", "keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '8d1da29a-b766-42c9-bfb4-27c7e465697a', datetime.datetime(2025, 4, 29, 11, 7, 55, 214665), <TaskBlockRecordStatus.RUNNING: 1001>, '{"priority": {"type": "Simple", "value": "10", "required": null}, "keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 29, 11, 7, 55, 215665), datetime.datetime(2025, 4, 29, 11, 7, 55, 215665), 0)
2025-04-29 11:07:55,216 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:55,225 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 2956bbe2-8d3c-4e48-84b9-c9b970d404b3
2025-04-29 11:07:55,226 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:55,226 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 11:07:55,227 - sqlalchemy.engine.Engine - INFO - [cached since 0.0253s ago] ('2956bbe2-8d3c-4e48-84b9-c9b970d404b3',)
2025-04-29 11:07:55,228 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 11:07:55,228 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 11:07:55,229 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 11:07:55,229 - sqlalchemy.engine.Engine - INFO - [cached since 0.0248s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 29, 11, 7, 55, 229882), '2956bbe2-8d3c-4e48-84b9-c9b970d404b3')
2025-04-29 11:07:55,230 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:55,238 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-29 11:07:55,238 - services.sync_service - INFO - 正在创建选择AMR任务: 8d1da29a-b766-42c9-bfb4-27c7e465697a, 站点: TK01
2025-04-29 11:07:55,299 - services.sync_service - INFO - 成功为任务选择AMR: 8d1da29a-b766-42c9-bfb4-27c7e465697a, AMR: None
2025-04-29 11:07:55,299 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917053200113065986 的AMR选择结果
2025-04-29 11:07:55,300 - services.sync_service - INFO - 开始等待任务块 1917053200113065986 的AMR选择结果
2025-04-29 11:07:55,300 - services.sync_service - INFO - 正在获取任务块详情: 1917053200113065986
2025-04-29 11:07:55,342 - services.sync_service - INFO - 成功获取任务块详情: 1917053200113065986 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917053200113065986', 'taskId': '1917053199202902018', 'tenantId': 1000, 'vwedTaskId': '8d1da29a-b766-42c9-bfb4-27c7e465697a', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 11:07:55', 'updateTime': None}, 'timestamp': 1745896074736}
2025-04-29 11:07:55,343 - services.sync_service - DEBUG - 任务块 1917053200113065986 AMR选择未完成，已尝试 1 次
2025-04-29 11:07:55,855 - services.sync_service - INFO - 正在获取任务块详情: 1917053200113065986
2025-04-29 11:07:56,028 - services.sync_service - INFO - 成功获取任务块详情: 1917053200113065986 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917053200113065986', 'taskId': '1917053199202902018', 'tenantId': 1000, 'vwedTaskId': '8d1da29a-b766-42c9-bfb4-27c7e465697a', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 11:07:55', 'updateTime': None}, 'timestamp': 1745896075346}
2025-04-29 11:07:56,029 - services.sync_service - DEBUG - 任务块 1917053200113065986 AMR选择未完成，已尝试 2 次
2025-04-29 11:07:56,153 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:56,154 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 11:07:56,154 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] ('8d1da29a-b766-42c9-bfb4-27c7e465697a',)
2025-04-29 11:07:56,156 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:56,542 - services.sync_service - INFO - 正在获取任务块详情: 1917053200113065986
2025-04-29 11:07:56,603 - services.sync_service - INFO - 成功获取任务块详情: 1917053200113065986 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917053200113065986', 'taskId': '1917053199202902018', 'tenantId': 1000, 'vwedTaskId': '8d1da29a-b766-42c9-bfb4-27c7e465697a', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 11:07:55', 'updateTime': None}, 'timestamp': 1745896075997}
2025-04-29 11:07:56,604 - services.sync_service - DEBUG - 任务块 1917053200113065986 AMR选择未完成，已尝试 3 次
2025-04-29 11:07:57,116 - services.sync_service - INFO - 正在获取任务块详情: 1917053200113065986
2025-04-29 11:07:57,149 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:57,150 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 11:07:57,150 - sqlalchemy.engine.Engine - INFO - [cached since 0.9961s ago] ('8d1da29a-b766-42c9-bfb4-27c7e465697a',)
2025-04-29 11:07:57,151 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:57,156 - services.sync_service - INFO - 成功获取任务块详情: 1917053200113065986 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917053200113065986', 'taskId': '1917053199202902018', 'tenantId': 1000, 'vwedTaskId': '8d1da29a-b766-42c9-bfb4-27c7e465697a', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 11:07:55', 'updateTime': None}, 'timestamp': 1745896076539}
2025-04-29 11:07:57,156 - services.sync_service - DEBUG - 任务块 1917053200113065986 AMR选择未完成，已尝试 4 次
2025-04-29 11:07:57,661 - services.sync_service - INFO - 正在获取任务块详情: 1917053200113065986
2025-04-29 11:07:57,724 - services.sync_service - INFO - 成功获取任务块详情: 1917053200113065986 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917053200113065986', 'taskId': '1917053199202902018', 'tenantId': 1000, 'vwedTaskId': '8d1da29a-b766-42c9-bfb4-27c7e465697a', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 11:07:55', 'updateTime': None}, 'timestamp': 1745896077077}
2025-04-29 11:07:57,724 - services.sync_service - DEBUG - 任务块 1917053200113065986 AMR选择未完成，已尝试 5 次
2025-04-29 11:07:58,162 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:58,165 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 11:07:58,168 - sqlalchemy.engine.Engine - INFO - [cached since 2.013s ago] ('8d1da29a-b766-42c9-bfb4-27c7e465697a',)
2025-04-29 11:07:58,172 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:58,223 - services.sync_service - INFO - 正在获取任务块详情: 1917053200113065986
2025-04-29 11:07:58,338 - services.sync_service - INFO - 成功获取任务块详情: 1917053200113065986 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917053200113065986', 'taskId': '1917053199202902018', 'tenantId': 1000, 'vwedTaskId': '8d1da29a-b766-42c9-bfb4-27c7e465697a', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 10, 'closure': 0, 'createTime': '2025-04-29 11:07:55', 'updateTime': '2025-04-29 11:07:57'}, 'timestamp': 1745896077733}
2025-04-29 11:07:58,338 - services.sync_service - INFO - 任务块 1917053200113065986 已选择AMR: 1912328602264645634，共尝试 6 次
2025-04-29 11:07:58,339 - services.execution.handlers.robot_scheduling - INFO - 准备更新任务 8d1da29a-b766-42c9-bfb4-27c7e465697a 的机器人ID: 1912328602264645634
2025-04-29 11:07:58,340 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:58,341 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.agv_id 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 11:07:58,343 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] ('8d1da29a-b766-42c9-bfb4-27c7e465697a',)
2025-04-29 11:07:58,345 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET agv_id=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 11:07:58,345 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] ('1912328602264645634', datetime.datetime(2025, 4, 29, 11, 7, 58, 345790), '8d1da29a-b766-42c9-bfb4-27c7e465697a')
2025-04-29 11:07:58,347 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:58,356 - services.execution.handlers.robot_scheduling - INFO - 成功更新任务记录 8d1da29a-b766-42c9-bfb4-27c7e465697a 的agv_id字段: 1912328602264645634
2025-04-29 11:07:58,356 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-29 11:07:58,356 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: []
2025-04-29 11:07:58,357 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-29 11:07:58,357 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 0 个
2025-04-29 11:07:58,357 - services.sync_service - INFO - 正在封口任务: 1917053200113065986
2025-04-29 11:07:58,472 - services.sync_service - INFO - 成功封口任务: 1917053200113065986
2025-04-29 11:07:58,476 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:58,481 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 11:07:58,484 - sqlalchemy.engine.Engine - INFO - [generated in 0.00287s] ('28df35c4-63d4-4f6d-9033-abc3d78a4996', 1, '{"success": true, "message": "选择执行机器人成功: 1912328602264645634", "code": 200, "result": {"taskBlockId": "1917053200113065986"}, "timestamp": 1745896074693}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '8d1da29a-b766-42c9-bfb4-27c7e465697a', datetime.datetime(2025, 4, 29, 11, 7, 58, 481491), datetime.datetime(2025, 4, 29, 11, 7, 58, 481491), 0)
2025-04-29 11:07:58,487 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:58,497 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:58,502 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 11:07:58,504 - sqlalchemy.engine.Engine - INFO - [cached since 3.302s ago] ('2956bbe2-8d3c-4e48-84b9-c9b970d404b3',)
2025-04-29 11:07:58,506 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 11:07:58,509 - services.execution.block_executor - INFO - 为块 b1 存储输出: ['selectedAgvId']
2025-04-29 11:07:58,512 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 11:07:58,516 - sqlalchemy.engine.Engine - INFO - [generated in 0.00408s] ('{"selectedAgvId": "1912328602264645634"}', datetime.datetime(2025, 4, 29, 11, 7, 58, 511689), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '{"blocks": {"b1": {"selectedAgvId": "1912328602264645634"}}}', '执行成功', datetime.datetime(2025, 4, 29, 11, 7, 58, 511689), '2956bbe2-8d3c-4e48-84b9-c9b970d404b3')
2025-04-29 11:07:58,519 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:58,534 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:58,535 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 11:07:58,538 - sqlalchemy.engine.Engine - INFO - [cached since 0.05732s ago] ('3c83dcff-14a6-457c-84f7-3e06e93f94ee', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, "output": {}}]}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '8d1da29a-b766-42c9-bfb4-27c7e465697a', datetime.datetime(2025, 4, 29, 11, 7, 58, 535369), datetime.datetime(2025, 4, 29, 11, 7, 58, 535369), 0)
2025-04-29 11:07:58,539 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:58,548 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:58,551 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 11:07:58,554 - sqlalchemy.engine.Engine - INFO - [cached since 3.352s ago] ('f502b5ca-89ff-4fc0-bf31-2e5c5408072b',)
2025-04-29 11:07:58,556 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 11:07:58,556 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 11:07:58,558 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 11:07:58,562 - sqlalchemy.engine.Engine - INFO - [generated in 0.00383s] (datetime.datetime(2025, 4, 29, 11, 7, 58, 558402), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 11, 7, 58, 558402), 'f502b5ca-89ff-4fc0-bf31-2e5c5408072b')
2025-04-29 11:07:58,567 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:58,576 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:07:58,578 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 11:07:58,581 - sqlalchemy.engine.Engine - INFO - [generated in 0.00349s] (datetime.datetime(2025, 4, 29, 11, 7, 58, 576427), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 3411, 1, datetime.datetime(2025, 4, 29, 11, 7, 58, 578625), '8d1da29a-b766-42c9-bfb4-27c7e465697a')
2025-04-29 11:07:58,583 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:07:58,589 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 8d1da29a-b766-42c9-bfb4-27c7e465697a, 结果: True
2025-04-29 11:08:51,412 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:08:51,412 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 11:08:51,412 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 10, 8, 51, 411160))
2025-04-29 11:08:51,414 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:09:06,348 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 11:09:06,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 11:09:06,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 11:09:06,352 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 11:09:06,355 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 11:09:06,356 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 11:09:06,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 11:09:06,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 11:09:06,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 11:09:06,363 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 11:09:06,364 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 11:09:06,367 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 11:09:06,367 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 11:09:06,368 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 11:09:06,368 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 11:09:06,369 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 11:09:06,369 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 11:09:06,370 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 11:09:06,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 11:09:06,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 11:09:06,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 11:09:06,372 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 11:09:06,372 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 11:09:06,372 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 11:09:06,373 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 11:09:06,373 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 11:09:06,374 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 11:09:06,374 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 11:09:06,374 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 11:09:06,382 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 11:09:51,416 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:09:51,419 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 11:09:51,423 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 10, 9, 51, 415284))
2025-04-29 11:09:51,426 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:10:06,426 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 11:10:06,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 11:10:06,428 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 11:10:06,428 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 11:10:06,428 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 11:10:06,428 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 11:10:06,429 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 11:10:06,430 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 11:10:06,430 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 11:10:06,431 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 11:10:06,432 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 11:10:06,432 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 11:10:06,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 11:10:06,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 11:10:06,434 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 11:10:06,434 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 11:10:06,434 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 11:10:06,435 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 11:10:06,435 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 11:10:06,436 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 11:10:06,436 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 11:10:06,437 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 11:10:06,437 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 11:10:06,438 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 11:10:06,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 11:10:06,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 11:10:06,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 11:10:06,440 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 11:10:06,440 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 11:10:06,446 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 11:10:51,425 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:10:51,426 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 11:10:51,429 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 10, 10, 51, 424364))
2025-04-29 11:10:51,434 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:10:51,671 - app - INFO - 应用程序关闭中...
2025-04-29 11:10:51,671 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 11:10:51,671 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 11:10:51,672 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 11:10:51,672 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 11:10:51,672 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 11:10:51,672 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 11:10:51,673 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 11:10:51,673 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 11:10:51,673 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 11:10:51,674 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 11:10:51,674 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 11:10:51,674 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 11:10:51,675 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 11:10:51,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 11:10:51,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 11:10:51,675 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 11:10:51,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 11:10:51,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 11:10:51,675 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 11:10:51,676 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 11:10:51,676 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 11:10:51,676 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 11:10:51,676 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 11:10:51,676 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 11:10:51,676 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 11:10:51,677 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 11:10:51,677 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 11:10:51,677 - app - INFO - 增强版任务调度器已停止
2025-04-29 11:10:51,677 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 11:10:51,678 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 11:10:51,678 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 11:10:51,678 - data.session - INFO - 数据库连接已关闭
2025-04-29 11:10:52,979 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 11:10:53,043 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 11:10:53,044 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 11:10:53,108 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 11:10:53,158 - data.session - INFO - 正在初始化数据库...
2025-04-29 11:10:53,200 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 11:10:53,220 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 11:10:53,222 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:10:53,224 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 11:10:53,225 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:10:53,227 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 11:10:53,227 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:10:53,229 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:10:53,230 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 11:10:53,230 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:10:53,232 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 11:10:53,232 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:10:53,237 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 11:10:53,237 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:10:53,238 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 11:10:53,239 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:10:53,240 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 11:10:53,240 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:10:53,243 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 11:10:53,246 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:10:53,251 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 11:10:53,254 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:10:53,255 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 11:10:53,260 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:10:53,264 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 11:10:53,265 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:10:53,266 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 11:10:53,268 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:10:53,269 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 11:10:53,271 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 11:10:53,273 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:10:53,277 - data.session - INFO - 数据库表初始化完成
2025-04-29 11:10:53,725 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 11:10:53,727 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 11:10:53,729 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 11:10:53,731 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 11:10:53,733 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 11:10:53,733 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 11:10:53,733 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 11:10:53,734 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 11:10:53,734 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 11:10:53,734 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 11:10:53,734 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 11:10:53,734 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 11:10:53,734 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 11:10:53,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 11:10:53,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 11:10:53,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 11:10:53,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 11:10:53,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 11:10:53,740 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 11:10:53,740 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 11:10:53,763 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 11:10:53,763 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 11:10:53,767 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 11:10:53,770 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 11:10:53,771 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 11:10:53,772 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 11:10:53,772 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 11:10:53,773 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:10:53,787 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 11:10:53,789 - sqlalchemy.engine.Engine - INFO - [generated in 0.00242s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 11:10:53,791 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 11:10:53,791 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:10:53,792 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 11:10:53,792 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 11:10:53,793 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 11:10:53,793 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:10:53,795 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 11:10:53,796 - sqlalchemy.engine.Engine - INFO - [generated in 0.00123s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 11:10:53,797 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:10:53,797 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 11:10:53,798 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 11:10:53,798 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 11:10:53,798 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 11:10:53,798 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 11:10:53,799 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:10:53,800 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 11:10:53,800 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 10, 10, 53, 793127))
2025-04-29 11:10:53,802 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:11:53,795 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 11:11:53,796 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 11:11:53,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 11:11:53,797 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 11:11:53,798 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 11:11:53,798 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 11:11:53,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 11:11:53,800 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 11:11:53,800 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 11:11:53,800 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 11:11:53,801 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 11:11:53,801 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 11:11:53,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 11:11:53,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 11:11:53,803 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 11:11:53,803 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 11:11:53,805 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 11:11:53,806 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 11:11:53,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 11:11:53,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 11:11:53,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 11:11:53,811 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:11:53,811 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 11:11:53,812 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 10, 11, 53, 802739))
2025-04-29 11:11:53,812 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 11:11:53,812 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 11:11:53,813 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 11:11:53,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 11:11:53,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 11:11:53,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 11:11:53,814 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 11:11:53,814 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 11:11:53,819 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:11:53,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 11:12:53,827 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 11:12:53,827 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 11:12:53,828 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 11:12:53,828 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 11:12:53,828 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 11:12:53,828 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 11:12:53,828 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 11:12:53,829 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 11:12:53,829 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 11:12:53,829 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:12:53,829 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 11:12:53,830 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 10, 12, 53, 826874))
2025-04-29 11:12:53,830 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 11:12:53,831 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 11:12:53,831 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 11:12:53,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 11:12:53,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 11:12:53,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 11:12:53,832 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 11:12:53,832 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 11:12:53,832 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 11:12:53,832 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:12:53,833 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 11:12:53,833 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 11:12:53,833 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 11:12:53,833 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 11:12:53,834 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 11:12:53,834 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 11:12:53,834 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 11:12:53,834 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 11:12:53,835 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 11:12:53,835 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 11:12:53,835 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 11:12:53,840 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 11:13:53,846 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:13:53,849 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 11:13:53,850 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 10, 13, 53, 845172))
2025-04-29 11:13:53,853 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 11:13:53,858 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 11:13:53,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 11:13:53,861 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 11:13:53,862 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 11:13:53,864 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 11:13:53,868 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:13:53,871 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 11:13:53,872 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 11:13:53,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 11:13:53,875 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 11:13:53,877 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 11:13:53,878 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 11:13:53,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 11:13:53,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 11:13:53,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 11:13:53,880 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 11:13:53,880 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 11:13:53,880 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 11:13:53,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 11:13:53,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 11:13:53,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 11:13:53,882 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 11:13:53,882 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 11:13:53,884 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 11:13:53,887 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 11:13:53,888 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 11:13:53,890 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 11:13:53,892 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 11:13:53,893 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 11:13:53,900 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 11:14:53,893 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:14:53,897 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 11:14:53,898 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 10, 14, 53, 893967))
2025-04-29 11:14:53,901 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:14:53,940 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 11:14:53,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 11:14:53,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 11:14:53,945 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 11:14:53,947 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 11:14:53,947 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 11:14:53,947 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 11:14:53,949 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 11:14:53,951 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 11:14:53,952 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 11:14:53,953 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 11:14:53,954 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 11:14:53,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 11:14:53,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 11:14:53,956 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 11:14:53,956 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 11:14:53,957 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 11:14:53,959 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 11:14:53,959 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 11:14:53,959 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 11:14:53,959 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 11:14:53,959 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 11:14:53,959 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 11:14:53,960 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 11:14:53,960 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 11:14:53,960 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 11:14:53,960 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 11:14:53,960 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 11:14:53,961 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 11:14:53,965 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 11:15:53,913 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:15:53,914 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 11:15:53,915 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 10, 15, 53, 912426))
2025-04-29 11:15:53,918 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:15:54,006 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 11:15:54,009 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 11:15:54,010 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 11:15:54,010 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 11:15:54,011 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 11:15:54,011 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 11:15:54,012 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 11:15:54,012 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 11:15:54,013 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 11:15:54,013 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 11:15:54,014 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 11:15:54,014 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 11:15:54,014 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 11:15:54,015 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 11:15:54,015 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 11:15:54,016 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 11:15:54,016 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 11:15:54,017 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 11:15:54,018 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 11:15:54,018 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 11:15:54,019 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 11:15:54,019 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 11:15:54,020 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 11:15:54,020 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 11:15:54,021 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 11:15:54,022 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 11:15:54,022 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 11:15:54,022 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 11:15:54,023 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 11:15:54,030 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 11:16:53,911 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:16:53,917 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 11:16:53,920 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 10, 16, 53, 910200))
2025-04-29 11:16:53,921 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:16:54,049 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 11:16:54,054 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 11:16:54,055 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 11:16:54,057 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 11:16:54,059 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 11:16:54,060 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 11:16:54,061 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 11:16:54,061 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 11:16:54,062 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 11:16:54,064 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 11:16:54,064 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 11:16:54,064 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 11:16:54,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 11:16:54,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 11:16:54,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 11:16:54,067 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 11:16:54,067 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 11:16:54,067 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 11:16:54,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 11:16:54,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 11:16:54,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 11:16:54,068 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 11:16:54,069 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 11:16:54,069 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 11:16:54,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 11:16:54,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 11:16:54,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 11:16:54,070 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 11:16:54,070 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 11:16:54,075 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 11:17:53,933 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:17:53,937 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 11:17:53,937 - sqlalchemy.engine.Engine - INFO - [cached since 420.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 10, 17, 53, 932905))
2025-04-29 11:17:53,939 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:17:54,090 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 11:17:54,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 11:17:54,096 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 11:17:54,098 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 11:17:54,099 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 11:17:54,100 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 11:17:54,104 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 11:17:54,106 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 11:17:54,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 11:17:54,108 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 11:17:54,110 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 11:17:54,111 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 11:17:54,114 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 11:17:54,116 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 11:17:54,117 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 11:17:54,118 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 11:17:54,118 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 11:17:54,119 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 11:17:54,119 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 11:17:54,121 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 11:17:54,121 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 11:17:54,124 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 11:17:54,126 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 11:17:54,128 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 11:17:54,132 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 11:17:54,133 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 11:17:54,134 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 11:17:54,135 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 11:17:54,136 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 11:17:54,140 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 11:18:53,950 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:18:53,951 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 11:18:53,952 - sqlalchemy.engine.Engine - INFO - [cached since 480.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 10, 18, 53, 949693))
2025-04-29 11:18:53,955 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:18:54,183 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 11:18:54,184 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 11:18:54,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 11:18:54,186 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 11:18:54,187 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 11:18:54,188 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 11:18:54,191 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 11:18:54,192 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 11:18:54,194 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 11:18:54,195 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 11:18:54,198 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 11:18:54,199 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 11:18:54,200 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 11:18:54,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 11:18:54,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 11:18:54,203 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 11:18:54,207 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 11:18:54,208 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 11:18:54,211 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 11:18:54,213 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 11:18:54,213 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 11:18:54,214 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 11:18:54,215 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 11:18:54,215 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 11:18:54,218 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 11:18:54,219 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 11:18:54,221 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 11:18:54,221 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 11:18:54,223 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 11:18:54,228 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 11:19:53,964 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:19:53,965 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 11:19:53,967 - sqlalchemy.engine.Engine - INFO - [cached since 540.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 10, 19, 53, 963182))
2025-04-29 11:19:53,968 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:19:54,255 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 11:19:54,258 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 11:19:54,259 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 11:19:54,261 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 11:19:54,261 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 11:19:54,263 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 11:19:54,267 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 11:19:54,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 11:19:54,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 11:19:54,269 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 11:19:54,270 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 11:19:54,271 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 11:19:54,273 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 11:19:54,274 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 11:19:54,275 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 11:19:54,275 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 11:19:54,275 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 11:19:54,276 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 11:19:54,277 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 11:19:54,278 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 11:19:54,278 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 11:19:54,279 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 11:19:54,279 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 11:19:54,281 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 11:19:54,282 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 11:19:54,282 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 11:19:54,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 11:19:54,284 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 11:19:54,285 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 11:19:54,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 11:20:53,944 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 11:20:53,948 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 11:20:53,949 - sqlalchemy.engine.Engine - INFO - [cached since 600.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 10, 20, 53, 943575))
2025-04-29 11:20:53,951 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 11:20:54,334 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 11:20:54,335 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 11:20:54,337 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 11:20:54,338 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 11:20:54,339 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 11:20:54,340 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 11:20:54,342 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 11:20:54,343 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 11:20:54,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 11:20:54,345 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 11:20:54,347 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 11:20:54,349 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 11:20:54,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 11:20:54,353 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 11:20:54,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 11:20:54,356 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 11:20:54,358 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 11:20:54,360 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 11:20:54,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 11:20:54,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 11:20:54,367 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 11:20:54,368 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 11:20:54,369 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 11:20:54,371 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 11:20:54,375 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 11:20:54,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 11:20:54,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 11:20:54,380 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 11:20:54,381 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 11:20:54,386 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 11:21:07,348 - app - INFO - 应用程序关闭中...
2025-04-29 11:21:07,348 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 11:21:07,348 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 11:21:07,348 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 11:21:07,348 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 11:21:07,348 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 11:21:07,348 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 11:21:07,348 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 11:21:07,348 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 11:21:07,348 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 11:21:07,348 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 11:21:07,348 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 11:21:07,348 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 11:21:07,348 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 11:21:07,348 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 11:21:07,348 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 11:21:07,348 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 11:21:07,348 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 11:21:07,348 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 11:21:07,348 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 11:21:07,348 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 11:21:07,348 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 11:21:07,348 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 11:21:07,348 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 11:21:07,348 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 11:21:07,348 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 11:21:07,348 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 11:21:07,348 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 11:21:07,348 - app - INFO - 增强版任务调度器已停止
2025-04-29 11:21:07,348 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 11:21:07,348 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 11:21:07,348 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 11:21:07,348 - data.session - INFO - 数据库连接已关闭
2025-04-29 15:36:45,042 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 15:36:45,107 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:36:45,111 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 15:36:45,802 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 15:36:45,858 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:36:45,859 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 15:36:45,916 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 15:36:45,974 - data.session - INFO - 正在初始化数据库...
2025-04-29 15:36:46,011 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 15:36:46,033 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 15:36:46,034 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:36:46,035 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 15:36:46,035 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:36:46,035 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 15:36:46,036 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:36:46,037 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:36:46,037 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 15:36:46,038 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:36:46,040 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 15:36:46,040 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:36:46,042 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 15:36:46,042 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:36:46,043 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 15:36:46,044 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:36:46,045 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 15:36:46,045 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:36:46,046 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 15:36:46,046 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:36:46,047 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 15:36:46,048 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:36:46,049 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 15:36:46,050 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:36:46,052 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 15:36:46,052 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:36:46,053 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 15:36:46,053 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:36:46,054 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 15:36:46,055 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:36:46,056 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:36:46,056 - data.session - INFO - 数据库表初始化完成
2025-04-29 15:36:46,455 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 15:36:46,456 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 15:36:46,456 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 15:36:46,456 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 15:36:46,457 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 15:36:46,457 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 15:36:46,457 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 15:36:46,457 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 15:36:46,457 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 15:36:46,458 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 15:36:46,458 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:36:46,458 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 15:36:46,458 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 15:36:46,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:36:46,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:36:46,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:36:46,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:36:46,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:36:46,460 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 15:36:46,460 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 15:36:46,461 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 15:36:46,463 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 15:36:46,463 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 15:36:46,464 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 15:36:46,464 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 15:36:46,464 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 15:36:46,464 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 15:36:46,465 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:36:46,474 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 15:36:46,474 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 15:36:46,475 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 15:36:46,475 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:36:46,476 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 15:36:46,476 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 15:36:46,476 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 15:36:46,477 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:36:46,482 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 15:36:46,482 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 15:36:46,483 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:36:46,483 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 15:36:46,484 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 15:36:46,484 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 15:36:46,484 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 15:36:46,484 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 15:36:46,484 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:36:46,485 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:36:46,487 - sqlalchemy.engine.Engine - INFO - [generated in 0.00144s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 36, 46, 476374))
2025-04-29 15:36:46,488 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:36:55,450 - app - INFO - 请求开始: POST /api/vwed-task-edit/save 来自 127.0.0.1
2025-04-29 15:36:55,450 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:36:55,466 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:36:55,466 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:36:55,467 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:36:55,467 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:36:55,467 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:36:55,467 - sqlalchemy.engine.Engine - INFO - [cached since 0.002706s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:36:55,471 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET version=%s, detail=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 15:36:55,471 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (4, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (638 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', datetime.datetime(2025, 4, 29, 15, 36, 55, 471026), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 15:36:55,471 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:36:55,471 - app - INFO - 请求完成: POST /api/vwed-task-edit/save 状态码: 200 耗时: 0.0205秒
2025-04-29 15:37:03,152 - app - INFO - 请求开始: POST /api/vwed-task-edit/save 来自 127.0.0.1
2025-04-29 15:37:03,152 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:03,152 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:37:03,152 - sqlalchemy.engine.Engine - INFO - [cached since 7.69s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:37:03,152 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:03,152 - app - INFO - 请求完成: POST /api/vwed-task-edit/save 状态码: 200 耗时: 0.0000秒
2025-04-29 15:37:11,429 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 15:37:11,429 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:11,429 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:37:11,429 - sqlalchemy.engine.Engine - INFO - [cached since 15.97s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:37:11,429 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:11,429 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:11,429 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:37:11,429 - sqlalchemy.engine.Engine - INFO - [cached since 15.97s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:37:11,429 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:11,429 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 15:37:11,429 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 15:37:11,429 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 15:37:11,429 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:11,429 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 15:37:11,429 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (None, datetime.datetime(2025, 4, 29, 15, 37, 11, 429439), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 15:37:11,429 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:11,442 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:11,442 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:37:11,442 - sqlalchemy.engine.Engine - INFO - [cached since 15.98s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:37:11,442 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:37:11,442 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] ('91dbfba0-820a-478e-b119-6f9b5827ebf7', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 4, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (638 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 15, 37, 11, 429439), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 15, 37, 11, 442210), datetime.datetime(2025, 4, 29, 15, 37, 11, 442210), 0)
2025-04-29 15:37:11,442 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:11,460 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:11,460 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:37:11,460 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] ('91dbfba0-820a-478e-b119-6f9b5827ebf7',)
2025-04-29 15:37:11,460 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:11,460 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 91dbfba0-820a-478e-b119-6f9b5827ebf7 (优先级 1) 添加到队列 0
2025-04-29 15:37:11,460 - services.sync_service - INFO - 正在同步创建任务到天风系统: 91dbfba0-820a-478e-b119-6f9b5827ebf7
2025-04-29 15:37:11,460 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"91dbfba0-820a-478e-b119-6f9b5827ebf7","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 15:37:11","sceneId":"1912043207186550785","needAmr":1}
2025-04-29 15:37:11,525 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: 91dbfba0-820a-478e-b119-6f9b5827ebf7, 优先级: 1
2025-04-29 15:37:11,525 - services.execution.task_executor - DEBUG - 任务 91dbfba0-820a-478e-b119-6f9b5827ebf7 设置超时时间: 3600秒
2025-04-29 15:37:11,525 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:11,525 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:37:11,525 - sqlalchemy.engine.Engine - INFO - [cached since 0.06272s ago] ('91dbfba0-820a-478e-b119-6f9b5827ebf7',)
2025-04-29 15:37:11,525 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:37:11,525 - sqlalchemy.engine.Engine - INFO - [cached since 16.06s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:37:11,525 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 15:37:11,525 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] (datetime.datetime(2025, 4, 29, 15, 37, 11, 525821), datetime.datetime(2025, 4, 29, 15, 37, 11, 525821), '91dbfba0-820a-478e-b119-6f9b5827ebf7')
2025-04-29 15:37:11,525 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:11,525 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:11,525 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 15:37:11,525 - sqlalchemy.engine.Engine - INFO - [generated in 0.00024s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 37, 11, 525821), '91dbfba0-820a-478e-b119-6f9b5827ebf7')
2025-04-29 15:37:11,525 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:11,543 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 15:37:11,543 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:11,543 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:37:11,543 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('e3f0f16b-5dee-4923-9d5e-9b12de947c2f', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '91dbfba0-820a-478e-b119-6f9b5827ebf7', datetime.datetime(2025, 4, 29, 15, 37, 11, 543924), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 15, 37, 11, 543924), datetime.datetime(2025, 4, 29, 15, 37, 11, 543924), 0)
2025-04-29 15:37:11,543 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:11,559 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:11,560 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:37:11,561 - sqlalchemy.engine.Engine - INFO - [generated in 0.00105s] ('e3f0f16b-5dee-4923-9d5e-9b12de947c2f',)
2025-04-29 15:37:11,561 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 15:37:11,561 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 15:37:11,561 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:37:11,561 - sqlalchemy.engine.Engine - INFO - [generated in 0.00088s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 15, 37, 11, 561255), 'e3f0f16b-5dee-4923-9d5e-9b12de947c2f')
2025-04-29 15:37:11,561 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:11,561 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 15:37:11,561 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 15:37:11,561 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b2, ID: 2, 类型: CSelectAgvBp
2025-04-29 15:37:11,575 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:11,576 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:37:11,576 - sqlalchemy.engine.Engine - INFO - [cached since 0.03105s ago] ('b3f8f9cb-31c9-4d5d-aeda-47545f5998d8', 'b2', '2', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}, "vehicle": {"type": "Simple", "value": "", "required": null}, "priority": {"type": "Simple", "value": "1", "required": null}, "tag": {"type": "Simple", "value": "", "required": null}}', '{"keyRoute": "TK01", "vehicle": "", "priority": "1", "tag": ""}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '91dbfba0-820a-478e-b119-6f9b5827ebf7', datetime.datetime(2025, 4, 29, 15, 37, 11, 561255), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}, "vehicle": {"type": "Simple", "value": "", "required": null}, "priority": {"type": "Simple", "value": "1", "required": null}, "tag": {"type": "Simple", "value": "", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 29, 15, 37, 11, 576193), datetime.datetime(2025, 4, 29, 15, 37, 11, 576193), 0)
2025-04-29 15:37:11,576 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:11,576 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: b3f8f9cb-31c9-4d5d-aeda-47545f5998d8
2025-04-29 15:37:11,576 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:11,576 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:37:11,576 - sqlalchemy.engine.Engine - INFO - [cached since 0.02701s ago] ('b3f8f9cb-31c9-4d5d-aeda-47545f5998d8',)
2025-04-29 15:37:11,576 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 15:37:11,576 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 15:37:11,576 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:37:11,576 - sqlalchemy.engine.Engine - INFO - [cached since 0.02364s ago] ('null', '执行中', '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 15, 37, 11, 576193), 'b3f8f9cb-31c9-4d5d-aeda-47545f5998d8')
2025-04-29 15:37:11,576 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:11,594 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 15:37:11,594 - services.sync_service - INFO - 正在创建选择AMR任务: 91dbfba0-820a-478e-b119-6f9b5827ebf7, 站点: TK01
2025-04-29 15:37:11,644 - services.sync_service - INFO - 成功同步任务到系统任务: 91dbfba0-820a-478e-b119-6f9b5827ebf7
2025-04-29 15:37:11,644 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 91dbfba0-820a-478e-b119-6f9b5827ebf7
2025-04-29 15:37:11,644 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 91dbfba0-820a-478e-b119-6f9b5827ebf7
2025-04-29 15:37:11,644 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.2153秒
2025-04-29 15:37:11,660 - services.sync_service - INFO - 成功为任务选择AMR: 91dbfba0-820a-478e-b119-6f9b5827ebf7, AMR: None
2025-04-29 15:37:11,662 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917120965888958466 的AMR选择结果
2025-04-29 15:37:11,662 - services.sync_service - INFO - 开始等待任务块 1917120965888958466 的AMR选择结果
2025-04-29 15:37:11,662 - services.sync_service - INFO - 正在获取任务块详情: 1917120965888958466
2025-04-29 15:37:11,679 - services.sync_service - INFO - 成功获取任务块详情: 1917120965888958466 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917120965888958466', 'taskId': '1917120965737963522', 'tenantId': 1000, 'vwedTaskId': '91dbfba0-820a-478e-b119-6f9b5827ebf7', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:37:11', 'updateTime': None}, 'timestamp': 1745912231336}
2025-04-29 15:37:11,679 - services.sync_service - DEBUG - 任务块 1917120965888958466 AMR选择未完成，已尝试 1 次
2025-04-29 15:37:12,189 - services.sync_service - INFO - 正在获取任务块详情: 1917120965888958466
2025-04-29 15:37:12,252 - services.sync_service - INFO - 成功获取任务块详情: 1917120965888958466 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917120965888958466', 'taskId': '1917120965737963522', 'tenantId': 1000, 'vwedTaskId': '91dbfba0-820a-478e-b119-6f9b5827ebf7', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:37:11', 'updateTime': None}, 'timestamp': 1745912231907}
2025-04-29 15:37:12,252 - services.sync_service - DEBUG - 任务块 1917120965888958466 AMR选择未完成，已尝试 2 次
2025-04-29 15:37:12,525 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:12,525 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:37:12,525 - sqlalchemy.engine.Engine - INFO - [generated in 0.00312s] ('91dbfba0-820a-478e-b119-6f9b5827ebf7',)
2025-04-29 15:37:12,525 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:12,764 - services.sync_service - INFO - 正在获取任务块详情: 1917120965888958466
2025-04-29 15:37:12,796 - services.sync_service - INFO - 成功获取任务块详情: 1917120965888958466 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917120965888958466', 'taskId': '1917120965737963522', 'tenantId': 1000, 'vwedTaskId': '91dbfba0-820a-478e-b119-6f9b5827ebf7', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:37:11', 'updateTime': None}, 'timestamp': 1745912232458}
2025-04-29 15:37:12,796 - services.sync_service - DEBUG - 任务块 1917120965888958466 AMR选择未完成，已尝试 3 次
2025-04-29 15:37:13,296 - services.sync_service - INFO - 正在获取任务块详情: 1917120965888958466
2025-04-29 15:37:13,315 - services.sync_service - INFO - 成功获取任务块详情: 1917120965888958466 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917120965888958466', 'taskId': '1917120965737963522', 'tenantId': 1000, 'vwedTaskId': '91dbfba0-820a-478e-b119-6f9b5827ebf7', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:37:11', 'updateTime': None}, 'timestamp': 1745912232969}
2025-04-29 15:37:13,317 - services.sync_service - DEBUG - 任务块 1917120965888958466 AMR选择未完成，已尝试 4 次
2025-04-29 15:37:13,527 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:13,530 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:37:13,531 - sqlalchemy.engine.Engine - INFO - [cached since 1.002s ago] ('91dbfba0-820a-478e-b119-6f9b5827ebf7',)
2025-04-29 15:37:13,531 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:13,825 - services.sync_service - INFO - 正在获取任务块详情: 1917120965888958466
2025-04-29 15:37:13,861 - services.sync_service - INFO - 成功获取任务块详情: 1917120965888958466 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917120965888958466', 'taskId': '1917120965737963522', 'tenantId': 1000, 'vwedTaskId': '91dbfba0-820a-478e-b119-6f9b5827ebf7', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:37:11', 'updateTime': None}, 'timestamp': 1745912233510}
2025-04-29 15:37:13,862 - services.sync_service - DEBUG - 任务块 1917120965888958466 AMR选择未完成，已尝试 5 次
2025-04-29 15:37:14,377 - services.sync_service - INFO - 正在获取任务块详情: 1917120965888958466
2025-04-29 15:37:14,520 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:14,520 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:37:14,520 - sqlalchemy.engine.Engine - INFO - [cached since 1.995s ago] ('91dbfba0-820a-478e-b119-6f9b5827ebf7',)
2025-04-29 15:37:14,520 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:14,541 - services.sync_service - INFO - 成功获取任务块详情: 1917120965888958466 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917120965888958466', 'taskId': '1917120965737963522', 'tenantId': 1000, 'vwedTaskId': '91dbfba0-820a-478e-b119-6f9b5827ebf7', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:37:11', 'updateTime': None}, 'timestamp': 1745912234114}
2025-04-29 15:37:14,541 - services.sync_service - DEBUG - 任务块 1917120965888958466 AMR选择未完成，已尝试 6 次
2025-04-29 15:37:15,024 - services.sync_service - INFO - 正在获取任务块详情: 1917120965888958466
2025-04-29 15:37:15,064 - services.sync_service - INFO - 成功获取任务块详情: 1917120965888958466 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917120965888958466', 'taskId': '1917120965737963522', 'tenantId': 1000, 'vwedTaskId': '91dbfba0-820a-478e-b119-6f9b5827ebf7', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:37:11', 'updateTime': None}, 'timestamp': 1745912234720}
2025-04-29 15:37:15,064 - services.sync_service - DEBUG - 任务块 1917120965888958466 AMR选择未完成，已尝试 7 次
2025-04-29 15:37:15,522 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:15,522 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:37:15,522 - sqlalchemy.engine.Engine - INFO - [cached since 2.999s ago] ('91dbfba0-820a-478e-b119-6f9b5827ebf7',)
2025-04-29 15:37:15,532 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:15,563 - services.sync_service - INFO - 正在获取任务块详情: 1917120965888958466
2025-04-29 15:37:15,645 - services.sync_service - INFO - 成功获取任务块详情: 1917120965888958466 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917120965888958466', 'taskId': '1917120965737963522', 'tenantId': 1000, 'vwedTaskId': '91dbfba0-820a-478e-b119-6f9b5827ebf7', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:37:11', 'updateTime': None}, 'timestamp': 1745912235234}
2025-04-29 15:37:15,645 - services.sync_service - DEBUG - 任务块 1917120965888958466 AMR选择未完成，已尝试 8 次
2025-04-29 15:37:16,156 - services.sync_service - INFO - 正在获取任务块详情: 1917120965888958466
2025-04-29 15:37:16,248 - services.sync_service - INFO - 成功获取任务块详情: 1917120965888958466 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917120965888958466', 'taskId': '1917120965737963522', 'tenantId': 1000, 'vwedTaskId': '91dbfba0-820a-478e-b119-6f9b5827ebf7', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:37:11', 'updateTime': None}, 'timestamp': 1745912235855}
2025-04-29 15:37:16,248 - services.sync_service - DEBUG - 任务块 1917120965888958466 AMR选择未完成，已尝试 9 次
2025-04-29 15:37:16,532 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:16,532 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:37:16,532 - sqlalchemy.engine.Engine - INFO - [cached since 4.005s ago] ('91dbfba0-820a-478e-b119-6f9b5827ebf7',)
2025-04-29 15:37:16,532 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:16,748 - services.sync_service - INFO - 正在获取任务块详情: 1917120965888958466
2025-04-29 15:37:16,860 - services.sync_service - INFO - 成功获取任务块详情: 1917120965888958466 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917120965888958466', 'taskId': '1917120965737963522', 'tenantId': 1000, 'vwedTaskId': '91dbfba0-820a-478e-b119-6f9b5827ebf7', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:37:11', 'updateTime': None}, 'timestamp': 1745912236516}
2025-04-29 15:37:16,862 - services.sync_service - INFO - 任务块 1917120965888958466 AMR选择未完成(amrId/appointAmrId/appointAmrGroupId均为空)，已尝试 10 次，继续等待...
2025-04-29 15:37:17,357 - services.sync_service - INFO - 正在获取任务块详情: 1917120965888958466
2025-04-29 15:37:17,460 - services.sync_service - INFO - 成功获取任务块详情: 1917120965888958466 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917120965888958466', 'taskId': '1917120965737963522', 'tenantId': 1000, 'vwedTaskId': '91dbfba0-820a-478e-b119-6f9b5827ebf7', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:37:11', 'updateTime': None}, 'timestamp': 1745912237112}
2025-04-29 15:37:17,460 - services.sync_service - DEBUG - 任务块 1917120965888958466 AMR选择未完成，已尝试 11 次
2025-04-29 15:37:17,540 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:17,540 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:37:17,540 - sqlalchemy.engine.Engine - INFO - [cached since 5.013s ago] ('91dbfba0-820a-478e-b119-6f9b5827ebf7',)
2025-04-29 15:37:17,540 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:17,946 - services.sync_service - INFO - 正在获取任务块详情: 1917120965888958466
2025-04-29 15:37:18,067 - services.sync_service - INFO - 成功获取任务块详情: 1917120965888958466 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917120965888958466', 'taskId': '1917120965737963522', 'tenantId': 1000, 'vwedTaskId': '91dbfba0-820a-478e-b119-6f9b5827ebf7', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:37:11', 'updateTime': None}, 'timestamp': 1745912237698}
2025-04-29 15:37:18,067 - services.sync_service - DEBUG - 任务块 1917120965888958466 AMR选择未完成，已尝试 12 次
2025-04-29 15:37:18,547 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:18,547 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:37:18,547 - sqlalchemy.engine.Engine - INFO - [cached since 6.02s ago] ('91dbfba0-820a-478e-b119-6f9b5827ebf7',)
2025-04-29 15:37:18,547 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:18,578 - services.sync_service - INFO - 正在获取任务块详情: 1917120965888958466
2025-04-29 15:37:18,638 - services.sync_service - INFO - 成功获取任务块详情: 1917120965888958466 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917120965888958466', 'taskId': '1917120965737963522', 'tenantId': 1000, 'vwedTaskId': '91dbfba0-820a-478e-b119-6f9b5827ebf7', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:37:11', 'updateTime': '2025-04-29 15:37:18'}, 'timestamp': 1745912238294}
2025-04-29 15:37:18,638 - services.sync_service - INFO - 任务块 1917120965888958466 已选择AMR: 1912328602264645634，共尝试 13 次
2025-04-29 15:37:18,638 - services.execution.handlers.robot_scheduling - INFO - 准备更新任务 91dbfba0-820a-478e-b119-6f9b5827ebf7 的机器人ID: 1912328602264645634
2025-04-29 15:37:18,638 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:18,638 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.agv_id 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:37:18,648 - sqlalchemy.engine.Engine - INFO - [generated in 0.00230s] ('91dbfba0-820a-478e-b119-6f9b5827ebf7',)
2025-04-29 15:37:18,648 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET agv_id=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 15:37:18,659 - sqlalchemy.engine.Engine - INFO - [generated in 0.00847s] ('1912328602264645634', datetime.datetime(2025, 4, 29, 15, 37, 18, 648435), '91dbfba0-820a-478e-b119-6f9b5827ebf7')
2025-04-29 15:37:18,659 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:18,668 - services.execution.handlers.robot_scheduling - INFO - 成功更新任务记录 91dbfba0-820a-478e-b119-6f9b5827ebf7 的agv_id字段: 1912328602264645634
2025-04-29 15:37:18,668 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b2(ID:2) 选择的机器人: 1912328602264645634
2025-04-29 15:37:18,668 - services.execution.handlers.robot_scheduling - INFO - 块 b2(ID:2) 有 1 个子块
2025-04-29 15:37:18,678 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b2 影响的块ID: [3]
2025-04-29 15:37:18,678 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b2(ID:2) 选择的机器人: 1912328602264645634
2025-04-29 15:37:18,678 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 1 个
2025-04-29 15:37:18,679 - services.execution.handlers.robot_scheduling - INFO - 1. b3(ID:3, 类型:CAgvOperationBp, 关系:direct_child)
2025-04-29 15:37:18,679 - services.execution.handlers.robot_scheduling - INFO - 开始执行选择机器人块 b2 的子块
2025-04-29 15:37:18,679 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 2, 分支: default
2025-04-29 15:37:18,679 - services.execution.block_executor - INFO - 开始执行块 2 的 default 分支下的 1 个子块
2025-04-29 15:37:18,679 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b3, ID: 3, 类型: CAgvOperationBp
2025-04-29 15:37:18,679 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:18,688 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:37:18,688 - sqlalchemy.engine.Engine - INFO - [cached since 7.143s ago] ('fa4c04a4-25ee-4e0a-9359-bbea4a3d3b98', 'b3', '3', '', '{"targetSiteLabel": {"type": "Simple", "value": "wqlo", "required": true}}', '{"targetSiteLabel": "wqlo"}', '{"agv_for_block_3": "1912328602264645634", "agv_for_b3": "1912328602264645634"}', 'CAgvOperationBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '91dbfba0-820a-478e-b119-6f9b5827ebf7', datetime.datetime(2025, 4, 29, 15, 37, 18, 679449), <TaskBlockRecordStatus.RUNNING: 1001>, '{"targetSiteLabel": {"type": "Simple", "value": "wqlo", "required": true}}', '{"agv_for_block_3": "1912328602264645634", "agv_for_b3": "1912328602264645634"}', 1, datetime.datetime(2025, 4, 29, 15, 37, 18, 688975), datetime.datetime(2025, 4, 29, 15, 37, 18, 688975), 0)
2025-04-29 15:37:18,688 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:18,699 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: fa4c04a4-25ee-4e0a-9359-bbea4a3d3b98
2025-04-29 15:37:18,699 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:18,699 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:37:18,699 - sqlalchemy.engine.Engine - INFO - [cached since 7.145s ago] ('fa4c04a4-25ee-4e0a-9359-bbea4a3d3b98',)
2025-04-29 15:37:18,699 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 15:37:18,699 - services.execution.block_executor - INFO - 为块 b3 存储输出: ['selectedAgvId']
2025-04-29 15:37:18,709 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:37:18,709 - sqlalchemy.engine.Engine - INFO - [generated in 0.00122s] ('{"selectedAgvId": "1912328602264645634"}', '执行中', "{'agv_for_block_3': '1912328602264645634', 'agv_for_b3': '1912328602264645634'}", '{"blocks": {"b3": {"selectedAgvId": "1912328602264645634"}}}', '执行中', datetime.datetime(2025, 4, 29, 15, 37, 18, 709454), 'fa4c04a4-25ee-4e0a-9359-bbea4a3d3b98')
2025-04-29 15:37:18,709 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:18,715 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 15:37:18,715 - services.execution.handlers.robot_scheduling - INFO - 找到块 b3(ID:3) 专用的机器人ID: 1912328602264645634
2025-04-29 15:37:18,715 - services.execution.handlers.robot_scheduling - INFO - 执行机器人通用动作，块 b3(ID:3) 使用机器人: 1912328602264645634, 目标站点: wqlo
2025-04-29 15:37:18,715 - services.sync_service - INFO - 正在为任务添加动作: 91dbfba0-820a-478e-b119-6f9b5827ebf7, 站点: wqlo, 动作: 移动
2025-04-29 15:37:18,791 - services.sync_service - WARNING - 为任务添加动作失败: 任务块id不能为空
2025-04-29 15:37:18,791 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:18,791 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:37:18,791 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] ('a40dcd04-6dcf-4fca-83ec-d0e0ec57e31e', 3, '{"success": false, "message": "机器人通用动作执行异常: \'ApiResponse\' object has no attribute \'get\'"}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '91dbfba0-820a-478e-b119-6f9b5827ebf7', datetime.datetime(2025, 4, 29, 15, 37, 18, 791932), datetime.datetime(2025, 4, 29, 15, 37, 18, 791932), 0)
2025-04-29 15:37:18,800 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:18,810 - services.execution.block_executor - ERROR - 子块 3 执行失败: 机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 309, in execute_children
    result = await handler.execute(child_block, parsed_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\robot_scheduling.py", line 726, in execute
    loop_result = await executor.execute_children(block, "default")
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:37:18,810 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:18,810 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:37:18,810 - sqlalchemy.engine.Engine - INFO - [cached since 7.251s ago] ('fa4c04a4-25ee-4e0a-9359-bbea4a3d3b98',)
2025-04-29 15:37:18,810 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 15:37:18,810 - services.execution.block_executor - INFO - 为块 b3 存储输出: ['selectedAgvId']
2025-04-29 15:37:18,810 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:37:18,810 - sqlalchemy.engine.Engine - INFO - [generated in 0.00019s] (datetime.datetime(2025, 4, 29, 15, 37, 18, 810798), "机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'", <TaskBlockRecordStatus.FAILED: 2000>, "机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'", datetime.datetime(2025, 4, 29, 15, 37, 18, 810798), 'fa4c04a4-25ee-4e0a-9359-bbea4a3d3b98')
2025-04-29 15:37:18,810 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:18,810 - services.execution.handlers.robot_scheduling - ERROR - 选择机器人块 b2 的子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 309, in execute_children
    result = await handler.execute(child_block, parsed_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\robot_scheduling.py", line 751, in execute
    logger.error(f"选择机器人块 {current_block_name} 的子块执行失败: {loop_result.get('message')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:37:18,821 - services.sync_service - INFO - 正在封口任务: 1917120965888958466
2025-04-29 15:37:18,842 - services.sync_service - INFO - 成功封口任务: 1917120965888958466
2025-04-29 15:37:18,842 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:18,842 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:37:18,842 - sqlalchemy.engine.Engine - INFO - [cached since 0.04648s ago] ('b2ee4476-e2c8-4b70-9980-9243bf983c4a', 3, '{"success": false, "message": "选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: \'ApiResponse\' object has no attribute \'get\'，失败块ID: 3", "output": {"sele ... (203 characters truncated) ... ldrenResult": {"success": false, "message": "子块 3 执行失败: 机器人通用动作执行异常: \'ApiResponse\' object has no attribute \'get\'", "block_id": 3, "output": {}}}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '91dbfba0-820a-478e-b119-6f9b5827ebf7', datetime.datetime(2025, 4, 29, 15, 37, 18, 842887), datetime.datetime(2025, 4, 29, 15, 37, 18, 842887), 0)
2025-04-29 15:37:18,842 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:18,852 - services.execution.block_executor - ERROR - 子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'，失败块ID: 3
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:37:18,852 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:18,852 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:37:18,852 - sqlalchemy.engine.Engine - INFO - [cached since 7.294s ago] ('b3f8f9cb-31c9-4d5d-aeda-47545f5998d8',)
2025-04-29 15:37:18,852 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 15:37:18,852 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-29 15:37:18,852 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:37:18,852 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] ('{"selectedAgvId": "1912328602264645634"}', datetime.datetime(2025, 4, 29, 15, 37, 18, 852135), "选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'，失败块ID: 3", <TaskBlockRecordStatus.FAILED: 2000>, "{'agv_for_block_3': '1912328602264645634', 'agv_for_b3': '1912328602264645634'}", '{"blocks": {"b2": {"selectedAgvId": "1912328602264645634"}}}', "选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'，失败块ID: 3", datetime.datetime(2025, 4, 29, 15, 37, 18, 852135), 'b3f8f9cb-31c9-4d5d-aeda-47545f5998d8')
2025-04-29 15:37:18,852 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:18,865 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:18,865 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:37:18,865 - sqlalchemy.engine.Engine - INFO - [cached since 0.06973s ago] ('da1a4b12-5744-4e0a-ae9b-9c8d7808491d', 3, '{"success": false, "message": "子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: \'ApiResponse\' object has no attribute \'get\'，失败块ID: 3", "bloc ... (229 characters truncated) ... ldrenResult": {"success": false, "message": "子块 3 执行失败: 机器人通用动作执行异常: \'ApiResponse\' object has no attribute \'get\'", "block_id": 3, "output": {}}}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '91dbfba0-820a-478e-b119-6f9b5827ebf7', datetime.datetime(2025, 4, 29, 15, 37, 18, 865270), datetime.datetime(2025, 4, 29, 15, 37, 18, 865270), 0)
2025-04-29 15:37:18,865 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:18,872 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:18,872 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:37:18,872 - sqlalchemy.engine.Engine - INFO - [cached since 7.314s ago] ('e3f0f16b-5dee-4923-9d5e-9b12de947c2f',)
2025-04-29 15:37:18,872 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 15:37:18,872 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 15:37:18,872 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:37:18,872 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] (datetime.datetime(2025, 4, 29, 15, 37, 18, 872928), "子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'，失败块ID: 3", <TaskBlockRecordStatus.FAILED: 2000>, "{'agv_for_block_3': '1912328602264645634', 'agv_for_b3': '1912328602264645634'}", "子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'，失败块ID: 3", datetime.datetime(2025, 4, 29, 15, 37, 18, 872928), 'e3f0f16b-5dee-4923-9d5e-9b12de947c2f')
2025-04-29 15:37:18,872 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:18,883 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:18,883 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 15:37:18,883 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (datetime.datetime(2025, 4, 29, 15, 37, 18, 883907), "子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'，失败块ID: 3", <TaskStatus.FAILED: 2000>, 7358, 1, datetime.datetime(2025, 4, 29, 15, 37, 18, 883907), '91dbfba0-820a-478e-b119-6f9b5827ebf7')
2025-04-29 15:37:18,883 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:18,891 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 完成任务: 91dbfba0-820a-478e-b119-6f9b5827ebf7, 结果: False
2025-04-29 15:37:46,485 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 15:37:46,487 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 15:37:46,487 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:37:46,488 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 15:37:46,488 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 15:37:46,488 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 15:37:46,488 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:37:46,489 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 15:37:46,489 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 15:37:46,489 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:37:46,490 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:37:46,490 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 37, 46, 487042))
2025-04-29 15:37:46,490 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 15:37:46,491 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 15:37:46,491 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 15:37:46,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:37:46,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 15:37:46,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 15:37:46,492 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 15:37:46,492 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 15:37:46,492 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 15:37:46,493 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:37:46,493 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:37:46,493 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:37:46,493 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:37:46,493 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 15:37:46,494 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 15:37:46,499 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:38:31,508 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 15:38:31,508 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 15:38:31,509 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 15:38:31,509 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 15:38:31,509 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:38:31,509 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:38:46,494 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:38:46,495 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:38:46,496 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 38, 46, 493212))
2025-04-29 15:38:46,498 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:38:46,524 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 15:38:46,525 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 15:38:46,525 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:38:46,525 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 15:38:46,525 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 15:38:46,525 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 15:38:46,526 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:38:46,526 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 15:38:46,526 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 15:38:46,526 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 15:38:46,526 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 15:38:46,526 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 15:38:46,527 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:38:46,527 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 15:38:46,527 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 15:38:46,527 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 15:38:46,527 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 15:38:46,527 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 15:38:46,528 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:38:46,528 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:38:46,528 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:38:46,528 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 15:38:46,528 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 15:38:46,535 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:39:31,519 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 15:39:31,520 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 15:39:31,521 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 15:39:31,521 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 15:39:31,521 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:39:31,521 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:39:46,514 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:39:46,514 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:39:46,515 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 39, 46, 513445))
2025-04-29 15:39:46,516 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:39:46,543 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 15:39:46,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 15:39:46,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:39:46,547 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 15:39:46,547 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 15:39:46,547 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 15:39:46,547 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:39:46,547 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 15:39:46,547 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 15:39:46,547 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 15:39:46,547 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 15:39:46,549 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 15:39:46,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:39:46,550 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 15:39:46,550 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 15:39:46,550 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 15:39:46,550 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 15:39:46,550 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 15:39:46,550 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:39:46,551 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:39:46,551 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:39:46,551 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 15:39:46,551 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 15:39:46,556 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:40:15,789 - app - INFO - 应用程序关闭中...
2025-04-29 15:40:15,789 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 15:40:15,789 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 15:40:15,790 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 15:40:15,790 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 15:40:15,791 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 15:40:15,791 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 15:40:15,791 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 15:40:15,791 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 15:40:15,791 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 15:40:15,792 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 15:40:15,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 15:40:15,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 15:40:15,792 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 15:40:15,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 15:40:15,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:40:15,793 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 3
2025-04-29 15:40:15,793 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 15:40:15,793 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 15:40:15,794 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 2
2025-04-29 15:40:15,795 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 15:40:15,795 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 15:40:15,795 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 1
2025-04-29 15:40:15,795 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:40:15,795 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:40:15,795 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 0
2025-04-29 15:40:15,795 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 15:40:15,796 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 15:40:15,796 - app - INFO - 增强版任务调度器已停止
2025-04-29 15:40:15,796 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 15:40:15,796 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 15:40:15,796 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 15:40:15,797 - data.session - INFO - 数据库连接已关闭
2025-04-29 15:40:18,771 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 15:40:18,829 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:40:18,830 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 15:40:19,500 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 15:40:19,562 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:40:19,563 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 15:40:19,621 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 15:40:19,670 - data.session - INFO - 正在初始化数据库...
2025-04-29 15:40:19,700 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 15:40:19,723 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 15:40:19,730 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:40:19,730 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 15:40:19,730 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:40:19,730 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 15:40:19,732 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:40:19,732 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:40:19,732 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 15:40:19,733 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:40:19,735 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 15:40:19,736 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:40:19,738 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 15:40:19,738 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:40:19,739 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 15:40:19,740 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:40:19,741 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 15:40:19,741 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:40:19,742 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 15:40:19,743 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:40:19,745 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 15:40:19,745 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:40:19,746 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 15:40:19,747 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:40:19,748 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 15:40:19,750 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:40:19,751 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 15:40:19,752 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:40:19,753 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 15:40:19,753 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:40:19,755 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:40:19,756 - data.session - INFO - 数据库表初始化完成
2025-04-29 15:40:20,103 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 15:40:20,104 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 15:40:20,105 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 15:40:20,105 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 15:40:20,105 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 15:40:20,105 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 15:40:20,105 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 15:40:20,106 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 15:40:20,106 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 15:40:20,106 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 15:40:20,106 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:40:20,107 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 15:40:20,107 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 15:40:20,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:40:20,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:40:20,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:40:20,110 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:40:20,110 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:40:20,110 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 15:40:20,110 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 15:40:20,111 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 15:40:20,113 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 15:40:20,119 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 15:40:20,122 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 15:40:20,126 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 15:40:20,128 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 15:40:20,132 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 15:40:20,136 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:40:20,148 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 15:40:20,150 - sqlalchemy.engine.Engine - INFO - [generated in 0.00160s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 15:40:20,152 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 15:40:20,152 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:40:20,153 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 15:40:20,154 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 15:40:20,154 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 15:40:20,154 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:40:20,156 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 15:40:20,156 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 15:40:20,158 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:40:20,158 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 15:40:20,158 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 15:40:20,158 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 15:40:20,159 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 15:40:20,159 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 15:40:20,160 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:40:20,161 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:40:20,161 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 40, 20, 154768))
2025-04-29 15:40:20,162 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:41:20,170 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 15:41:20,171 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 15:41:20,171 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:41:20,172 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 15:41:20,172 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 15:41:20,172 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 15:41:20,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:41:20,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 15:41:20,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 15:41:20,173 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:41:20,173 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:41:20,174 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 41, 20, 171828))
2025-04-29 15:41:20,174 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 15:41:20,174 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 15:41:20,174 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 15:41:20,175 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:41:20,175 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 15:41:20,175 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 15:41:20,175 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 15:41:20,175 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 15:41:20,175 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 15:41:20,176 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:41:20,176 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:41:20,176 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:41:20,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:41:20,177 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 15:41:20,177 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 15:41:20,177 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 15:41:20,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:41:20,178 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 15:41:20,178 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 15:41:20,178 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 15:41:20,178 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:41:20,183 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:42:20,182 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:42:20,183 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:42:20,183 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 42, 20, 182374))
2025-04-29 15:42:20,184 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:42:20,229 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 15:42:20,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 15:42:20,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:42:20,230 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 15:42:20,231 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 15:42:20,232 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 15:42:20,237 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:42:20,238 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 15:42:20,238 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 15:42:20,238 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 15:42:20,240 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 15:42:20,241 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 15:42:20,244 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:42:20,244 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 15:42:20,248 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 15:42:20,248 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 15:42:20,249 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 15:42:20,249 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 15:42:20,259 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:42:20,259 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:42:20,259 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:42:20,259 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 15:42:20,259 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 15:42:20,259 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 15:42:20,261 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:42:20,261 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 15:42:20,261 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 15:42:20,262 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 15:42:20,262 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:42:20,269 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:43:20,189 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:43:20,192 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:43:20,196 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 43, 20, 188639))
2025-04-29 15:43:20,199 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:43:20,313 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 15:43:20,314 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 15:43:20,316 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:43:20,318 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 15:43:20,320 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 15:43:20,320 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 15:43:20,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:43:20,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 15:43:20,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 15:43:20,320 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 15:43:20,320 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 15:43:20,320 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 15:43:20,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:43:20,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 15:43:20,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 15:43:20,321 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 15:43:20,321 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 15:43:20,321 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 15:43:20,322 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:43:20,322 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:43:20,322 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:43:20,322 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 15:43:20,322 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 15:43:20,322 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 15:43:20,323 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:43:20,323 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 15:43:20,323 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 15:43:20,323 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 15:43:20,323 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:43:20,328 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:44:20,202 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:44:20,203 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:44:20,204 - sqlalchemy.engine.Engine - INFO - [cached since 240s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 44, 20, 201973))
2025-04-29 15:44:20,205 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:44:20,357 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 15:44:20,358 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 15:44:20,358 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:44:20,358 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 15:44:20,359 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 15:44:20,359 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 15:44:20,360 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:44:20,360 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 15:44:20,360 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 15:44:20,361 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 15:44:20,361 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 15:44:20,362 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 15:44:20,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:44:20,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 15:44:20,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 15:44:20,362 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 15:44:20,363 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 15:44:20,363 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 15:44:20,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:44:20,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:44:20,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:44:20,364 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 15:44:20,364 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 15:44:20,364 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 15:44:20,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:44:20,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 15:44:20,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 15:44:20,364 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 15:44:20,364 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:44:20,373 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:45:20,223 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:45:20,223 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:45:20,224 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 45, 20, 219906))
2025-04-29 15:45:20,226 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:45:20,373 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 15:45:20,374 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 15:45:20,374 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:45:20,375 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 15:45:20,375 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 15:45:20,376 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 15:45:20,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:45:20,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 15:45:20,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 15:45:20,377 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 15:45:20,378 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 15:45:20,378 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 15:45:20,378 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:45:20,378 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 15:45:20,378 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 15:45:20,379 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 15:45:20,379 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 15:45:20,379 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 15:45:20,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:45:20,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:45:20,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:45:20,379 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 15:45:20,380 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 15:45:20,380 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 15:45:20,380 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:45:20,380 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 15:45:20,380 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 15:45:20,380 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 15:45:20,380 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:45:20,385 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:46:20,248 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:46:20,249 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:46:20,250 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 46, 20, 247661))
2025-04-29 15:46:20,254 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:46:20,420 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 15:46:20,421 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 15:46:20,421 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:46:20,421 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 15:46:20,421 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 15:46:20,421 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 15:46:20,421 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:46:20,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 15:46:20,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 15:46:20,422 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 15:46:20,422 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 15:46:20,422 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 15:46:20,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:46:20,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 15:46:20,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 15:46:20,426 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 15:46:20,426 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 15:46:20,426 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 15:46:20,426 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:46:20,426 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:46:20,426 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:46:20,426 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 15:46:20,427 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 15:46:20,427 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 15:46:20,428 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:46:20,430 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 15:46:20,430 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 15:46:20,430 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 15:46:20,432 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:46:20,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:46:47,761 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 15:46:47,764 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:46:47,770 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:46:47,770 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:46:47,771 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:46:47,772 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:46:47,773 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:46:47,773 - sqlalchemy.engine.Engine - INFO - [cached since 0.003504s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:46:47,774 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:46:47,774 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 15:46:47,775 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 15:46:47,775 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 15:46:47,775 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:46:47,776 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 15:46:47,776 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (None, datetime.datetime(2025, 4, 29, 15, 46, 47, 776453), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 15:46:47,777 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:46:47,793 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:46:47,793 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:46:47,794 - sqlalchemy.engine.Engine - INFO - [cached since 0.02369s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:46:47,797 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:46:47,798 - sqlalchemy.engine.Engine - INFO - [generated in 0.00053s] ('b78be26d-d67f-4e67-9ce9-5519484c1e92', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 4, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (638 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 15, 46, 47, 774459), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 15, 46, 47, 797361), datetime.datetime(2025, 4, 29, 15, 46, 47, 797361), 0)
2025-04-29 15:46:47,801 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:46:47,811 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:46:47,833 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:46:47,833 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] ('b78be26d-d67f-4e67-9ce9-5519484c1e92',)
2025-04-29 15:46:47,834 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:46:47,836 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 b78be26d-d67f-4e67-9ce9-5519484c1e92 (优先级 1) 添加到队列 0
2025-04-29 15:46:47,839 - services.sync_service - INFO - 正在同步创建任务到天风系统: b78be26d-d67f-4e67-9ce9-5519484c1e92
2025-04-29 15:46:47,839 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"b78be26d-d67f-4e67-9ce9-5519484c1e92","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 15:46:47","sceneId":"1912043207186550785","needAmr":1}
2025-04-29 15:46:47,926 - services.sync_service - INFO - 成功同步任务到系统任务: b78be26d-d67f-4e67-9ce9-5519484c1e92
2025-04-29 15:46:47,928 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: b78be26d-d67f-4e67-9ce9-5519484c1e92, 优先级: 1
2025-04-29 15:46:47,929 - services.execution.task_executor - DEBUG - 任务 b78be26d-d67f-4e67-9ce9-5519484c1e92 设置超时时间: 3600秒
2025-04-29 15:46:47,930 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: b78be26d-d67f-4e67-9ce9-5519484c1e92
2025-04-29 15:46:47,931 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: b78be26d-d67f-4e67-9ce9-5519484c1e92
2025-04-29 15:46:47,932 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1708秒
2025-04-29 15:46:47,935 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:46:47,938 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:46:47,941 - sqlalchemy.engine.Engine - INFO - [cached since 0.1087s ago] ('b78be26d-d67f-4e67-9ce9-5519484c1e92',)
2025-04-29 15:46:47,943 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:46:47,944 - sqlalchemy.engine.Engine - INFO - [cached since 0.1739s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:46:47,945 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 15:46:47,947 - sqlalchemy.engine.Engine - INFO - [generated in 0.00217s] (datetime.datetime(2025, 4, 29, 15, 46, 47, 945106), datetime.datetime(2025, 4, 29, 15, 46, 47, 945106), 'b78be26d-d67f-4e67-9ce9-5519484c1e92')
2025-04-29 15:46:47,949 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:46:47,957 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:46:47,959 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 15:46:47,959 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 46, 47, 959130), 'b78be26d-d67f-4e67-9ce9-5519484c1e92')
2025-04-29 15:46:47,960 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:46:47,967 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 15:46:47,969 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:46:47,974 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:46:47,974 - sqlalchemy.engine.Engine - INFO - [generated in 0.00060s] ('0a4f7bb9-82d5-4d0f-95ca-a76893359a57', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'b78be26d-d67f-4e67-9ce9-5519484c1e92', datetime.datetime(2025, 4, 29, 15, 46, 47, 968302), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 15, 46, 47, 974297), datetime.datetime(2025, 4, 29, 15, 46, 47, 974297), 0)
2025-04-29 15:46:47,977 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:46:47,983 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:46:47,985 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:46:47,986 - sqlalchemy.engine.Engine - INFO - [generated in 0.00144s] ('0a4f7bb9-82d5-4d0f-95ca-a76893359a57',)
2025-04-29 15:46:47,987 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 15:46:47,988 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 15:46:47,989 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:46:47,989 - sqlalchemy.engine.Engine - INFO - [generated in 0.00067s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 15, 46, 47, 989984), '0a4f7bb9-82d5-4d0f-95ca-a76893359a57')
2025-04-29 15:46:47,991 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:46:47,999 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 15:46:47,999 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 15:46:47,999 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b2, ID: 2, 类型: CSelectAgvBp
2025-04-29 15:46:48,000 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:46:48,001 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:46:48,001 - sqlalchemy.engine.Engine - INFO - [cached since 0.02801s ago] ('658be56f-5376-4cb7-8d8b-37cef58102d1', 'b2', '2', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}, "vehicle": {"type": "Simple", "value": "", "required": null}, "priority": {"type": "Simple", "value": "1", "required": null}, "tag": {"type": "Simple", "value": "", "required": null}}', '{"keyRoute": "TK01", "vehicle": "", "priority": "1", "tag": ""}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'b78be26d-d67f-4e67-9ce9-5519484c1e92', datetime.datetime(2025, 4, 29, 15, 46, 48, 991), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}, "vehicle": {"type": "Simple", "value": "", "required": null}, "priority": {"type": "Simple", "value": "1", "required": null}, "tag": {"type": "Simple", "value": "", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 29, 15, 46, 48, 1991), datetime.datetime(2025, 4, 29, 15, 46, 48, 1991), 0)
2025-04-29 15:46:48,002 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:46:48,008 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 658be56f-5376-4cb7-8d8b-37cef58102d1
2025-04-29 15:46:48,009 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:46:48,009 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:46:48,009 - sqlalchemy.engine.Engine - INFO - [cached since 0.02469s ago] ('658be56f-5376-4cb7-8d8b-37cef58102d1',)
2025-04-29 15:46:48,012 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 15:46:48,012 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 15:46:48,013 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:46:48,013 - sqlalchemy.engine.Engine - INFO - [cached since 0.02408s ago] ('null', '执行中', '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 15, 46, 48, 13632), '658be56f-5376-4cb7-8d8b-37cef58102d1')
2025-04-29 15:46:48,015 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:46:48,021 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 15:46:48,021 - services.sync_service - INFO - 正在创建选择AMR任务: b78be26d-d67f-4e67-9ce9-5519484c1e92, 站点: TK01
2025-04-29 15:46:48,157 - services.sync_service - INFO - 成功为任务选择AMR: b78be26d-d67f-4e67-9ce9-5519484c1e92, AMR: None
2025-04-29 15:46:48,158 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917123383678722049 的AMR选择结果
2025-04-29 15:46:48,160 - services.sync_service - INFO - 开始等待任务块 1917123383678722049 的AMR选择结果
2025-04-29 15:46:48,161 - services.sync_service - INFO - 正在获取任务块详情: 1917123383678722049
2025-04-29 15:46:48,222 - services.sync_service - INFO - 成功获取任务块详情: 1917123383678722049 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917123383678722049', 'taskId': '1917123382961496066', 'tenantId': 1000, 'vwedTaskId': 'b78be26d-d67f-4e67-9ce9-5519484c1e92', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:46:48', 'updateTime': '2025-04-29 15:46:48'}, 'timestamp': 1745912807867}
2025-04-29 15:46:48,224 - services.sync_service - INFO - 任务块 1917123383678722049 已选择AMR: 1912328602264645634，共尝试 1 次
2025-04-29 15:46:48,224 - services.execution.handlers.robot_scheduling - INFO - 准备更新任务 b78be26d-d67f-4e67-9ce9-5519484c1e92 的机器人ID: 1912328602264645634
2025-04-29 15:46:48,225 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:46:48,229 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.agv_id 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:46:48,231 - sqlalchemy.engine.Engine - INFO - [generated in 0.00281s] ('b78be26d-d67f-4e67-9ce9-5519484c1e92',)
2025-04-29 15:46:48,236 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET agv_id=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 15:46:48,238 - sqlalchemy.engine.Engine - INFO - [generated in 0.00181s] ('1912328602264645634', datetime.datetime(2025, 4, 29, 15, 46, 48, 236338), 'b78be26d-d67f-4e67-9ce9-5519484c1e92')
2025-04-29 15:46:48,239 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:46:48,246 - services.execution.handlers.robot_scheduling - INFO - 成功更新任务记录 b78be26d-d67f-4e67-9ce9-5519484c1e92 的agv_id字段: 1912328602264645634
2025-04-29 15:46:48,250 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b2(ID:2) 选择的机器人: 1912328602264645634
2025-04-29 15:46:48,252 - services.execution.handlers.robot_scheduling - INFO - 块 b2(ID:2) 有 1 个子块
2025-04-29 15:46:48,253 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b2 影响的块ID: [3]
2025-04-29 15:46:48,256 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b2(ID:2) 选择的机器人: 1912328602264645634
2025-04-29 15:46:48,258 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 1 个
2025-04-29 15:46:48,260 - services.execution.handlers.robot_scheduling - INFO - 1. b3(ID:3, 类型:CAgvOperationBp, 关系:direct_child)
2025-04-29 15:46:48,266 - services.execution.handlers.robot_scheduling - INFO - 开始执行选择机器人块 b2 的子块
2025-04-29 15:46:48,269 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 2, 分支: default
2025-04-29 15:46:48,269 - services.execution.block_executor - INFO - 开始执行块 2 的 default 分支下的 1 个子块
2025-04-29 15:46:48,272 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b3, ID: 3, 类型: CAgvOperationBp
2025-04-29 15:46:48,276 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:46:48,281 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:46:48,283 - sqlalchemy.engine.Engine - INFO - [cached since 0.3096s ago] ('ad3f4925-3ac0-437f-aa3b-b1266c0e691b', 'b3', '3', '', '{"targetSiteLabel": {"type": "Simple", "value": "wqlo", "required": true}}', '{"targetSiteLabel": "wqlo"}', '{"agv_for_block_3": "1912328602264645634", "agv_for_b3": "1912328602264645634"}', 'CAgvOperationBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'b78be26d-d67f-4e67-9ce9-5519484c1e92', datetime.datetime(2025, 4, 29, 15, 46, 48, 275331), <TaskBlockRecordStatus.RUNNING: 1001>, '{"targetSiteLabel": {"type": "Simple", "value": "wqlo", "required": true}}', '{"agv_for_block_3": "1912328602264645634", "agv_for_b3": "1912328602264645634"}', 1, datetime.datetime(2025, 4, 29, 15, 46, 48, 281356), datetime.datetime(2025, 4, 29, 15, 46, 48, 281356), 0)
2025-04-29 15:46:48,284 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:46:48,292 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: ad3f4925-3ac0-437f-aa3b-b1266c0e691b
2025-04-29 15:46:48,292 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:46:48,296 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:46:48,299 - sqlalchemy.engine.Engine - INFO - [cached since 0.3141s ago] ('ad3f4925-3ac0-437f-aa3b-b1266c0e691b',)
2025-04-29 15:46:48,301 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 15:46:48,302 - services.execution.block_executor - INFO - 为块 b3 存储输出: ['selectedAgvId']
2025-04-29 15:46:48,305 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:46:48,308 - sqlalchemy.engine.Engine - INFO - [generated in 0.00310s] ('{"selectedAgvId": "1912328602264645634"}', '执行中', "{'agv_for_block_3': '1912328602264645634', 'agv_for_b3': '1912328602264645634'}", '{"blocks": {"b3": {"selectedAgvId": "1912328602264645634"}}}', '执行中', datetime.datetime(2025, 4, 29, 15, 46, 48, 305414), 'ad3f4925-3ac0-437f-aa3b-b1266c0e691b')
2025-04-29 15:46:48,311 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:46:48,318 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 15:46:48,321 - services.execution.handlers.robot_scheduling - INFO - 找到块 b3(ID:3) 专用的机器人ID: 1912328602264645634
2025-04-29 15:46:48,323 - services.execution.handlers.robot_scheduling - INFO - 执行机器人通用动作，块 b3(ID:3) 使用机器人: 1912328602264645634, 目标站点: wqlo
2025-04-29 15:46:48,325 - services.sync_service - INFO - 正在为任务添加动作: b78be26d-d67f-4e67-9ce9-5519484c1e92, 站点: wqlo, 动作: 移动
2025-04-29 15:46:48,386 - services.sync_service - WARNING - 为任务添加动作失败: 任务块id不能为空
2025-04-29 15:46:48,391 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:46:48,394 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:46:48,395 - sqlalchemy.engine.Engine - INFO - [generated in 0.00193s] ('6f9e7042-42d8-4d98-954f-11c2da7332b8', 3, '{"success": false, "message": "机器人通用动作执行异常: \'ApiResponse\' object has no attribute \'get\'"}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'b78be26d-d67f-4e67-9ce9-5519484c1e92', datetime.datetime(2025, 4, 29, 15, 46, 48, 394052), datetime.datetime(2025, 4, 29, 15, 46, 48, 394052), 0)
2025-04-29 15:46:48,400 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:46:48,414 - services.execution.block_executor - ERROR - 子块 3 执行失败: 机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 309, in execute_children
    result = await handler.execute(child_block, parsed_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\robot_scheduling.py", line 726, in execute
    loop_result = await executor.execute_children(block, "default")
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:46:48,418 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:46:48,419 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:46:48,420 - sqlalchemy.engine.Engine - INFO - [cached since 0.4342s ago] ('ad3f4925-3ac0-437f-aa3b-b1266c0e691b',)
2025-04-29 15:46:48,431 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 15:46:48,432 - services.execution.block_executor - INFO - 为块 b3 存储输出: ['selectedAgvId']
2025-04-29 15:46:48,434 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:46:48,435 - sqlalchemy.engine.Engine - INFO - [generated in 0.00116s] (datetime.datetime(2025, 4, 29, 15, 46, 48, 432056), "机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'", <TaskBlockRecordStatus.FAILED: 2000>, "机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'", datetime.datetime(2025, 4, 29, 15, 46, 48, 434000), 'ad3f4925-3ac0-437f-aa3b-b1266c0e691b')
2025-04-29 15:46:48,437 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:46:48,445 - services.execution.handlers.robot_scheduling - ERROR - 选择机器人块 b2 的子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 309, in execute_children
    result = await handler.execute(child_block, parsed_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\robot_scheduling.py", line 751, in execute
    logger.error(f"选择机器人块 {current_block_name} 的子块执行失败: {loop_result.get('message')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:46:48,445 - services.sync_service - INFO - 正在封口任务: 1917123383678722049
2025-04-29 15:46:48,515 - services.sync_service - INFO - 成功封口任务: 1917123383678722049
2025-04-29 15:46:48,516 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:46:48,517 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:46:48,517 - sqlalchemy.engine.Engine - INFO - [cached since 0.1234s ago] ('c2f1258d-d589-4ec5-ab62-af005c22e387', 3, '{"success": false, "message": "选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: \'ApiResponse\' object has no attribute \'get\'，失败块ID: 3", "output": {"sele ... (203 characters truncated) ... ldrenResult": {"success": false, "message": "子块 3 执行失败: 机器人通用动作执行异常: \'ApiResponse\' object has no attribute \'get\'", "block_id": 3, "output": {}}}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'b78be26d-d67f-4e67-9ce9-5519484c1e92', datetime.datetime(2025, 4, 29, 15, 46, 48, 517214), datetime.datetime(2025, 4, 29, 15, 46, 48, 517214), 0)
2025-04-29 15:46:48,518 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:46:48,527 - services.execution.block_executor - ERROR - 子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'，失败块ID: 3
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:46:48,528 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:46:48,528 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:46:48,528 - sqlalchemy.engine.Engine - INFO - [cached since 0.5434s ago] ('658be56f-5376-4cb7-8d8b-37cef58102d1',)
2025-04-29 15:46:48,529 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 15:46:48,530 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-29 15:46:48,530 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:46:48,531 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] ('{"selectedAgvId": "1912328602264645634"}', datetime.datetime(2025, 4, 29, 15, 46, 48, 530110), "选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'，失败块ID: 3", <TaskBlockRecordStatus.FAILED: 2000>, "{'agv_for_block_3': '1912328602264645634', 'agv_for_b3': '1912328602264645634'}", '{"blocks": {"b2": {"selectedAgvId": "1912328602264645634"}}}', "选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'，失败块ID: 3", datetime.datetime(2025, 4, 29, 15, 46, 48, 530110), '658be56f-5376-4cb7-8d8b-37cef58102d1')
2025-04-29 15:46:48,531 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:46:48,540 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:46:48,540 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:46:48,540 - sqlalchemy.engine.Engine - INFO - [cached since 0.1465s ago] ('fc36f9ad-1f72-461f-8b93-9f951b8c5e57', 3, '{"success": false, "message": "子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: \'ApiResponse\' object has no attribute \'get\'，失败块ID: 3", "bloc ... (229 characters truncated) ... ldrenResult": {"success": false, "message": "子块 3 执行失败: 机器人通用动作执行异常: \'ApiResponse\' object has no attribute \'get\'", "block_id": 3, "output": {}}}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'b78be26d-d67f-4e67-9ce9-5519484c1e92', datetime.datetime(2025, 4, 29, 15, 46, 48, 540120), datetime.datetime(2025, 4, 29, 15, 46, 48, 540120), 0)
2025-04-29 15:46:48,541 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:46:48,547 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:46:48,548 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:46:48,548 - sqlalchemy.engine.Engine - INFO - [cached since 0.5632s ago] ('0a4f7bb9-82d5-4d0f-95ca-a76893359a57',)
2025-04-29 15:46:48,549 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 15:46:48,549 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 15:46:48,550 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:46:48,550 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (datetime.datetime(2025, 4, 29, 15, 46, 48, 549647), "子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'，失败块ID: 3", <TaskBlockRecordStatus.FAILED: 2000>, "{'agv_for_block_3': '1912328602264645634', 'agv_for_b3': '1912328602264645634'}", "子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'，失败块ID: 3", datetime.datetime(2025, 4, 29, 15, 46, 48, 550648), '0a4f7bb9-82d5-4d0f-95ca-a76893359a57')
2025-04-29 15:46:48,551 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:46:48,563 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:46:48,564 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 15:46:48,564 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (datetime.datetime(2025, 4, 29, 15, 46, 48, 563078), "子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'，失败块ID: 3", <TaskStatus.FAILED: 2000>, 605, 1, datetime.datetime(2025, 4, 29, 15, 46, 48, 564097), 'b78be26d-d67f-4e67-9ce9-5519484c1e92')
2025-04-29 15:46:48,569 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:46:48,588 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: b78be26d-d67f-4e67-9ce9-5519484c1e92, 结果: False
2025-04-29 15:47:20,264 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:47:20,264 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:47:20,265 - sqlalchemy.engine.Engine - INFO - [cached since 420.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 47, 20, 263278))
2025-04-29 15:47:20,266 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:47:20,435 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 15:47:20,435 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 15:47:20,435 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:47:20,436 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 15:47:20,436 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 15:47:20,436 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 15:47:20,436 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:47:20,437 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 15:47:20,437 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 15:47:20,437 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 15:47:20,437 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 15:47:20,437 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 15:47:20,437 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:47:20,438 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:47:20,438 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:47:20,438 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 15:47:20,438 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 15:47:20,439 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 15:47:20,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:47:20,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 15:47:20,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 15:47:20,439 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 15:47:20,440 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:47:20,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:47:50,468 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 15:47:50,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 15:47:50,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 15:47:50,476 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 15:47:50,477 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 15:47:50,477 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:48:20,262 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:48:20,263 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:48:20,264 - sqlalchemy.engine.Engine - INFO - [cached since 480.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 48, 20, 261473))
2025-04-29 15:48:20,266 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:48:20,506 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 15:48:20,506 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 15:48:20,507 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:48:20,507 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 15:48:20,508 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 15:48:20,508 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 15:48:20,508 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:48:20,509 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 15:48:20,509 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 15:48:20,509 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 15:48:20,510 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 15:48:20,510 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 15:48:20,510 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:48:20,510 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:48:20,510 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:48:20,510 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 15:48:20,511 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 15:48:20,511 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 15:48:20,511 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:48:20,511 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 15:48:20,512 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 15:48:20,512 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 15:48:20,512 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:48:20,517 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:48:50,547 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 15:48:50,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 15:48:50,550 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 15:48:50,551 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 15:48:50,554 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 15:48:50,556 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:49:20,265 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:49:20,266 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:49:20,267 - sqlalchemy.engine.Engine - INFO - [cached since 540.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 49, 20, 265188))
2025-04-29 15:49:20,268 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:49:20,574 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 15:49:20,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 15:49:20,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:49:20,575 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 15:49:20,575 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 15:49:20,575 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 15:49:20,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:49:20,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 15:49:20,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 15:49:20,576 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 15:49:20,576 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 15:49:20,576 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 15:49:20,576 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:49:20,576 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:49:20,577 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:49:20,577 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 15:49:20,577 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 15:49:20,577 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 15:49:20,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:49:20,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 15:49:20,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 15:49:20,578 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 15:49:20,578 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:49:20,585 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:49:50,618 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 15:49:50,620 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 15:49:50,620 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 15:49:50,621 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 15:49:50,621 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 15:49:50,623 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:50:20,291 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:50:20,291 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:50:20,292 - sqlalchemy.engine.Engine - INFO - [cached since 600.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 50, 20, 290557))
2025-04-29 15:50:20,293 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:50:20,633 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 15:50:20,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 15:50:20,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:50:20,635 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 15:50:20,635 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 15:50:20,635 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 15:50:20,636 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:50:20,636 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 15:50:20,636 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 15:50:20,636 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 15:50:20,637 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 15:50:20,637 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 15:50:20,638 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:50:20,638 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:50:20,638 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:50:20,638 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 15:50:20,639 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 15:50:20,639 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 15:50:20,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:50:20,640 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 15:50:20,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 15:50:20,641 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 15:50:20,641 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:50:20,651 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:50:50,649 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 15:50:50,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 15:50:50,650 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 15:50:50,650 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 15:50:50,651 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 15:50:50,651 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:51:20,310 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:51:20,315 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:51:20,318 - sqlalchemy.engine.Engine - INFO - [cached since 660.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 51, 20, 309643))
2025-04-29 15:51:20,322 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:51:20,666 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 15:51:20,666 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 15:51:20,666 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:51:20,667 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 15:51:20,667 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 15:51:20,667 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 15:51:20,667 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:51:20,668 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 15:51:20,668 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 15:51:20,668 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 15:51:20,669 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 15:51:20,670 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 15:51:20,670 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:51:20,671 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:51:20,672 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:51:20,673 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 15:51:20,673 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 15:51:20,674 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 15:51:20,674 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:51:20,674 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 15:51:20,674 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 15:51:20,674 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 15:51:20,675 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:51:20,680 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:51:50,687 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 15:51:50,687 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 15:51:50,687 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 15:51:50,687 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 15:51:50,687 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 15:51:50,688 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:52:20,343 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:52:20,344 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:52:20,344 - sqlalchemy.engine.Engine - INFO - [cached since 720.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 52, 20, 343480))
2025-04-29 15:52:20,346 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:52:20,699 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 15:52:20,701 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 15:52:20,703 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:52:20,705 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 15:52:20,707 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 15:52:20,709 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 15:52:20,711 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:52:20,711 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 15:52:20,711 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 15:52:20,711 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 15:52:20,711 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 15:52:20,711 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 15:52:20,711 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:52:20,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:52:20,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:52:20,712 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 15:52:20,712 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 15:52:20,712 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 15:52:20,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:52:20,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 15:52:20,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 15:52:20,713 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 15:52:20,713 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:52:20,719 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:52:24,092 - app - INFO - 应用程序关闭中...
2025-04-29 15:52:24,097 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 15:52:24,098 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 15:52:24,101 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 15:52:24,101 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 15:52:24,101 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 15:52:24,101 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 15:52:24,103 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 15:52:24,103 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 15:52:24,103 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 15:52:24,104 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 15:52:24,104 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 15:52:24,104 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 15:52:24,104 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 15:52:24,104 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 15:52:24,104 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:52:24,104 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 3
2025-04-29 15:52:24,104 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 15:52:24,104 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 15:52:24,104 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 2
2025-04-29 15:52:24,105 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:52:24,105 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:52:24,105 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 15:52:24,105 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 15:52:24,105 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 15:52:24,105 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 15:52:24,105 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 15:52:24,105 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 15:52:24,105 - app - INFO - 增强版任务调度器已停止
2025-04-29 15:52:24,105 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 15:52:24,106 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 15:52:24,106 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 15:52:24,106 - data.session - INFO - 数据库连接已关闭
2025-04-29 15:52:26,140 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 15:52:26,203 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:52:26,205 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 15:52:26,919 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 15:52:26,984 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:52:26,986 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 15:52:27,046 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 15:52:27,099 - data.session - INFO - 正在初始化数据库...
2025-04-29 15:52:27,123 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 15:52:27,149 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 15:52:27,149 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:52:27,150 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 15:52:27,150 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:52:27,151 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 15:52:27,151 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:52:27,151 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:52:27,152 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 15:52:27,152 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:52:27,156 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 15:52:27,156 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:52:27,157 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 15:52:27,158 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:52:27,158 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 15:52:27,159 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:52:27,160 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 15:52:27,160 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:52:27,161 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 15:52:27,161 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:52:27,162 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 15:52:27,162 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:52:27,163 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 15:52:27,163 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:52:27,165 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 15:52:27,165 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:52:27,166 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 15:52:27,167 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:52:27,168 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 15:52:27,168 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:52:27,169 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:52:27,170 - data.session - INFO - 数据库表初始化完成
2025-04-29 15:52:27,536 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 15:52:27,537 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 15:52:27,538 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 15:52:27,539 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 15:52:27,539 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 15:52:27,539 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 15:52:27,539 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 15:52:27,542 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 15:52:27,544 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 15:52:27,546 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 15:52:27,548 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:52:27,552 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 15:52:27,558 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 15:52:27,561 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:52:27,563 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:52:27,564 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:52:27,564 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:52:27,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:52:27,567 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 15:52:27,567 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 15:52:27,583 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 15:52:27,584 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 15:52:27,584 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 15:52:27,585 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 15:52:27,586 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 15:52:27,586 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 15:52:27,586 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 15:52:27,587 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:52:27,596 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 15:52:27,597 - sqlalchemy.engine.Engine - INFO - [generated in 0.00077s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 15:52:27,598 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 15:52:27,599 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:52:27,600 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 15:52:27,600 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 15:52:27,601 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 15:52:27,601 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:52:27,603 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 15:52:27,603 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 15:52:27,604 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:52:27,606 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 15:52:27,607 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 15:52:27,607 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 15:52:27,607 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 15:52:27,607 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 15:52:27,608 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:52:27,610 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:52:27,611 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 52, 27, 601606))
2025-04-29 15:52:27,612 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:22,634 - app - INFO - 请求开始: POST /api/vwed-task-edit/save 来自 127.0.0.1
2025-04-29 15:53:22,639 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:22,641 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:53:22,643 - sqlalchemy.engine.Engine - INFO - [generated in 0.00187s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:53:22,644 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:22,646 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:22,646 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:53:22,647 - sqlalchemy.engine.Engine - INFO - [cached since 0.005756s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:53:22,649 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET version=%s, detail=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 15:53:22,649 - sqlalchemy.engine.Engine - INFO - [generated in 0.00059s] (5, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (713 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', datetime.datetime(2025, 4, 29, 15, 53, 22, 649053), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 15:53:22,651 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:22,657 - app - INFO - 请求完成: POST /api/vwed-task-edit/save 状态码: 200 耗时: 0.0237秒
2025-04-29 15:53:27,604 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 15:53:27,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 15:53:27,607 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:53:27,608 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 15:53:27,610 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 15:53:27,611 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 15:53:27,621 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:53:27,621 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 15:53:27,621 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 15:53:27,621 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:27,627 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:53:27,635 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 53, 27, 605853))
2025-04-29 15:53:27,635 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 15:53:27,636 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 15:53:27,636 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 15:53:27,637 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:53:27,637 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 15:53:27,638 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 15:53:27,638 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 15:53:27,638 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 15:53:27,638 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 15:53:27,639 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:27,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:53:27,640 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:53:27,640 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:53:27,640 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 15:53:27,640 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 15:53:27,640 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 15:53:27,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:53:27,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 15:53:27,641 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 15:53:27,641 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 15:53:27,641 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:53:27,647 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:53:29,775 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 15:53:29,778 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:29,786 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:53:29,787 - sqlalchemy.engine.Engine - INFO - [cached since 7.146s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:53:29,796 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:29,806 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:29,807 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:53:29,812 - sqlalchemy.engine.Engine - INFO - [cached since 7.17s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:53:29,815 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:29,816 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 15:53:29,817 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 15:53:29,817 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 15:53:29,821 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:29,825 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 15:53:29,828 - sqlalchemy.engine.Engine - INFO - [generated in 0.00189s] (None, datetime.datetime(2025, 4, 29, 15, 53, 29, 825992), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 15:53:29,847 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:29,864 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:29,864 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:53:29,865 - sqlalchemy.engine.Engine - INFO - [cached since 7.224s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:53:29,868 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:53:29,870 - sqlalchemy.engine.Engine - INFO - [generated in 0.00148s] ('a42a909a-bc6f-4c5b-b964-48d5db784190', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 5, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (713 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 15, 53, 29, 816001), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 15, 53, 29, 868708), datetime.datetime(2025, 4, 29, 15, 53, 29, 868708), 0)
2025-04-29 15:53:29,871 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:29,879 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:29,886 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:53:29,888 - sqlalchemy.engine.Engine - INFO - [generated in 0.00245s] ('a42a909a-bc6f-4c5b-b964-48d5db784190',)
2025-04-29 15:53:29,890 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:29,892 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 a42a909a-bc6f-4c5b-b964-48d5db784190 (优先级 1) 添加到队列 0
2025-04-29 15:53:29,895 - services.sync_service - INFO - 正在同步创建任务到天风系统: a42a909a-bc6f-4c5b-b964-48d5db784190
2025-04-29 15:53:29,896 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"a42a909a-bc6f-4c5b-b964-48d5db784190","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 15:53:29","sceneId":"1912043207186550785","needAmr":1}
2025-04-29 15:53:29,897 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: a42a909a-bc6f-4c5b-b964-48d5db784190, 优先级: 1
2025-04-29 15:53:29,897 - services.execution.task_executor - DEBUG - 任务 a42a909a-bc6f-4c5b-b964-48d5db784190 设置超时时间: 3600秒
2025-04-29 15:53:29,897 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:29,899 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:53:29,899 - sqlalchemy.engine.Engine - INFO - [cached since 0.01386s ago] ('a42a909a-bc6f-4c5b-b964-48d5db784190',)
2025-04-29 15:53:29,902 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:53:29,903 - sqlalchemy.engine.Engine - INFO - [cached since 7.262s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:53:29,905 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 15:53:29,905 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (datetime.datetime(2025, 4, 29, 15, 53, 29, 905712), datetime.datetime(2025, 4, 29, 15, 53, 29, 905712), 'a42a909a-bc6f-4c5b-b964-48d5db784190')
2025-04-29 15:53:29,907 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:29,913 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:29,915 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 15:53:29,915 - sqlalchemy.engine.Engine - INFO - [generated in 0.00089s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 53, 29, 915710), 'a42a909a-bc6f-4c5b-b964-48d5db784190')
2025-04-29 15:53:29,918 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:29,932 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 15:53:29,934 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:29,936 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:53:29,938 - sqlalchemy.engine.Engine - INFO - [generated in 0.00212s] ('8db758cd-1239-44ff-a001-4057234a0319', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a42a909a-bc6f-4c5b-b964-48d5db784190', datetime.datetime(2025, 4, 29, 15, 53, 29, 933705), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 15, 53, 29, 935720), datetime.datetime(2025, 4, 29, 15, 53, 29, 935720), 0)
2025-04-29 15:53:29,940 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:29,950 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:29,953 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:53:29,957 - sqlalchemy.engine.Engine - INFO - [generated in 0.00308s] ('8db758cd-1239-44ff-a001-4057234a0319',)
2025-04-29 15:53:29,959 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 15:53:29,961 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 15:53:29,963 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:53:29,964 - sqlalchemy.engine.Engine - INFO - [generated in 0.00100s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 15, 53, 29, 963713), '8db758cd-1239-44ff-a001-4057234a0319')
2025-04-29 15:53:29,968 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:29,976 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 15:53:29,977 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 15:53:29,978 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b2, ID: 2, 类型: CSelectAgvBp
2025-04-29 15:53:29,980 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:29,982 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:53:29,985 - sqlalchemy.engine.Engine - INFO - [cached since 0.04942s ago] ('96f0c938-c90a-4ea4-bf9b-dc67ec3088aa', 'b2', '2', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}, "vehicle": {"type": "Simple", "value": "", "required": null}, "priority": {"type": "Simple", "value": "1", "required": null}, "tag": {"type": "Simple", "value": "", "required": null}}', '{"keyRoute": "TK01", "vehicle": "", "priority": "1", "tag": ""}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a42a909a-bc6f-4c5b-b964-48d5db784190', datetime.datetime(2025, 4, 29, 15, 53, 29, 979821), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}, "vehicle": {"type": "Simple", "value": "", "required": null}, "priority": {"type": "Simple", "value": "1", "required": null}, "tag": {"type": "Simple", "value": "", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 29, 15, 53, 29, 982805), datetime.datetime(2025, 4, 29, 15, 53, 29, 982805), 0)
2025-04-29 15:53:29,989 - services.sync_service - INFO - 成功同步任务到系统任务: a42a909a-bc6f-4c5b-b964-48d5db784190
2025-04-29 15:53:29,991 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: a42a909a-bc6f-4c5b-b964-48d5db784190
2025-04-29 15:53:29,991 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: a42a909a-bc6f-4c5b-b964-48d5db784190
2025-04-29 15:53:29,993 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:29,994 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.2198秒
2025-04-29 15:53:30,004 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 96f0c938-c90a-4ea4-bf9b-dc67ec3088aa
2025-04-29 15:53:30,006 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:30,007 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:53:30,009 - sqlalchemy.engine.Engine - INFO - [cached since 0.05567s ago] ('96f0c938-c90a-4ea4-bf9b-dc67ec3088aa',)
2025-04-29 15:53:30,010 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 15:53:30,014 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 15:53:30,015 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:53:30,017 - sqlalchemy.engine.Engine - INFO - [cached since 0.05414s ago] ('null', '执行中', '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 15, 53, 30, 15713), '96f0c938-c90a-4ea4-bf9b-dc67ec3088aa')
2025-04-29 15:53:30,021 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:30,035 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 15:53:30,036 - services.sync_service - INFO - 正在创建选择AMR任务: a42a909a-bc6f-4c5b-b964-48d5db784190, 站点: TK01
2025-04-29 15:53:30,195 - services.sync_service - INFO - 成功为任务选择AMR: a42a909a-bc6f-4c5b-b964-48d5db784190, AMR: None
2025-04-29 15:53:30,198 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917125069969285121 的AMR选择结果
2025-04-29 15:53:30,203 - services.sync_service - INFO - 开始等待任务块 1917125069969285121 的AMR选择结果
2025-04-29 15:53:30,203 - services.sync_service - INFO - 正在获取任务块详情: 1917125069969285121
2025-04-29 15:53:30,306 - services.sync_service - INFO - 成功获取任务块详情: 1917125069969285121 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917125069969285121', 'taskId': '1917125069335945218', 'tenantId': 1000, 'vwedTaskId': 'a42a909a-bc6f-4c5b-b964-48d5db784190', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:53:30', 'updateTime': None}, 'timestamp': 1745913209885}
2025-04-29 15:53:30,308 - services.sync_service - DEBUG - 任务块 1917125069969285121 AMR选择未完成，已尝试 1 次
2025-04-29 15:53:30,798 - services.sync_service - INFO - 正在获取任务块详情: 1917125069969285121
2025-04-29 15:53:30,909 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:30,910 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:53:30,912 - sqlalchemy.engine.Engine - INFO - [generated in 0.00133s] ('a42a909a-bc6f-4c5b-b964-48d5db784190',)
2025-04-29 15:53:30,917 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:30,961 - services.sync_service - INFO - 成功获取任务块详情: 1917125069969285121 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917125069969285121', 'taskId': '1917125069335945218', 'tenantId': 1000, 'vwedTaskId': 'a42a909a-bc6f-4c5b-b964-48d5db784190', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:53:30', 'updateTime': None}, 'timestamp': 1745913210624}
2025-04-29 15:53:30,968 - services.sync_service - DEBUG - 任务块 1917125069969285121 AMR选择未完成，已尝试 2 次
2025-04-29 15:53:31,455 - services.sync_service - INFO - 正在获取任务块详情: 1917125069969285121
2025-04-29 15:53:31,518 - services.sync_service - INFO - 成功获取任务块详情: 1917125069969285121 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917125069969285121', 'taskId': '1917125069335945218', 'tenantId': 1000, 'vwedTaskId': 'a42a909a-bc6f-4c5b-b964-48d5db784190', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:53:30', 'updateTime': None}, 'timestamp': 1745913211180}
2025-04-29 15:53:31,519 - services.sync_service - DEBUG - 任务块 1917125069969285121 AMR选择未完成，已尝试 3 次
2025-04-29 15:53:31,921 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:31,921 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:53:31,922 - sqlalchemy.engine.Engine - INFO - [cached since 1.011s ago] ('a42a909a-bc6f-4c5b-b964-48d5db784190',)
2025-04-29 15:53:31,923 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:32,045 - services.sync_service - INFO - 正在获取任务块详情: 1917125069969285121
2025-04-29 15:53:32,333 - services.sync_service - INFO - 成功获取任务块详情: 1917125069969285121 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917125069969285121', 'taskId': '1917125069335945218', 'tenantId': 1000, 'vwedTaskId': 'a42a909a-bc6f-4c5b-b964-48d5db784190', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:53:30', 'updateTime': None}, 'timestamp': 1745913211975}
2025-04-29 15:53:32,336 - services.sync_service - DEBUG - 任务块 1917125069969285121 AMR选择未完成，已尝试 4 次
2025-04-29 15:53:32,820 - services.sync_service - INFO - 正在获取任务块详情: 1917125069969285121
2025-04-29 15:53:32,893 - services.sync_service - INFO - 成功获取任务块详情: 1917125069969285121 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917125069969285121', 'taskId': '1917125069335945218', 'tenantId': 1000, 'vwedTaskId': 'a42a909a-bc6f-4c5b-b964-48d5db784190', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:53:30', 'updateTime': None}, 'timestamp': 1745913212547}
2025-04-29 15:53:32,894 - services.sync_service - DEBUG - 任务块 1917125069969285121 AMR选择未完成，已尝试 5 次
2025-04-29 15:53:32,930 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:32,936 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:53:32,936 - sqlalchemy.engine.Engine - INFO - [cached since 2.026s ago] ('a42a909a-bc6f-4c5b-b964-48d5db784190',)
2025-04-29 15:53:32,938 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:33,415 - services.sync_service - INFO - 正在获取任务块详情: 1917125069969285121
2025-04-29 15:53:33,644 - services.sync_service - INFO - 成功获取任务块详情: 1917125069969285121 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917125069969285121', 'taskId': '1917125069335945218', 'tenantId': 1000, 'vwedTaskId': 'a42a909a-bc6f-4c5b-b964-48d5db784190', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:53:30', 'updateTime': None}, 'timestamp': 1745913213258}
2025-04-29 15:53:33,648 - services.sync_service - DEBUG - 任务块 1917125069969285121 AMR选择未完成，已尝试 6 次
2025-04-29 15:53:33,941 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:33,942 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:53:33,944 - sqlalchemy.engine.Engine - INFO - [cached since 3.034s ago] ('a42a909a-bc6f-4c5b-b964-48d5db784190',)
2025-04-29 15:53:33,947 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:34,160 - services.sync_service - INFO - 正在获取任务块详情: 1917125069969285121
2025-04-29 15:53:34,183 - services.sync_service - INFO - 成功获取任务块详情: 1917125069969285121 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917125069969285121', 'taskId': '1917125069335945218', 'tenantId': 1000, 'vwedTaskId': 'a42a909a-bc6f-4c5b-b964-48d5db784190', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:53:30', 'updateTime': None}, 'timestamp': 1745913213842}
2025-04-29 15:53:34,185 - services.sync_service - DEBUG - 任务块 1917125069969285121 AMR选择未完成，已尝试 7 次
2025-04-29 15:53:34,703 - services.sync_service - INFO - 正在获取任务块详情: 1917125069969285121
2025-04-29 15:53:34,795 - services.sync_service - INFO - 成功获取任务块详情: 1917125069969285121 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917125069969285121', 'taskId': '1917125069335945218', 'tenantId': 1000, 'vwedTaskId': 'a42a909a-bc6f-4c5b-b964-48d5db784190', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:53:30', 'updateTime': None}, 'timestamp': 1745913214456}
2025-04-29 15:53:34,800 - services.sync_service - DEBUG - 任务块 1917125069969285121 AMR选择未完成，已尝试 8 次
2025-04-29 15:53:34,970 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:34,970 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:53:34,972 - sqlalchemy.engine.Engine - INFO - [cached since 4.061s ago] ('a42a909a-bc6f-4c5b-b964-48d5db784190',)
2025-04-29 15:53:34,976 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:35,327 - services.sync_service - INFO - 正在获取任务块详情: 1917125069969285121
2025-04-29 15:53:35,479 - services.sync_service - INFO - 成功获取任务块详情: 1917125069969285121 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917125069969285121', 'taskId': '1917125069335945218', 'tenantId': 1000, 'vwedTaskId': 'a42a909a-bc6f-4c5b-b964-48d5db784190', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:53:30', 'updateTime': None}, 'timestamp': 1745913215132}
2025-04-29 15:53:35,480 - services.sync_service - DEBUG - 任务块 1917125069969285121 AMR选择未完成，已尝试 9 次
2025-04-29 15:53:35,998 - services.sync_service - INFO - 正在获取任务块详情: 1917125069969285121
2025-04-29 15:53:35,999 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:35,999 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:53:36,001 - sqlalchemy.engine.Engine - INFO - [cached since 5.09s ago] ('a42a909a-bc6f-4c5b-b964-48d5db784190',)
2025-04-29 15:53:36,002 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:36,039 - services.sync_service - INFO - 成功获取任务块详情: 1917125069969285121 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917125069969285121', 'taskId': '1917125069335945218', 'tenantId': 1000, 'vwedTaskId': 'a42a909a-bc6f-4c5b-b964-48d5db784190', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:53:30', 'updateTime': None}, 'timestamp': 1745913215703}
2025-04-29 15:53:36,040 - services.sync_service - INFO - 任务块 1917125069969285121 AMR选择未完成(amrId/appointAmrId/appointAmrGroupId均为空)，已尝试 10 次，继续等待...
2025-04-29 15:53:36,552 - services.sync_service - INFO - 正在获取任务块详情: 1917125069969285121
2025-04-29 15:53:36,655 - services.sync_service - INFO - 成功获取任务块详情: 1917125069969285121 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917125069969285121', 'taskId': '1917125069335945218', 'tenantId': 1000, 'vwedTaskId': 'a42a909a-bc6f-4c5b-b964-48d5db784190', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:53:30', 'updateTime': None}, 'timestamp': 1745913216319}
2025-04-29 15:53:36,658 - services.sync_service - DEBUG - 任务块 1917125069969285121 AMR选择未完成，已尝试 11 次
2025-04-29 15:53:37,018 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:37,020 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:53:37,021 - sqlalchemy.engine.Engine - INFO - [cached since 6.111s ago] ('a42a909a-bc6f-4c5b-b964-48d5db784190',)
2025-04-29 15:53:37,028 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:37,159 - services.sync_service - INFO - 正在获取任务块详情: 1917125069969285121
2025-04-29 15:53:37,213 - services.sync_service - INFO - 成功获取任务块详情: 1917125069969285121 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917125069969285121', 'taskId': '1917125069335945218', 'tenantId': 1000, 'vwedTaskId': 'a42a909a-bc6f-4c5b-b964-48d5db784190', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:53:30', 'updateTime': None}, 'timestamp': 1745913216846}
2025-04-29 15:53:37,216 - services.sync_service - DEBUG - 任务块 1917125069969285121 AMR选择未完成，已尝试 12 次
2025-04-29 15:53:37,690 - services.sync_service - INFO - 正在获取任务块详情: 1917125069969285121
2025-04-29 15:53:37,735 - services.sync_service - INFO - 成功获取任务块详情: 1917125069969285121 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917125069969285121', 'taskId': '1917125069335945218', 'tenantId': 1000, 'vwedTaskId': 'a42a909a-bc6f-4c5b-b964-48d5db784190', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:53:30', 'updateTime': None}, 'timestamp': 1745913217398}
2025-04-29 15:53:37,739 - services.sync_service - DEBUG - 任务块 1917125069969285121 AMR选择未完成，已尝试 13 次
2025-04-29 15:53:38,047 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:38,050 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:53:38,051 - sqlalchemy.engine.Engine - INFO - [cached since 7.141s ago] ('a42a909a-bc6f-4c5b-b964-48d5db784190',)
2025-04-29 15:53:38,053 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:38,250 - services.sync_service - INFO - 正在获取任务块详情: 1917125069969285121
2025-04-29 15:53:38,281 - services.sync_service - INFO - 成功获取任务块详情: 1917125069969285121 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917125069969285121', 'taskId': '1917125069335945218', 'tenantId': 1000, 'vwedTaskId': 'a42a909a-bc6f-4c5b-b964-48d5db784190', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:53:30', 'updateTime': '2025-04-29 15:53:38'}, 'timestamp': 1745913217942}
2025-04-29 15:53:38,282 - services.sync_service - INFO - 任务块 1917125069969285121 已选择AMR: 1912328602264645634，共尝试 14 次
2025-04-29 15:53:38,282 - services.execution.handlers.robot_scheduling - INFO - 准备更新任务 a42a909a-bc6f-4c5b-b964-48d5db784190 的机器人ID: 1912328602264645634
2025-04-29 15:53:38,285 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:38,286 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.agv_id 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:53:38,287 - sqlalchemy.engine.Engine - INFO - [generated in 0.00166s] ('a42a909a-bc6f-4c5b-b964-48d5db784190',)
2025-04-29 15:53:38,289 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET agv_id=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 15:53:38,291 - sqlalchemy.engine.Engine - INFO - [generated in 0.00236s] ('1912328602264645634', datetime.datetime(2025, 4, 29, 15, 53, 38, 289203), 'a42a909a-bc6f-4c5b-b964-48d5db784190')
2025-04-29 15:53:38,293 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:38,308 - services.execution.handlers.robot_scheduling - INFO - 成功更新任务记录 a42a909a-bc6f-4c5b-b964-48d5db784190 的agv_id字段: 1912328602264645634
2025-04-29 15:53:38,310 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b2(ID:2) 选择的机器人: 1912328602264645634
2025-04-29 15:53:38,313 - services.execution.handlers.robot_scheduling - INFO - 块 b2(ID:2) 有 1 个子块
2025-04-29 15:53:38,314 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b2 影响的块ID: [3]
2025-04-29 15:53:38,315 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b2(ID:2) 选择的机器人: 1912328602264645634
2025-04-29 15:53:38,317 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 1 个
2025-04-29 15:53:38,319 - services.execution.handlers.robot_scheduling - INFO - 1. b3(ID:3, 类型:CAgvOperationBp, 关系:direct_child)
2025-04-29 15:53:38,320 - services.execution.handlers.robot_scheduling - INFO - 开始执行选择机器人块 b2 的子块
2025-04-29 15:53:38,321 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 2, 分支: default
2025-04-29 15:53:38,322 - services.execution.block_executor - INFO - 开始执行块 2 的 default 分支下的 1 个子块
2025-04-29 15:53:38,326 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b3, ID: 3, 类型: CAgvOperationBp
2025-04-29 15:53:38,327 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:38,329 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:53:38,331 - sqlalchemy.engine.Engine - INFO - [cached since 8.395s ago] ('3a432311-b903-4f7e-83aa-d7fc24ececdd', 'b3', '3', '', '{"targetSiteLabel": {"type": "Simple", "value": "wqlo", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"targetSiteLabel": "wqlo", "scriptName": "JackUnload"}', '{"agv_for_block_3": "1912328602264645634", "agv_for_b3": "1912328602264645634"}', 'CAgvOperationBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a42a909a-bc6f-4c5b-b964-48d5db784190', datetime.datetime(2025, 4, 29, 15, 53, 38, 326290), <TaskBlockRecordStatus.RUNNING: 1001>, '{"targetSiteLabel": {"type": "Simple", "value": "wqlo", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"agv_for_block_3": "1912328602264645634", "agv_for_b3": "1912328602264645634"}', 1, datetime.datetime(2025, 4, 29, 15, 53, 38, 329934), datetime.datetime(2025, 4, 29, 15, 53, 38, 329934), 0)
2025-04-29 15:53:38,332 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:38,340 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: 3a432311-b903-4f7e-83aa-d7fc24ececdd
2025-04-29 15:53:38,340 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:38,344 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:53:38,347 - sqlalchemy.engine.Engine - INFO - [cached since 8.394s ago] ('3a432311-b903-4f7e-83aa-d7fc24ececdd',)
2025-04-29 15:53:38,349 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 15:53:38,350 - services.execution.block_executor - INFO - 为块 b3 存储输出: ['selectedAgvId']
2025-04-29 15:53:38,352 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:53:38,355 - sqlalchemy.engine.Engine - INFO - [generated in 0.00284s] ('{"selectedAgvId": "1912328602264645634"}', '执行中', "{'agv_for_block_3': '1912328602264645634', 'agv_for_b3': '1912328602264645634'}", '{"blocks": {"b3": {"selectedAgvId": "1912328602264645634"}}}', '执行中', datetime.datetime(2025, 4, 29, 15, 53, 38, 352788), '3a432311-b903-4f7e-83aa-d7fc24ececdd')
2025-04-29 15:53:38,356 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:38,368 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 15:53:38,372 - services.execution.handlers.robot_scheduling - INFO - 找到块 b3(ID:3) 专用的机器人ID: 1912328602264645634
2025-04-29 15:53:38,374 - services.execution.handlers.robot_scheduling - INFO - 执行机器人通用动作，块 b3(ID:3) 使用机器人: 1912328602264645634, 目标站点: wqlo
2025-04-29 15:53:38,374 - services.sync_service - INFO - 正在为任务添加动作: a42a909a-bc6f-4c5b-b964-48d5db784190, 站点: wqlo, 动作: 移动
2025-04-29 15:53:38,457 - services.sync_service - WARNING - 为任务添加动作失败: 任务块id不能为空
2025-04-29 15:53:38,459 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:38,460 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:53:38,461 - sqlalchemy.engine.Engine - INFO - [generated in 0.00077s] ('f6b2c36b-666d-4096-93f6-a271d60eb343', 3, '{"success": false, "message": "机器人通用动作执行异常: \'ApiResponse\' object has no attribute \'get\'"}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a42a909a-bc6f-4c5b-b964-48d5db784190', datetime.datetime(2025, 4, 29, 15, 53, 38, 460899), datetime.datetime(2025, 4, 29, 15, 53, 38, 460899), 0)
2025-04-29 15:53:38,463 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:38,476 - services.execution.block_executor - ERROR - 子块 3 执行失败: 机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 309, in execute_children
    result = await handler.execute(child_block, parsed_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\robot_scheduling.py", line 726, in execute
    loop_result = await executor.execute_children(block, "default")
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:53:38,483 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:38,485 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:53:38,497 - sqlalchemy.engine.Engine - INFO - [cached since 8.544s ago] ('3a432311-b903-4f7e-83aa-d7fc24ececdd',)
2025-04-29 15:53:38,499 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 15:53:38,500 - services.execution.block_executor - INFO - 为块 b3 存储输出: ['selectedAgvId']
2025-04-29 15:53:38,500 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:53:38,503 - sqlalchemy.engine.Engine - INFO - [generated in 0.00221s] (datetime.datetime(2025, 4, 29, 15, 53, 38, 500800), "机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'", <TaskBlockRecordStatus.FAILED: 2000>, "机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'", datetime.datetime(2025, 4, 29, 15, 53, 38, 500800), '3a432311-b903-4f7e-83aa-d7fc24ececdd')
2025-04-29 15:53:38,511 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:38,524 - services.execution.handlers.robot_scheduling - ERROR - 选择机器人块 b2 的子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 309, in execute_children
    result = await handler.execute(child_block, parsed_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\robot_scheduling.py", line 751, in execute
    logger.error(f"选择机器人块 {current_block_name} 的子块执行失败: {loop_result.get('message')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:53:38,531 - services.sync_service - INFO - 正在封口任务: 1917125069969285121
2025-04-29 15:53:38,607 - services.sync_service - INFO - 成功封口任务: 1917125069969285121
2025-04-29 15:53:38,609 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:38,613 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:53:38,615 - sqlalchemy.engine.Engine - INFO - [cached since 0.1552s ago] ('26e80fee-9feb-4ab8-aecf-dff833e981e2', 3, '{"success": false, "message": "选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: \'ApiResponse\' object has no attribute \'get\'，失败块ID: 3", "output": {"sele ... (203 characters truncated) ... ldrenResult": {"success": false, "message": "子块 3 执行失败: 机器人通用动作执行异常: \'ApiResponse\' object has no attribute \'get\'", "block_id": 3, "output": {}}}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a42a909a-bc6f-4c5b-b964-48d5db784190', datetime.datetime(2025, 4, 29, 15, 53, 38, 613912), datetime.datetime(2025, 4, 29, 15, 53, 38, 613912), 0)
2025-04-29 15:53:38,620 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:38,633 - services.execution.block_executor - ERROR - 子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'，失败块ID: 3
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:53:38,635 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:38,640 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:53:38,641 - sqlalchemy.engine.Engine - INFO - [cached since 8.688s ago] ('96f0c938-c90a-4ea4-bf9b-dc67ec3088aa',)
2025-04-29 15:53:38,642 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 15:53:38,643 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-29 15:53:38,647 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:53:38,650 - sqlalchemy.engine.Engine - INFO - [generated in 0.00298s] ('{"selectedAgvId": "1912328602264645634"}', datetime.datetime(2025, 4, 29, 15, 53, 38, 647831), "选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'，失败块ID: 3", <TaskBlockRecordStatus.FAILED: 2000>, "{'agv_for_block_3': '1912328602264645634', 'agv_for_b3': '1912328602264645634'}", '{"blocks": {"b2": {"selectedAgvId": "1912328602264645634"}}}', "选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'，失败块ID: 3", datetime.datetime(2025, 4, 29, 15, 53, 38, 647831), '96f0c938-c90a-4ea4-bf9b-dc67ec3088aa')
2025-04-29 15:53:38,657 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:38,666 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:38,671 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:53:38,676 - sqlalchemy.engine.Engine - INFO - [cached since 0.2152s ago] ('196099fd-e37a-4b03-a128-a435dee9fbcb', 3, '{"success": false, "message": "子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: \'ApiResponse\' object has no attribute \'get\'，失败块ID: 3", "bloc ... (229 characters truncated) ... ldrenResult": {"success": false, "message": "子块 3 执行失败: 机器人通用动作执行异常: \'ApiResponse\' object has no attribute \'get\'", "block_id": 3, "output": {}}}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a42a909a-bc6f-4c5b-b964-48d5db784190', datetime.datetime(2025, 4, 29, 15, 53, 38, 671182), datetime.datetime(2025, 4, 29, 15, 53, 38, 671182), 0)
2025-04-29 15:53:38,684 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:38,695 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:38,699 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:53:38,703 - sqlalchemy.engine.Engine - INFO - [cached since 8.75s ago] ('8db758cd-1239-44ff-a001-4057234a0319',)
2025-04-29 15:53:38,705 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 15:53:38,713 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 15:53:38,716 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:53:38,720 - sqlalchemy.engine.Engine - INFO - [generated in 0.00358s] (datetime.datetime(2025, 4, 29, 15, 53, 38, 715189), "子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'，失败块ID: 3", <TaskBlockRecordStatus.FAILED: 2000>, "{'agv_for_block_3': '1912328602264645634', 'agv_for_b3': '1912328602264645634'}", "子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'，失败块ID: 3", datetime.datetime(2025, 4, 29, 15, 53, 38, 716175), '8db758cd-1239-44ff-a001-4057234a0319')
2025-04-29 15:53:38,725 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:38,734 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:53:38,735 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 15:53:38,739 - sqlalchemy.engine.Engine - INFO - [generated in 0.00484s] (datetime.datetime(2025, 4, 29, 15, 53, 38, 733232), "子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作执行异常: 'ApiResponse' object has no attribute 'get'，失败块ID: 3", <TaskStatus.FAILED: 2000>, 8819, 1, datetime.datetime(2025, 4, 29, 15, 53, 38, 735531), 'a42a909a-bc6f-4c5b-b964-48d5db784190')
2025-04-29 15:53:38,745 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:53:38,752 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: a42a909a-bc6f-4c5b-b964-48d5db784190, 结果: False
2025-04-29 15:54:27,658 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:54:27,661 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:54:27,664 - sqlalchemy.engine.Engine - INFO - [cached since 120.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 54, 27, 658058))
2025-04-29 15:54:27,669 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:54:27,673 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 15:54:27,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 15:54:27,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 15:54:27,675 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 15:54:27,677 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 15:54:27,677 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 15:54:27,680 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:54:27,682 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 15:54:27,683 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 15:54:27,690 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 15:54:27,690 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 15:54:27,691 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 15:54:27,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:54:27,704 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:54:27,704 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:54:27,709 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 15:54:27,711 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 15:54:27,712 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 15:54:27,715 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:54:27,717 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 15:54:27,717 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 15:54:27,719 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 15:54:27,719 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:54:27,726 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:54:42,741 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 15:54:42,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 15:54:42,747 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:54:42,749 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 15:54:42,753 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 15:54:42,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:55:27,700 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:55:27,702 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:55:27,703 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 55, 27, 699211))
2025-04-29 15:55:27,705 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:55:27,792 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 15:55:27,795 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 15:55:27,796 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 15:55:27,797 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 15:55:27,797 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 15:55:27,797 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 15:55:27,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:55:27,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 15:55:27,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 15:55:27,799 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 15:55:27,800 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 15:55:27,800 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 15:55:27,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:55:27,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:55:27,810 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:55:27,811 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 15:55:27,811 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 15:55:27,812 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 15:55:27,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:55:27,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 15:55:27,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 15:55:27,813 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 15:55:27,813 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:55:27,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:55:42,822 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 15:55:42,823 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 15:55:42,823 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:55:42,823 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 15:55:42,823 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 15:55:42,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:55:57,067 - app - INFO - 应用程序关闭中...
2025-04-29 15:55:57,067 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 15:55:57,067 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 15:55:57,067 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 15:55:57,067 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 15:55:57,067 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 15:55:57,068 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 15:55:57,068 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 15:55:57,068 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 15:55:57,068 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 15:55:57,069 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 15:55:57,075 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 15:55:57,078 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 15:55:57,080 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 15:55:57,081 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 15:55:57,082 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 15:55:57,083 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:55:57,083 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-29 15:55:57,083 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:55:57,090 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:55:57,090 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-29 15:55:57,090 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 15:55:57,092 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 15:55:57,096 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-29 15:55:57,097 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-29 15:55:57,098 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 15:55:57,099 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 15:55:57,099 - app - INFO - 增强版任务调度器已停止
2025-04-29 15:55:57,099 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 15:55:57,101 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 15:55:57,101 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 15:55:57,102 - data.session - INFO - 数据库连接已关闭
2025-04-29 15:55:58,521 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 15:55:58,589 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:55:58,593 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 15:55:58,664 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 15:55:58,710 - data.session - INFO - 正在初始化数据库...
2025-04-29 15:55:58,750 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 15:55:58,768 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 15:55:58,769 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:55:58,770 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 15:55:58,771 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:55:58,771 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 15:55:58,772 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:55:58,773 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:55:58,773 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 15:55:58,773 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:55:58,776 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 15:55:58,776 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:55:58,778 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 15:55:58,782 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:55:58,784 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 15:55:58,791 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:55:58,799 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 15:55:58,799 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:55:58,801 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 15:55:58,814 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:55:58,815 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 15:55:58,815 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:55:58,816 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 15:55:58,817 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:55:58,831 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 15:55:58,831 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:55:58,841 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 15:55:58,843 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:55:58,844 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 15:55:58,846 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:55:58,849 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:55:58,851 - data.session - INFO - 数据库表初始化完成
2025-04-29 15:55:59,213 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 15:55:59,214 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 15:55:59,214 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 15:55:59,214 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 15:55:59,214 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 15:55:59,214 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 15:55:59,215 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 15:55:59,217 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 15:55:59,217 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 15:55:59,217 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 15:55:59,218 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:55:59,218 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 15:55:59,218 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 15:55:59,219 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:55:59,220 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:55:59,220 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:55:59,221 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:55:59,221 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:55:59,221 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 15:55:59,221 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 15:55:59,225 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 15:55:59,233 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 15:55:59,234 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 15:55:59,237 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 15:55:59,240 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 15:55:59,244 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 15:55:59,245 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 15:55:59,246 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:55:59,257 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 15:55:59,258 - sqlalchemy.engine.Engine - INFO - [generated in 0.00063s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 15:55:59,260 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 15:55:59,263 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:55:59,264 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 15:55:59,265 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 15:55:59,266 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 15:55:59,266 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:55:59,269 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 15:55:59,270 - sqlalchemy.engine.Engine - INFO - [generated in 0.00126s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 15:55:59,275 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:55:59,279 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 15:55:59,279 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 15:55:59,280 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 15:55:59,281 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 15:55:59,281 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 15:55:59,283 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:55:59,284 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:55:59,285 - sqlalchemy.engine.Engine - INFO - [generated in 0.00107s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 55, 59, 266960))
2025-04-29 15:55:59,286 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:56:59,241 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 15:56:59,242 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 15:56:59,242 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:56:59,244 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 15:56:59,244 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 15:56:59,246 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 15:56:59,247 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:56:59,247 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 15:56:59,248 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 15:56:59,248 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 15:56:59,248 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 15:56:59,249 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 15:56:59,249 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:56:59,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 15:56:59,252 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 15:56:59,253 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 15:56:59,253 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 15:56:59,253 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 15:56:59,257 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:56:59,259 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:56:59,260 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:56:59,261 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 15:56:59,261 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 15:56:59,263 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 15:56:59,264 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:56:59,264 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 15:56:59,264 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 15:56:59,265 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 15:56:59,265 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:56:59,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:56:59,272 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:56:59,272 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:56:59,273 - sqlalchemy.engine.Engine - INFO - [cached since 59.99s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 56, 59, 271137))
2025-04-29 15:56:59,274 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:25,631 - app - INFO - 应用程序关闭中...
2025-04-29 15:57:25,631 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 15:57:25,632 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 15:57:25,632 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 15:57:25,633 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 15:57:25,634 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 15:57:25,634 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 15:57:25,635 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 15:57:25,638 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 15:57:25,642 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 15:57:25,644 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 15:57:25,645 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 15:57:25,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:57:25,646 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 15:57:25,647 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 15:57:25,647 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 15:57:25,647 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 15:57:25,647 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 15:57:25,647 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 15:57:25,647 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 15:57:25,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:57:25,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:57:25,648 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 15:57:25,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 15:57:25,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 15:57:25,649 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 15:57:25,649 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 15:57:25,649 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 15:57:25,649 - app - INFO - 增强版任务调度器已停止
2025-04-29 15:57:25,650 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 15:57:25,654 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 15:57:25,655 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 15:57:25,656 - data.session - INFO - 数据库连接已关闭
2025-04-29 15:57:27,036 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 15:57:27,102 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:57:27,106 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 15:57:27,169 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 15:57:27,219 - data.session - INFO - 正在初始化数据库...
2025-04-29 15:57:27,251 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 15:57:27,274 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 15:57:27,277 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:27,290 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 15:57:27,297 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:27,303 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 15:57:27,303 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:27,306 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:27,306 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 15:57:27,308 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:27,310 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 15:57:27,323 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:27,331 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 15:57:27,338 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:27,339 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 15:57:27,340 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:27,348 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 15:57:27,352 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:27,352 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 15:57:27,353 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:27,356 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 15:57:27,358 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:27,359 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 15:57:27,364 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:27,366 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 15:57:27,368 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:27,370 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 15:57:27,371 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:27,376 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 15:57:27,381 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:27,383 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:27,384 - data.session - INFO - 数据库表初始化完成
2025-04-29 15:57:27,741 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 15:57:27,742 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 15:57:27,757 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 15:57:27,769 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 15:57:27,771 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 15:57:27,772 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 15:57:27,773 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 15:57:27,773 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 15:57:27,773 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 15:57:27,773 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 15:57:27,773 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:57:27,774 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 15:57:27,774 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 15:57:27,776 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:57:27,776 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:57:27,776 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:57:27,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:57:27,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:57:27,777 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 15:57:27,777 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 15:57:27,779 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 15:57:27,779 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 15:57:27,780 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 15:57:27,781 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 15:57:27,785 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 15:57:27,788 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 15:57:27,788 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 15:57:27,789 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:27,813 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 15:57:27,818 - sqlalchemy.engine.Engine - INFO - [generated in 0.00543s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 15:57:27,829 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 15:57:27,835 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:27,838 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 15:57:27,839 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 15:57:27,839 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 15:57:27,840 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:27,841 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 15:57:27,853 - sqlalchemy.engine.Engine - INFO - [generated in 0.01233s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 15:57:27,869 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:27,870 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 15:57:27,870 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 15:57:27,871 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 15:57:27,873 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 15:57:27,873 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 15:57:27,880 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:27,882 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:57:27,885 - sqlalchemy.engine.Engine - INFO - [generated in 0.00302s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 57, 27, 839779))
2025-04-29 15:57:27,889 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:36,045 - app - INFO - 应用程序关闭中...
2025-04-29 15:57:36,046 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 15:57:36,046 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 15:57:36,047 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 15:57:36,048 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 15:57:36,049 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 15:57:36,050 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 15:57:36,051 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 15:57:36,052 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 15:57:36,054 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 15:57:36,056 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 15:57:36,058 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 15:57:36,058 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:57:36,060 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 15:57:36,061 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 15:57:36,061 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 15:57:36,063 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 15:57:36,063 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 15:57:36,063 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 15:57:36,063 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 15:57:36,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:57:36,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:57:36,064 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 15:57:36,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 15:57:36,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 15:57:36,065 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 15:57:36,066 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 15:57:36,066 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 15:57:36,067 - app - INFO - 增强版任务调度器已停止
2025-04-29 15:57:36,067 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 15:57:36,069 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 15:57:36,069 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 15:57:36,070 - data.session - INFO - 数据库连接已关闭
2025-04-29 15:57:38,013 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 15:57:38,071 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:57:38,072 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 15:57:38,783 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 15:57:38,852 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:57:38,861 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 15:57:38,929 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 15:57:38,978 - data.session - INFO - 正在初始化数据库...
2025-04-29 15:57:39,014 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 15:57:39,039 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 15:57:39,039 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:39,040 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 15:57:39,041 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:39,043 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 15:57:39,043 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:39,044 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:39,044 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 15:57:39,047 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:39,049 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 15:57:39,050 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:39,051 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 15:57:39,051 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:39,053 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 15:57:39,053 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:39,054 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 15:57:39,054 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:39,055 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 15:57:39,056 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:39,057 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 15:57:39,058 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:39,060 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 15:57:39,061 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:39,062 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 15:57:39,064 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:39,067 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 15:57:39,069 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:39,074 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 15:57:39,075 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:57:39,081 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:39,083 - data.session - INFO - 数据库表初始化完成
2025-04-29 15:57:39,431 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 15:57:39,431 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 15:57:39,432 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 15:57:39,432 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 15:57:39,432 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 15:57:39,432 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 15:57:39,433 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 15:57:39,433 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 15:57:39,433 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 15:57:39,434 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 15:57:39,434 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:57:39,434 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 15:57:39,434 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 15:57:39,436 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:57:39,436 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:57:39,436 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:57:39,436 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:57:39,436 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:57:39,437 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 15:57:39,437 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 15:57:39,459 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 15:57:39,460 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 15:57:39,460 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 15:57:39,462 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 15:57:39,462 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 15:57:39,464 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 15:57:39,464 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 15:57:39,466 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:39,475 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 15:57:39,475 - sqlalchemy.engine.Engine - INFO - [generated in 0.00056s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 15:57:39,477 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 15:57:39,477 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:39,479 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 15:57:39,479 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 15:57:39,480 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 15:57:39,480 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:39,482 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 15:57:39,483 - sqlalchemy.engine.Engine - INFO - [generated in 0.00066s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 15:57:39,506 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:39,507 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 15:57:39,508 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:39,509 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:57:39,513 - sqlalchemy.engine.Engine - INFO - [generated in 0.00412s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 57, 39, 480824))
2025-04-29 15:57:39,515 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 15:57:39,517 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 15:57:39,517 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 15:57:39,522 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 15:57:39,530 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:45,340 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 15:57:45,343 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:45,344 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:57:45,346 - sqlalchemy.engine.Engine - INFO - [generated in 0.00138s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:57:45,347 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:45,349 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:45,350 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:57:45,350 - sqlalchemy.engine.Engine - INFO - [cached since 0.005655s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:57:45,351 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:45,352 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 15:57:45,352 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 15:57:45,352 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 15:57:45,353 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:45,354 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 15:57:45,355 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] (None, datetime.datetime(2025, 4, 29, 15, 57, 45, 354304), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 15:57:45,356 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:45,372 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:45,373 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:57:45,373 - sqlalchemy.engine.Engine - INFO - [cached since 0.02917s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:57:45,376 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:57:45,376 - sqlalchemy.engine.Engine - INFO - [generated in 0.00098s] ('410e5c33-c10d-4c85-868d-71f9e5b9b868', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 5, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (713 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 15, 57, 45, 352304), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 15, 57, 45, 375703), datetime.datetime(2025, 4, 29, 15, 57, 45, 376704), 0)
2025-04-29 15:57:45,378 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:45,388 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:45,389 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:57:45,389 - sqlalchemy.engine.Engine - INFO - [generated in 0.00061s] ('410e5c33-c10d-4c85-868d-71f9e5b9b868',)
2025-04-29 15:57:45,391 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:45,392 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 410e5c33-c10d-4c85-868d-71f9e5b9b868 (优先级 1) 添加到队列 0
2025-04-29 15:57:45,398 - services.sync_service - INFO - 正在同步创建任务到天风系统: 410e5c33-c10d-4c85-868d-71f9e5b9b868
2025-04-29 15:57:45,398 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"410e5c33-c10d-4c85-868d-71f9e5b9b868","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 15:57:45","sceneId":"1912043207186550785","needAmr":1}
2025-04-29 15:57:45,471 - services.sync_service - INFO - 成功同步任务到系统任务: 410e5c33-c10d-4c85-868d-71f9e5b9b868
2025-04-29 15:57:45,472 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 410e5c33-c10d-4c85-868d-71f9e5b9b868, 优先级: 1
2025-04-29 15:57:45,472 - services.execution.task_executor - DEBUG - 任务 410e5c33-c10d-4c85-868d-71f9e5b9b868 设置超时时间: 3600秒
2025-04-29 15:57:45,472 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 410e5c33-c10d-4c85-868d-71f9e5b9b868
2025-04-29 15:57:45,473 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 410e5c33-c10d-4c85-868d-71f9e5b9b868
2025-04-29 15:57:45,473 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1332秒
2025-04-29 15:57:45,474 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:45,474 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:57:45,477 - sqlalchemy.engine.Engine - INFO - [cached since 0.0879s ago] ('410e5c33-c10d-4c85-868d-71f9e5b9b868',)
2025-04-29 15:57:45,478 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:57:45,480 - sqlalchemy.engine.Engine - INFO - [cached since 0.1359s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:57:45,482 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 15:57:45,483 - sqlalchemy.engine.Engine - INFO - [generated in 0.00056s] (datetime.datetime(2025, 4, 29, 15, 57, 45, 482475), datetime.datetime(2025, 4, 29, 15, 57, 45, 482475), '410e5c33-c10d-4c85-868d-71f9e5b9b868')
2025-04-29 15:57:45,484 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:45,491 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:45,492 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 15:57:45,493 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 57, 45, 492920), '410e5c33-c10d-4c85-868d-71f9e5b9b868')
2025-04-29 15:57:45,494 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:45,501 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 15:57:45,503 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:45,504 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:57:45,506 - sqlalchemy.engine.Engine - INFO - [generated in 0.00148s] ('5e61f8cb-2086-4166-8e12-64f957c71996', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '410e5c33-c10d-4c85-868d-71f9e5b9b868', datetime.datetime(2025, 4, 29, 15, 57, 45, 502920), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 15, 57, 45, 504919), datetime.datetime(2025, 4, 29, 15, 57, 45, 504919), 0)
2025-04-29 15:57:45,510 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:45,518 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:45,523 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:57:45,523 - sqlalchemy.engine.Engine - INFO - [generated in 0.00060s] ('5e61f8cb-2086-4166-8e12-64f957c71996',)
2025-04-29 15:57:45,525 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 15:57:45,525 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 15:57:45,526 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:57:45,526 - sqlalchemy.engine.Engine - INFO - [generated in 0.00061s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 15, 57, 45, 526921), '5e61f8cb-2086-4166-8e12-64f957c71996')
2025-04-29 15:57:45,528 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:45,536 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 15:57:45,536 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 15:57:45,536 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b2, ID: 2, 类型: CSelectAgvBp
2025-04-29 15:57:45,538 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:45,539 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:57:45,539 - sqlalchemy.engine.Engine - INFO - [cached since 0.03423s ago] ('5c4d1655-a73e-4e52-a49e-3871e0dba77a', 'b2', '2', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}, "vehicle": {"type": "Simple", "value": "", "required": null}, "priority": {"type": "Simple", "value": "1", "required": null}, "tag": {"type": "Simple", "value": "", "required": null}}', '{"keyRoute": "TK01", "vehicle": "", "priority": "1", "tag": ""}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '410e5c33-c10d-4c85-868d-71f9e5b9b868', datetime.datetime(2025, 4, 29, 15, 57, 45, 536998), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}, "vehicle": {"type": "Simple", "value": "", "required": null}, "priority": {"type": "Simple", "value": "1", "required": null}, "tag": {"type": "Simple", "value": "", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 29, 15, 57, 45, 539006), datetime.datetime(2025, 4, 29, 15, 57, 45, 539006), 0)
2025-04-29 15:57:45,541 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:45,547 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 5c4d1655-a73e-4e52-a49e-3871e0dba77a
2025-04-29 15:57:45,547 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:45,549 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:57:45,549 - sqlalchemy.engine.Engine - INFO - [cached since 0.02585s ago] ('5c4d1655-a73e-4e52-a49e-3871e0dba77a',)
2025-04-29 15:57:45,551 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 15:57:45,551 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 15:57:45,551 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:57:45,552 - sqlalchemy.engine.Engine - INFO - [cached since 0.02497s ago] ('null', '执行中', '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 15, 57, 45, 551004), '5c4d1655-a73e-4e52-a49e-3871e0dba77a')
2025-04-29 15:57:45,553 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:45,560 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 15:57:45,560 - services.sync_service - INFO - 正在创建选择AMR任务: 410e5c33-c10d-4c85-868d-71f9e5b9b868, 站点: TK01
2025-04-29 15:57:45,754 - services.sync_service - INFO - 成功为任务选择AMR: 410e5c33-c10d-4c85-868d-71f9e5b9b868, AMR: None
2025-04-29 15:57:45,760 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917126142087913474 的AMR选择结果
2025-04-29 15:57:45,760 - services.sync_service - INFO - 开始等待任务块 1917126142087913474 的AMR选择结果
2025-04-29 15:57:45,761 - services.sync_service - INFO - 正在获取任务块详情: 1917126142087913474
2025-04-29 15:57:45,798 - services.sync_service - INFO - 成功获取任务块详情: 1917126142087913474 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917126142087913474', 'taskId': '1917126140913508353', 'tenantId': 1000, 'vwedTaskId': '410e5c33-c10d-4c85-868d-71f9e5b9b868', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:57:45', 'updateTime': None}, 'timestamp': 1745913465459}
2025-04-29 15:57:45,800 - services.sync_service - DEBUG - 任务块 1917126142087913474 AMR选择未完成，已尝试 1 次
2025-04-29 15:57:46,328 - services.sync_service - INFO - 正在获取任务块详情: 1917126142087913474
2025-04-29 15:57:46,348 - services.sync_service - INFO - 成功获取任务块详情: 1917126142087913474 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917126142087913474', 'taskId': '1917126140913508353', 'tenantId': 1000, 'vwedTaskId': '410e5c33-c10d-4c85-868d-71f9e5b9b868', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:57:45', 'updateTime': None}, 'timestamp': 1745913466010}
2025-04-29 15:57:46,349 - services.sync_service - DEBUG - 任务块 1917126142087913474 AMR选择未完成，已尝试 2 次
2025-04-29 15:57:46,484 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:46,485 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:57:46,487 - sqlalchemy.engine.Engine - INFO - [generated in 0.00123s] ('410e5c33-c10d-4c85-868d-71f9e5b9b868',)
2025-04-29 15:57:46,488 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:46,875 - services.sync_service - INFO - 正在获取任务块详情: 1917126142087913474
2025-04-29 15:57:47,089 - services.sync_service - INFO - 成功获取任务块详情: 1917126142087913474 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917126142087913474', 'taskId': '1917126140913508353', 'tenantId': 1000, 'vwedTaskId': '410e5c33-c10d-4c85-868d-71f9e5b9b868', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:57:45', 'updateTime': None}, 'timestamp': 1745913466752}
2025-04-29 15:57:47,090 - services.sync_service - DEBUG - 任务块 1917126142087913474 AMR选择未完成，已尝试 3 次
2025-04-29 15:57:47,478 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:47,479 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:57:47,493 - sqlalchemy.engine.Engine - INFO - [cached since 1.008s ago] ('410e5c33-c10d-4c85-868d-71f9e5b9b868',)
2025-04-29 15:57:47,495 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:47,586 - services.sync_service - INFO - 正在获取任务块详情: 1917126142087913474
2025-04-29 15:57:47,691 - services.sync_service - INFO - 成功获取任务块详情: 1917126142087913474 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917126142087913474', 'taskId': '1917126140913508353', 'tenantId': 1000, 'vwedTaskId': '410e5c33-c10d-4c85-868d-71f9e5b9b868', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:57:45', 'updateTime': None}, 'timestamp': 1745913467355}
2025-04-29 15:57:47,693 - services.sync_service - DEBUG - 任务块 1917126142087913474 AMR选择未完成，已尝试 4 次
2025-04-29 15:57:48,208 - services.sync_service - INFO - 正在获取任务块详情: 1917126142087913474
2025-04-29 15:57:48,276 - services.sync_service - INFO - 成功获取任务块详情: 1917126142087913474 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917126142087913474', 'taskId': '1917126140913508353', 'tenantId': 1000, 'vwedTaskId': '410e5c33-c10d-4c85-868d-71f9e5b9b868', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:57:45', 'updateTime': '2025-04-29 15:57:48'}, 'timestamp': 1745913467927}
2025-04-29 15:57:48,277 - services.sync_service - INFO - 任务块 1917126142087913474 已选择AMR: 1912328602264645634，共尝试 5 次
2025-04-29 15:57:48,278 - services.execution.handlers.robot_scheduling - INFO - 准备更新任务 410e5c33-c10d-4c85-868d-71f9e5b9b868 的机器人ID: 1912328602264645634
2025-04-29 15:57:48,280 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:48,287 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.agv_id 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:57:48,298 - sqlalchemy.engine.Engine - INFO - [generated in 0.01161s] ('410e5c33-c10d-4c85-868d-71f9e5b9b868',)
2025-04-29 15:57:48,304 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET agv_id=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 15:57:48,317 - sqlalchemy.engine.Engine - INFO - [generated in 0.01353s] ('1912328602264645634', datetime.datetime(2025, 4, 29, 15, 57, 48, 304751), '410e5c33-c10d-4c85-868d-71f9e5b9b868')
2025-04-29 15:57:48,320 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:48,335 - services.execution.handlers.robot_scheduling - INFO - 成功更新任务记录 410e5c33-c10d-4c85-868d-71f9e5b9b868 的agv_id字段: 1912328602264645634
2025-04-29 15:57:48,339 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b2(ID:2) 选择的机器人: 1912328602264645634
2025-04-29 15:57:48,344 - services.execution.handlers.robot_scheduling - INFO - 块 b2(ID:2) 有 1 个子块
2025-04-29 15:57:48,344 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b2 影响的块ID: [3]
2025-04-29 15:57:48,345 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b2(ID:2) 选择的机器人: 1912328602264645634
2025-04-29 15:57:48,347 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 1 个
2025-04-29 15:57:48,348 - services.execution.handlers.robot_scheduling - INFO - 1. b3(ID:3, 类型:CAgvOperationBp, 关系:direct_child)
2025-04-29 15:57:48,355 - services.execution.handlers.robot_scheduling - INFO - 开始执行选择机器人块 b2 的子块
2025-04-29 15:57:48,356 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 2, 分支: default
2025-04-29 15:57:48,359 - services.execution.block_executor - INFO - 开始执行块 2 的 default 分支下的 1 个子块
2025-04-29 15:57:48,361 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b3, ID: 3, 类型: CAgvOperationBp
2025-04-29 15:57:48,364 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:48,367 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:57:48,370 - sqlalchemy.engine.Engine - INFO - [cached since 2.865s ago] ('94dac7c2-6f11-43e0-ac95-0ba1afd4f140', 'b3', '3', '', '{"targetSiteLabel": {"type": "Simple", "value": "wqlo", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"targetSiteLabel": "wqlo", "scriptName": "JackUnload"}', '{"agv_for_block_3": "1912328602264645634", "agv_for_b3": "1912328602264645634"}', 'CAgvOperationBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '410e5c33-c10d-4c85-868d-71f9e5b9b868', datetime.datetime(2025, 4, 29, 15, 57, 48, 363575), <TaskBlockRecordStatus.RUNNING: 1001>, '{"targetSiteLabel": {"type": "Simple", "value": "wqlo", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"agv_for_block_3": "1912328602264645634", "agv_for_b3": "1912328602264645634"}', 1, datetime.datetime(2025, 4, 29, 15, 57, 48, 367777), datetime.datetime(2025, 4, 29, 15, 57, 48, 367777), 0)
2025-04-29 15:57:48,380 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:48,387 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: 94dac7c2-6f11-43e0-ac95-0ba1afd4f140
2025-04-29 15:57:48,388 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:48,388 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:57:48,389 - sqlalchemy.engine.Engine - INFO - [cached since 2.865s ago] ('94dac7c2-6f11-43e0-ac95-0ba1afd4f140',)
2025-04-29 15:57:48,389 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 15:57:48,390 - services.execution.block_executor - INFO - 为块 b3 存储输出: ['selectedAgvId']
2025-04-29 15:57:48,390 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:57:48,390 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] ('{"selectedAgvId": "1912328602264645634"}', '执行中', "{'agv_for_block_3': '1912328602264645634', 'agv_for_b3': '1912328602264645634'}", '{"blocks": {"b3": {"selectedAgvId": "1912328602264645634"}}}', '执行中', datetime.datetime(2025, 4, 29, 15, 57, 48, 390577), '94dac7c2-6f11-43e0-ac95-0ba1afd4f140')
2025-04-29 15:57:48,394 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:48,417 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 15:57:48,424 - services.execution.handlers.robot_scheduling - INFO - 找到块 b3(ID:3) 专用的机器人ID: 1912328602264645634
2025-04-29 15:57:48,425 - services.execution.handlers.robot_scheduling - INFO - 执行机器人通用动作，块 b3(ID:3) 使用机器人: 1912328602264645634, 目标站点: wqlo
2025-04-29 15:57:48,426 - services.sync_service - INFO - 正在为任务添加动作: 410e5c33-c10d-4c85-868d-71f9e5b9b868, 站点: wqlo, 动作: JackUnload
2025-04-29 15:57:48,442 - services.sync_service - WARNING - 为任务添加动作失败: 任务块id不能为空
2025-04-29 15:57:48,447 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:48,455 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:57:48,456 - sqlalchemy.engine.Engine - INFO - [generated in 0.00111s] ('965783e3-0ad2-4817-b5c3-d5f843e83638', 3, '{"success": false, "message": "机器人通用动作失败: 任务块id不能为空", "code": 400, "result": null, "timestamp": 1745913468105}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '410e5c33-c10d-4c85-868d-71f9e5b9b868', datetime.datetime(2025, 4, 29, 15, 57, 48, 455488), datetime.datetime(2025, 4, 29, 15, 57, 48, 455488), 0)
2025-04-29 15:57:48,461 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:48,482 - services.execution.block_executor - ERROR - 子块 3 执行失败: 机器人通用动作失败: 任务块id不能为空
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 309, in execute_children
    result = await handler.execute(child_block, parsed_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\robot_scheduling.py", line 727, in execute
    loop_result = await executor.execute_children(block, "default")
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:57:48,487 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:48,494 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:57:48,497 - sqlalchemy.engine.Engine - INFO - [cached since 2.011s ago] ('410e5c33-c10d-4c85-868d-71f9e5b9b868',)
2025-04-29 15:57:48,503 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:48,503 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:57:48,504 - sqlalchemy.engine.Engine - INFO - [cached since 2.981s ago] ('94dac7c2-6f11-43e0-ac95-0ba1afd4f140',)
2025-04-29 15:57:48,504 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:48,505 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 15:57:48,505 - services.execution.block_executor - INFO - 为块 b3 存储输出: ['selectedAgvId']
2025-04-29 15:57:48,506 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:57:48,506 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (datetime.datetime(2025, 4, 29, 15, 57, 48, 505532), '机器人通用动作失败: 任务块id不能为空', <TaskBlockRecordStatus.FAILED: 2000>, '机器人通用动作失败: 任务块id不能为空', datetime.datetime(2025, 4, 29, 15, 57, 48, 506573), '94dac7c2-6f11-43e0-ac95-0ba1afd4f140')
2025-04-29 15:57:48,507 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:48,514 - services.execution.handlers.robot_scheduling - ERROR - 选择机器人块 b2 的子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 任务块id不能为空
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 309, in execute_children
    result = await handler.execute(child_block, parsed_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\robot_scheduling.py", line 752, in execute
    logger.error(f"选择机器人块 {current_block_name} 的子块执行失败: {loop_result.get('message')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:57:48,523 - services.sync_service - INFO - 正在封口任务: 1917126142087913474
2025-04-29 15:57:48,627 - services.sync_service - INFO - 成功封口任务: 1917126142087913474
2025-04-29 15:57:48,629 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:48,630 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:57:48,632 - sqlalchemy.engine.Engine - INFO - [cached since 0.1768s ago] ('5141e013-72dc-4264-b0bd-469701e38960', 3, '{"success": false, "message": "选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 任务块id不能为空，失败块ID: 3", "output": {"selectedAgvId": "1912328602264645634", "affe ... (123 characters truncated) ...  "b2"}], "childrenExecuted": false, "childrenResult": {"success": false, "message": "子块 3 执行失败: 机器人通用动作失败: 任务块id不能为空", "block_id": 3, "output": {}}}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '410e5c33-c10d-4c85-868d-71f9e5b9b868', datetime.datetime(2025, 4, 29, 15, 57, 48, 630524), datetime.datetime(2025, 4, 29, 15, 57, 48, 630524), 0)
2025-04-29 15:57:48,636 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:48,648 - services.execution.block_executor - ERROR - 子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 任务块id不能为空，失败块ID: 3
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:57:48,649 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:48,650 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:57:48,650 - sqlalchemy.engine.Engine - INFO - [cached since 3.127s ago] ('5c4d1655-a73e-4e52-a49e-3871e0dba77a',)
2025-04-29 15:57:48,651 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 15:57:48,651 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-29 15:57:48,652 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:57:48,656 - sqlalchemy.engine.Engine - INFO - [generated in 0.00477s] ('{"selectedAgvId": "1912328602264645634"}', datetime.datetime(2025, 4, 29, 15, 57, 48, 651594), '选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 任务块id不能为空，失败块ID: 3', <TaskBlockRecordStatus.FAILED: 2000>, "{'agv_for_block_3': '1912328602264645634', 'agv_for_b3': '1912328602264645634'}", '{"blocks": {"b2": {"selectedAgvId": "1912328602264645634"}}}', '选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 任务块id不能为空，失败块ID: 3', datetime.datetime(2025, 4, 29, 15, 57, 48, 652564), '5c4d1655-a73e-4e52-a49e-3871e0dba77a')
2025-04-29 15:57:48,658 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:48,667 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:48,669 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:57:48,670 - sqlalchemy.engine.Engine - INFO - [cached since 0.2154s ago] ('e9c8cc15-7faa-4810-b81a-4325fd4f506b', 3, '{"success": false, "message": "子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 任务块id不能为空，失败块ID: 3", "block_id": 2, "output": {"selectedAgvId": "1 ... (149 characters truncated) ...  "b2"}], "childrenExecuted": false, "childrenResult": {"success": false, "message": "子块 3 执行失败: 机器人通用动作失败: 任务块id不能为空", "block_id": 3, "output": {}}}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '410e5c33-c10d-4c85-868d-71f9e5b9b868', datetime.datetime(2025, 4, 29, 15, 57, 48, 669719), datetime.datetime(2025, 4, 29, 15, 57, 48, 669719), 0)
2025-04-29 15:57:48,671 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:48,679 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:48,690 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:57:48,690 - sqlalchemy.engine.Engine - INFO - [cached since 3.167s ago] ('5e61f8cb-2086-4166-8e12-64f957c71996',)
2025-04-29 15:57:48,691 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 15:57:48,691 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 15:57:48,692 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:57:48,693 - sqlalchemy.engine.Engine - INFO - [generated in 0.00060s] (datetime.datetime(2025, 4, 29, 15, 57, 48, 692756), '子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 任务块id不能为空，失败块ID: 3', <TaskBlockRecordStatus.FAILED: 2000>, "{'agv_for_block_3': '1912328602264645634', 'agv_for_b3': '1912328602264645634'}", '子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 任务块id不能为空，失败块ID: 3', datetime.datetime(2025, 4, 29, 15, 57, 48, 692756), '5e61f8cb-2086-4166-8e12-64f957c71996')
2025-04-29 15:57:48,694 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:48,700 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:57:48,701 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 15:57:48,702 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] (datetime.datetime(2025, 4, 29, 15, 57, 48, 700755), '子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 任务块id不能为空，失败块ID: 3', <TaskStatus.FAILED: 2000>, 3208, 1, datetime.datetime(2025, 4, 29, 15, 57, 48, 701728), '410e5c33-c10d-4c85-868d-71f9e5b9b868')
2025-04-29 15:57:48,703 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:57:48,711 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: 410e5c33-c10d-4c85-868d-71f9e5b9b868, 结果: False
2025-04-29 15:58:36,733 - app - INFO - 应用程序关闭中...
2025-04-29 15:58:36,734 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 15:58:36,734 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 15:58:36,735 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 15:58:36,735 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 15:58:36,736 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 15:58:36,736 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 15:58:36,736 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 15:58:36,737 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 15:58:36,737 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 15:58:36,737 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 15:58:36,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 15:58:36,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:58:36,738 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 15:58:36,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 15:58:36,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 15:58:36,738 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 15:58:36,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 15:58:36,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 15:58:36,738 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 15:58:36,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:58:36,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:58:36,739 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 15:58:36,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 15:58:36,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 15:58:36,740 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 15:58:36,740 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 15:58:36,740 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 15:58:36,740 - app - INFO - 增强版任务调度器已停止
2025-04-29 15:58:36,740 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 15:58:36,740 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 15:58:36,740 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 15:58:36,741 - data.session - INFO - 数据库连接已关闭
2025-04-29 15:58:38,863 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 15:58:38,921 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:58:38,922 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 15:58:39,616 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 15:58:39,672 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:58:39,674 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 15:58:39,734 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 15:58:39,780 - data.session - INFO - 正在初始化数据库...
2025-04-29 15:58:39,824 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 15:58:39,841 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 15:58:39,841 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:58:39,842 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 15:58:39,842 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:58:39,843 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 15:58:39,843 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:58:39,844 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:39,844 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 15:58:39,844 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:58:39,845 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 15:58:39,846 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:58:39,847 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 15:58:39,847 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:58:39,848 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 15:58:39,848 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:58:39,849 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 15:58:39,851 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:58:39,852 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 15:58:39,852 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:58:39,853 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 15:58:39,853 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:58:39,854 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 15:58:39,855 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:58:39,856 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 15:58:39,856 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:58:39,857 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 15:58:39,857 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:58:39,858 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 15:58:39,859 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 15:58:39,860 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:39,860 - data.session - INFO - 数据库表初始化完成
2025-04-29 15:58:40,205 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 15:58:40,205 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 15:58:40,206 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 15:58:40,206 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 15:58:40,206 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 15:58:40,207 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 15:58:40,207 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 15:58:40,207 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 15:58:40,207 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 15:58:40,207 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 15:58:40,208 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:58:40,208 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 15:58:40,208 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 15:58:40,210 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 15:58:40,210 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 15:58:40,210 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:58:40,210 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:58:40,210 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:58:40,210 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 15:58:40,210 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 15:58:40,211 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 15:58:40,212 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 15:58:40,212 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 15:58:40,213 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 15:58:40,213 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 15:58:40,214 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 15:58:40,214 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 15:58:40,215 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:40,224 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 15:58:40,224 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 15:58:40,225 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 15:58:40,225 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:40,226 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 15:58:40,226 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 15:58:40,226 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 15:58:40,226 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:40,228 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 15:58:40,229 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 15:58:40,247 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:40,248 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 15:58:40,248 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 15:58:40,248 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 15:58:40,248 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 15:58:40,249 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 15:58:40,249 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:40,250 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:58:40,251 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 58, 40, 226449))
2025-04-29 15:58:40,252 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:45,390 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 15:58:45,394 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:45,396 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:58:45,397 - sqlalchemy.engine.Engine - INFO - [generated in 0.00136s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:58:45,398 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:45,401 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:45,402 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:58:45,403 - sqlalchemy.engine.Engine - INFO - [cached since 0.007429s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:58:45,405 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:45,407 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 15:58:45,407 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 15:58:45,407 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 15:58:45,408 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:45,410 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 15:58:45,410 - sqlalchemy.engine.Engine - INFO - [generated in 0.00064s] (None, datetime.datetime(2025, 4, 29, 15, 58, 45, 410139), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 15:58:45,412 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:45,429 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:45,430 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:58:45,431 - sqlalchemy.engine.Engine - INFO - [cached since 0.03662s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:58:45,434 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:58:45,434 - sqlalchemy.engine.Engine - INFO - [generated in 0.00059s] ('2f7eda54-8b24-4a06-8b5c-cd73ad4608f5', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 5, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (713 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 15, 58, 45, 407138), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 15, 58, 45, 434807), datetime.datetime(2025, 4, 29, 15, 58, 45, 434807), 0)
2025-04-29 15:58:45,436 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:45,444 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:45,445 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:58:45,446 - sqlalchemy.engine.Engine - INFO - [generated in 0.00064s] ('2f7eda54-8b24-4a06-8b5c-cd73ad4608f5',)
2025-04-29 15:58:45,448 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:45,448 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5 (优先级 1) 添加到队列 0
2025-04-29 15:58:45,454 - services.sync_service - INFO - 正在同步创建任务到天风系统: 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5
2025-04-29 15:58:45,454 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"2f7eda54-8b24-4a06-8b5c-cd73ad4608f5","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 15:58:45","sceneId":"1912043207186550785","needAmr":1}
2025-04-29 15:58:45,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5, 优先级: 1
2025-04-29 15:58:45,539 - services.execution.task_executor - DEBUG - 任务 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5 设置超时时间: 3600秒
2025-04-29 15:58:45,539 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:45,541 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:58:45,544 - sqlalchemy.engine.Engine - INFO - [cached since 0.09899s ago] ('2f7eda54-8b24-4a06-8b5c-cd73ad4608f5',)
2025-04-29 15:58:45,549 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:58:45,551 - sqlalchemy.engine.Engine - INFO - [cached since 0.1554s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:58:45,552 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 15:58:45,552 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (datetime.datetime(2025, 4, 29, 15, 58, 45, 551385), datetime.datetime(2025, 4, 29, 15, 58, 45, 552437), '2f7eda54-8b24-4a06-8b5c-cd73ad4608f5')
2025-04-29 15:58:45,553 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:45,562 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:45,563 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 15:58:45,563 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 58, 45, 563465), '2f7eda54-8b24-4a06-8b5c-cd73ad4608f5')
2025-04-29 15:58:45,564 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:45,571 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 15:58:45,572 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:45,573 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:58:45,573 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] ('4b612f5a-8789-409f-bd92-f46584087c32', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '2f7eda54-8b24-4a06-8b5c-cd73ad4608f5', datetime.datetime(2025, 4, 29, 15, 58, 45, 571785), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 15, 58, 45, 573783), datetime.datetime(2025, 4, 29, 15, 58, 45, 573783), 0)
2025-04-29 15:58:45,575 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:45,578 - services.sync_service - INFO - 成功同步任务到系统任务: 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5
2025-04-29 15:58:45,579 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5
2025-04-29 15:58:45,579 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5
2025-04-29 15:58:45,579 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1889秒
2025-04-29 15:58:45,581 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:45,582 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:58:45,582 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] ('4b612f5a-8789-409f-bd92-f46584087c32',)
2025-04-29 15:58:45,586 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 15:58:45,591 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 15:58:45,592 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:58:45,592 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 15, 58, 45, 592025), '4b612f5a-8789-409f-bd92-f46584087c32')
2025-04-29 15:58:45,593 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:45,599 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 15:58:45,600 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 15:58:45,600 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b2, ID: 2, 类型: CSelectAgvBp
2025-04-29 15:58:45,601 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:45,601 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:58:45,601 - sqlalchemy.engine.Engine - INFO - [cached since 0.02773s ago] ('865effac-9675-44d4-9a2e-40738b988845', 'b2', '2', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}, "vehicle": {"type": "Simple", "value": "", "required": null}, "priority": {"type": "Simple", "value": "1", "required": null}, "tag": {"type": "Simple", "value": "", "required": null}}', '{"keyRoute": "TK01", "vehicle": "", "priority": "1", "tag": ""}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '2f7eda54-8b24-4a06-8b5c-cd73ad4608f5', datetime.datetime(2025, 4, 29, 15, 58, 45, 600026), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}, "vehicle": {"type": "Simple", "value": "", "required": null}, "priority": {"type": "Simple", "value": "1", "required": null}, "tag": {"type": "Simple", "value": "", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 29, 15, 58, 45, 601026), datetime.datetime(2025, 4, 29, 15, 58, 45, 601026), 0)
2025-04-29 15:58:45,602 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:45,609 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 865effac-9675-44d4-9a2e-40738b988845
2025-04-29 15:58:45,609 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:45,610 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:58:45,613 - sqlalchemy.engine.Engine - INFO - [cached since 0.0327s ago] ('865effac-9675-44d4-9a2e-40738b988845',)
2025-04-29 15:58:45,618 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 15:58:45,618 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 15:58:45,619 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:58:45,626 - sqlalchemy.engine.Engine - INFO - [cached since 0.03428s ago] ('null', '执行中', '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 15, 58, 45, 618320), '865effac-9675-44d4-9a2e-40738b988845')
2025-04-29 15:58:45,632 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:45,638 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 15:58:45,639 - services.sync_service - INFO - 正在创建选择AMR任务: 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5, 站点: TK01
2025-04-29 15:58:45,739 - services.sync_service - INFO - 成功为任务选择AMR: 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5, AMR: None
2025-04-29 15:58:45,739 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917126393595158530 的AMR选择结果
2025-04-29 15:58:45,743 - services.sync_service - INFO - 开始等待任务块 1917126393595158530 的AMR选择结果
2025-04-29 15:58:45,743 - services.sync_service - INFO - 正在获取任务块详情: 1917126393595158530
2025-04-29 15:58:45,849 - services.sync_service - INFO - 成功获取任务块详情: 1917126393595158530 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917126393595158530', 'taskId': '1917126392815017986', 'tenantId': 1000, 'vwedTaskId': '2f7eda54-8b24-4a06-8b5c-cd73ad4608f5', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:58:45', 'updateTime': None}, 'timestamp': 1745913525475}
2025-04-29 15:58:45,849 - services.sync_service - DEBUG - 任务块 1917126393595158530 AMR选择未完成，已尝试 1 次
2025-04-29 15:58:46,365 - services.sync_service - INFO - 正在获取任务块详情: 1917126393595158530
2025-04-29 15:58:46,485 - services.sync_service - INFO - 成功获取任务块详情: 1917126393595158530 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917126393595158530', 'taskId': '1917126392815017986', 'tenantId': 1000, 'vwedTaskId': '2f7eda54-8b24-4a06-8b5c-cd73ad4608f5', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:58:45', 'updateTime': None}, 'timestamp': 1745913526086}
2025-04-29 15:58:46,487 - services.sync_service - DEBUG - 任务块 1917126393595158530 AMR选择未完成，已尝试 2 次
2025-04-29 15:58:46,537 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:46,543 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:58:46,544 - sqlalchemy.engine.Engine - INFO - [generated in 0.00122s] ('2f7eda54-8b24-4a06-8b5c-cd73ad4608f5',)
2025-04-29 15:58:46,545 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:47,015 - services.sync_service - INFO - 正在获取任务块详情: 1917126393595158530
2025-04-29 15:58:47,234 - services.sync_service - INFO - 成功获取任务块详情: 1917126393595158530 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917126393595158530', 'taskId': '1917126392815017986', 'tenantId': 1000, 'vwedTaskId': '2f7eda54-8b24-4a06-8b5c-cd73ad4608f5', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:58:45', 'updateTime': None}, 'timestamp': 1745913526773}
2025-04-29 15:58:47,234 - services.sync_service - DEBUG - 任务块 1917126393595158530 AMR选择未完成，已尝试 3 次
2025-04-29 15:58:47,536 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:47,536 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:58:47,536 - sqlalchemy.engine.Engine - INFO - [cached since 0.9938s ago] ('2f7eda54-8b24-4a06-8b5c-cd73ad4608f5',)
2025-04-29 15:58:47,538 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:47,737 - services.sync_service - INFO - 正在获取任务块详情: 1917126393595158530
2025-04-29 15:58:47,953 - services.sync_service - INFO - 成功获取任务块详情: 1917126393595158530 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917126393595158530', 'taskId': '1917126392815017986', 'tenantId': 1000, 'vwedTaskId': '2f7eda54-8b24-4a06-8b5c-cd73ad4608f5', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:58:45', 'updateTime': None}, 'timestamp': 1745913527517}
2025-04-29 15:58:47,953 - services.sync_service - DEBUG - 任务块 1917126393595158530 AMR选择未完成，已尝试 4 次
2025-04-29 15:58:48,465 - services.sync_service - INFO - 正在获取任务块详情: 1917126393595158530
2025-04-29 15:58:48,549 - services.sync_service - INFO - 成功获取任务块详情: 1917126393595158530 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917126393595158530', 'taskId': '1917126392815017986', 'tenantId': 1000, 'vwedTaskId': '2f7eda54-8b24-4a06-8b5c-cd73ad4608f5', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:58:45', 'updateTime': '2025-04-29 15:58:48'}, 'timestamp': 1745913528191}
2025-04-29 15:58:48,550 - services.sync_service - INFO - 任务块 1917126393595158530 已选择AMR: 1912328602264645634，共尝试 5 次
2025-04-29 15:58:48,551 - services.execution.handlers.robot_scheduling - INFO - 准备更新任务 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5 的机器人ID: 1912328602264645634
2025-04-29 15:58:48,552 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:48,557 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:58:48,557 - sqlalchemy.engine.Engine - INFO - [cached since 2.015s ago] ('2f7eda54-8b24-4a06-8b5c-cd73ad4608f5',)
2025-04-29 15:58:48,558 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:48,561 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.agv_id 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:58:48,564 - sqlalchemy.engine.Engine - INFO - [generated in 0.00384s] ('2f7eda54-8b24-4a06-8b5c-cd73ad4608f5',)
2025-04-29 15:58:48,567 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:48,571 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET agv_id=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 15:58:48,573 - sqlalchemy.engine.Engine - INFO - [generated in 0.00166s] ('1912328602264645634', datetime.datetime(2025, 4, 29, 15, 58, 48, 571726), '2f7eda54-8b24-4a06-8b5c-cd73ad4608f5')
2025-04-29 15:58:48,574 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:48,588 - services.execution.handlers.robot_scheduling - INFO - 成功更新任务记录 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5 的agv_id字段: 1912328602264645634
2025-04-29 15:58:48,589 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b2(ID:2) 选择的机器人: 1912328602264645634
2025-04-29 15:58:48,591 - services.execution.handlers.robot_scheduling - INFO - 块 b2(ID:2) 有 1 个子块
2025-04-29 15:58:48,595 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b2 影响的块ID: [3]
2025-04-29 15:58:48,596 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b2(ID:2) 选择的机器人: 1912328602264645634
2025-04-29 15:58:48,598 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 1 个
2025-04-29 15:58:48,598 - services.execution.handlers.robot_scheduling - INFO - 1. b3(ID:3, 类型:CAgvOperationBp, 关系:direct_child)
2025-04-29 15:58:48,600 - services.execution.handlers.robot_scheduling - INFO - 开始执行选择机器人块 b2 的子块
2025-04-29 15:58:48,602 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 2, 分支: default
2025-04-29 15:58:48,604 - services.execution.block_executor - INFO - 开始执行块 2 的 default 分支下的 1 个子块
2025-04-29 15:58:48,605 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b3, ID: 3, 类型: CAgvOperationBp
2025-04-29 15:58:48,606 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:48,611 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:58:48,613 - sqlalchemy.engine.Engine - INFO - [cached since 3.04s ago] ('670125ce-fd0e-4bbe-b644-71ce1b69c827', 'b3', '3', '', '{"targetSiteLabel": {"type": "Simple", "value": "wqlo", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"targetSiteLabel": "wqlo", "scriptName": "JackUnload"}', '{"agv_for_block_3": "1912328602264645634", "agv_for_b3": "1912328602264645634"}', 'CAgvOperationBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '2f7eda54-8b24-4a06-8b5c-cd73ad4608f5', datetime.datetime(2025, 4, 29, 15, 58, 48, 606166), <TaskBlockRecordStatus.RUNNING: 1001>, '{"targetSiteLabel": {"type": "Simple", "value": "wqlo", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"agv_for_block_3": "1912328602264645634", "agv_for_b3": "1912328602264645634"}', 1, datetime.datetime(2025, 4, 29, 15, 58, 48, 611179), datetime.datetime(2025, 4, 29, 15, 58, 48, 611179), 0)
2025-04-29 15:58:48,617 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:48,625 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: 670125ce-fd0e-4bbe-b644-71ce1b69c827
2025-04-29 15:58:48,625 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:48,627 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:58:48,628 - sqlalchemy.engine.Engine - INFO - [cached since 3.047s ago] ('670125ce-fd0e-4bbe-b644-71ce1b69c827',)
2025-04-29 15:58:48,632 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 15:58:48,634 - services.execution.block_executor - INFO - 为块 b3 存储输出: ['selectedAgvId']
2025-04-29 15:58:48,635 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:58:48,638 - sqlalchemy.engine.Engine - INFO - [generated in 0.00284s] ('{"selectedAgvId": "1912328602264645634"}', '执行中', "{'agv_for_block_3': '1912328602264645634', 'agv_for_b3': '1912328602264645634'}", '{"blocks": {"b3": {"selectedAgvId": "1912328602264645634"}}}', '执行中', datetime.datetime(2025, 4, 29, 15, 58, 48, 635723), '670125ce-fd0e-4bbe-b644-71ce1b69c827')
2025-04-29 15:58:48,643 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:48,654 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 15:58:48,657 - services.execution.handlers.robot_scheduling - INFO - 找到块 b3(ID:3) 专用的机器人ID: 1912328602264645634
2025-04-29 15:58:48,659 - services.execution.handlers.robot_scheduling - INFO - 执行机器人通用动作，块 b3(ID:3) 使用机器人: 1912328602264645634, 目标站点: wqlo
2025-04-29 15:58:48,660 - services.sync_service - INFO - 正在为任务添加动作: 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5, 站点: wqlo, 动作: JackUnload
2025-04-29 15:58:48,762 - services.sync_service - WARNING - 为任务添加动作失败: 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5此任务块id不存在
2025-04-29 15:58:48,764 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:48,765 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:58:48,765 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] ('89bbd146-e3cb-4164-b9c4-b5be4987ecd5', 3, '{"success": false, "message": "机器人通用动作失败: 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5此任务块id不存在", "code": 400, "result": null, "timestamp": 1745913528409}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '2f7eda54-8b24-4a06-8b5c-cd73ad4608f5', datetime.datetime(2025, 4, 29, 15, 58, 48, 765051), datetime.datetime(2025, 4, 29, 15, 58, 48, 765051), 0)
2025-04-29 15:58:48,766 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:48,775 - services.execution.block_executor - ERROR - 子块 3 执行失败: 机器人通用动作失败: 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5此任务块id不存在
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 309, in execute_children
    result = await handler.execute(child_block, parsed_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\robot_scheduling.py", line 727, in execute
    loop_result = await executor.execute_children(block, "default")
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:58:48,776 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:48,776 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:58:48,776 - sqlalchemy.engine.Engine - INFO - [cached since 3.194s ago] ('670125ce-fd0e-4bbe-b644-71ce1b69c827',)
2025-04-29 15:58:48,777 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 15:58:48,777 - services.execution.block_executor - INFO - 为块 b3 存储输出: ['selectedAgvId']
2025-04-29 15:58:48,777 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:58:48,778 - sqlalchemy.engine.Engine - INFO - [generated in 0.00071s] (datetime.datetime(2025, 4, 29, 15, 58, 48, 777130), '机器人通用动作失败: 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5此任务块id不存在', <TaskBlockRecordStatus.FAILED: 2000>, '机器人通用动作失败: 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5此任务块id不存在', datetime.datetime(2025, 4, 29, 15, 58, 48, 777130), '670125ce-fd0e-4bbe-b644-71ce1b69c827')
2025-04-29 15:58:48,779 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:48,784 - services.execution.handlers.robot_scheduling - ERROR - 选择机器人块 b2 的子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5此任务块id不存在
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 309, in execute_children
    result = await handler.execute(child_block, parsed_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\robot_scheduling.py", line 752, in execute
    logger.error(f"选择机器人块 {current_block_name} 的子块执行失败: {loop_result.get('message')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:58:48,784 - services.sync_service - INFO - 正在封口任务: 1917126393595158530
2025-04-29 15:58:48,979 - services.sync_service - INFO - 成功封口任务: 1917126393595158530
2025-04-29 15:58:48,983 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:48,986 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:58:48,990 - sqlalchemy.engine.Engine - INFO - [cached since 0.2259s ago] ('f656045b-4c81-46eb-993e-4f805bcab974', 3, '{"success": false, "message": "选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5此任务块id不存在，失败块ID: 3", "output": {"selected ... (195 characters truncated) ... "childrenResult": {"success": false, "message": "子块 3 执行失败: 机器人通用动作失败: 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5此任务块id不存在", "block_id": 3, "output": {}}}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '2f7eda54-8b24-4a06-8b5c-cd73ad4608f5', datetime.datetime(2025, 4, 29, 15, 58, 48, 986406), datetime.datetime(2025, 4, 29, 15, 58, 48, 986406), 0)
2025-04-29 15:58:48,992 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:49,007 - services.execution.block_executor - ERROR - 子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5此任务块id不存在，失败块ID: 3
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:58:49,010 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:49,016 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:58:49,018 - sqlalchemy.engine.Engine - INFO - [cached since 3.437s ago] ('865effac-9675-44d4-9a2e-40738b988845',)
2025-04-29 15:58:49,020 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 15:58:49,021 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-29 15:58:49,024 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:58:49,029 - sqlalchemy.engine.Engine - INFO - [generated in 0.00560s] ('{"selectedAgvId": "1912328602264645634"}', datetime.datetime(2025, 4, 29, 15, 58, 49, 23905), '选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5此任务块id不存在，失败块ID: 3', <TaskBlockRecordStatus.FAILED: 2000>, "{'agv_for_block_3': '1912328602264645634', 'agv_for_b3': '1912328602264645634'}", '{"blocks": {"b2": {"selectedAgvId": "1912328602264645634"}}}', '选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5此任务块id不存在，失败块ID: 3', datetime.datetime(2025, 4, 29, 15, 58, 49, 24421), '865effac-9675-44d4-9a2e-40738b988845')
2025-04-29 15:58:49,034 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:49,044 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:49,044 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:58:49,044 - sqlalchemy.engine.Engine - INFO - [cached since 0.2798s ago] ('aa55b381-d876-4e0f-ba65-ff56a40ae93e', 3, '{"success": false, "message": "子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5此任务块id不存在，失败块ID: 3", "block_id ... (221 characters truncated) ... "childrenResult": {"success": false, "message": "子块 3 执行失败: 机器人通用动作失败: 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5此任务块id不存在", "block_id": 3, "output": {}}}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '2f7eda54-8b24-4a06-8b5c-cd73ad4608f5', datetime.datetime(2025, 4, 29, 15, 58, 49, 44058), datetime.datetime(2025, 4, 29, 15, 58, 49, 44058), 0)
2025-04-29 15:58:49,045 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:49,052 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:49,052 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:58:49,052 - sqlalchemy.engine.Engine - INFO - [cached since 3.471s ago] ('4b612f5a-8789-409f-bd92-f46584087c32',)
2025-04-29 15:58:49,052 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 15:58:49,053 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 15:58:49,053 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:58:49,053 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] (datetime.datetime(2025, 4, 29, 15, 58, 49, 53988), '子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5此任务块id不存在，失败块ID: 3', <TaskBlockRecordStatus.FAILED: 2000>, "{'agv_for_block_3': '1912328602264645634', 'agv_for_b3': '1912328602264645634'}", '子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5此任务块id不存在，失败块ID: 3', datetime.datetime(2025, 4, 29, 15, 58, 49, 53988), '4b612f5a-8789-409f-bd92-f46584087c32')
2025-04-29 15:58:49,055 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:49,062 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:58:49,063 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 15:58:49,063 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] (datetime.datetime(2025, 4, 29, 15, 58, 49, 61980), '子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5此任务块id不存在，失败块ID: 3', <TaskStatus.FAILED: 2000>, 3500, 1, datetime.datetime(2025, 4, 29, 15, 58, 49, 63974), '2f7eda54-8b24-4a06-8b5c-cd73ad4608f5')
2025-04-29 15:58:49,064 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:58:49,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 2f7eda54-8b24-4a06-8b5c-cd73ad4608f5, 结果: False
2025-04-29 15:59:24,093 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 15:59:24,094 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:24,095 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:59:24,095 - sqlalchemy.engine.Engine - INFO - [cached since 38.7s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:59:24,097 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:24,098 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:24,098 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:59:24,098 - sqlalchemy.engine.Engine - INFO - [cached since 38.7s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:59:24,099 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:24,100 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 15:59:24,100 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 15:59:24,100 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 15:59:24,101 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:24,101 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 15:59:24,102 - sqlalchemy.engine.Engine - INFO - [cached since 38.69s ago] (None, datetime.datetime(2025, 4, 29, 15, 59, 24, 101279), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 15:59:24,103 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:24,117 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:24,118 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:59:24,119 - sqlalchemy.engine.Engine - INFO - [cached since 38.72s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:59:24,119 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:59:24,120 - sqlalchemy.engine.Engine - INFO - [cached since 38.69s ago] ('5f5b6cc1-a76e-42da-9920-c8c846b8655d', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 5, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (713 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 15, 59, 24, 100279), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 15, 59, 24, 119774), datetime.datetime(2025, 4, 29, 15, 59, 24, 119774), 0)
2025-04-29 15:59:24,124 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:24,133 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:24,133 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:59:24,134 - sqlalchemy.engine.Engine - INFO - [cached since 38.69s ago] ('5f5b6cc1-a76e-42da-9920-c8c846b8655d',)
2025-04-29 15:59:24,135 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:24,135 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 5f5b6cc1-a76e-42da-9920-c8c846b8655d (优先级 1) 添加到队列 0
2025-04-29 15:59:24,135 - services.sync_service - INFO - 正在同步创建任务到天风系统: 5f5b6cc1-a76e-42da-9920-c8c846b8655d
2025-04-29 15:59:24,135 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"5f5b6cc1-a76e-42da-9920-c8c846b8655d","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 15:59:24","sceneId":"1912043207186550785","needAmr":1}
2025-04-29 15:59:24,165 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 5f5b6cc1-a76e-42da-9920-c8c846b8655d, 优先级: 1
2025-04-29 15:59:24,165 - services.execution.task_executor - DEBUG - 任务 5f5b6cc1-a76e-42da-9920-c8c846b8655d 设置超时时间: 3600秒
2025-04-29 15:59:24,166 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:24,167 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:59:24,168 - sqlalchemy.engine.Engine - INFO - [cached since 38.72s ago] ('5f5b6cc1-a76e-42da-9920-c8c846b8655d',)
2025-04-29 15:59:24,170 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 15:59:24,170 - sqlalchemy.engine.Engine - INFO - [cached since 38.78s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 15:59:24,171 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 15:59:24,172 - sqlalchemy.engine.Engine - INFO - [cached since 38.62s ago] (datetime.datetime(2025, 4, 29, 15, 59, 24, 171678), datetime.datetime(2025, 4, 29, 15, 59, 24, 171678), '5f5b6cc1-a76e-42da-9920-c8c846b8655d')
2025-04-29 15:59:24,174 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:24,183 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:24,183 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 15:59:24,184 - sqlalchemy.engine.Engine - INFO - [cached since 38.62s ago] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 59, 24, 183314), '5f5b6cc1-a76e-42da-9920-c8c846b8655d')
2025-04-29 15:59:24,189 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:24,198 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 15:59:24,198 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:24,199 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:59:24,200 - sqlalchemy.engine.Engine - INFO - [cached since 38.63s ago] ('d7b4d626-35de-4a0b-b2d7-1093ac6f0452', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '5f5b6cc1-a76e-42da-9920-c8c846b8655d', datetime.datetime(2025, 4, 29, 15, 59, 24, 198812), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 15, 59, 24, 199812), datetime.datetime(2025, 4, 29, 15, 59, 24, 199812), 0)
2025-04-29 15:59:24,203 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:24,203 - services.sync_service - INFO - 成功同步任务到系统任务: 5f5b6cc1-a76e-42da-9920-c8c846b8655d
2025-04-29 15:59:24,204 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 5f5b6cc1-a76e-42da-9920-c8c846b8655d
2025-04-29 15:59:24,205 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 5f5b6cc1-a76e-42da-9920-c8c846b8655d
2025-04-29 15:59:24,206 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1135秒
2025-04-29 15:59:24,210 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:24,212 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:59:24,212 - sqlalchemy.engine.Engine - INFO - [cached since 38.63s ago] ('d7b4d626-35de-4a0b-b2d7-1093ac6f0452',)
2025-04-29 15:59:24,213 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 15:59:24,213 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 15:59:24,213 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:59:24,214 - sqlalchemy.engine.Engine - INFO - [cached since 38.62s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 15, 59, 24, 213820), 'd7b4d626-35de-4a0b-b2d7-1093ac6f0452')
2025-04-29 15:59:24,214 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:24,220 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 15:59:24,221 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 15:59:24,221 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b2, ID: 2, 类型: CSelectAgvBp
2025-04-29 15:59:24,222 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:24,223 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:59:24,224 - sqlalchemy.engine.Engine - INFO - [cached since 38.65s ago] ('cf2588d5-cc58-4074-839b-29f1981fd0c9', 'b2', '2', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}, "vehicle": {"type": "Simple", "value": "", "required": null}, "priority": {"type": "Simple", "value": "1", "required": null}, "tag": {"type": "Simple", "value": "", "required": null}}', '{"keyRoute": "TK01", "vehicle": "", "priority": "1", "tag": ""}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '5f5b6cc1-a76e-42da-9920-c8c846b8655d', datetime.datetime(2025, 4, 29, 15, 59, 24, 221811), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}, "vehicle": {"type": "Simple", "value": "", "required": null}, "priority": {"type": "Simple", "value": "1", "required": null}, "tag": {"type": "Simple", "value": "", "required": null}}', '{}', 1, datetime.datetime(2025, 4, 29, 15, 59, 24, 223670), datetime.datetime(2025, 4, 29, 15, 59, 24, 223670), 0)
2025-04-29 15:59:24,225 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:24,232 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: cf2588d5-cc58-4074-839b-29f1981fd0c9
2025-04-29 15:59:24,232 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:24,232 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:59:24,232 - sqlalchemy.engine.Engine - INFO - [cached since 38.65s ago] ('cf2588d5-cc58-4074-839b-29f1981fd0c9',)
2025-04-29 15:59:24,234 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 15:59:24,234 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 15:59:24,234 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:59:24,234 - sqlalchemy.engine.Engine - INFO - [cached since 38.64s ago] ('null', '执行中', '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 15, 59, 24, 234475), 'cf2588d5-cc58-4074-839b-29f1981fd0c9')
2025-04-29 15:59:24,235 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:24,241 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 15:59:24,241 - services.sync_service - INFO - 正在创建选择AMR任务: 5f5b6cc1-a76e-42da-9920-c8c846b8655d, 站点: TK01
2025-04-29 15:59:24,301 - services.sync_service - INFO - 成功为任务选择AMR: 5f5b6cc1-a76e-42da-9920-c8c846b8655d, AMR: None
2025-04-29 15:59:24,301 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917126555432378370 的AMR选择结果
2025-04-29 15:59:24,302 - services.sync_service - INFO - 开始等待任务块 1917126555432378370 的AMR选择结果
2025-04-29 15:59:24,302 - services.sync_service - INFO - 正在获取任务块详情: 1917126555432378370
2025-04-29 15:59:24,410 - services.sync_service - INFO - 成功获取任务块详情: 1917126555432378370 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917126555432378370', 'taskId': '1917126554991976450', 'tenantId': 1000, 'vwedTaskId': '5f5b6cc1-a76e-42da-9920-c8c846b8655d', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:59:24', 'updateTime': None}, 'timestamp': 1745913563983}
2025-04-29 15:59:24,410 - services.sync_service - DEBUG - 任务块 1917126555432378370 AMR选择未完成，已尝试 1 次
2025-04-29 15:59:24,924 - services.sync_service - INFO - 正在获取任务块详情: 1917126555432378370
2025-04-29 15:59:25,120 - services.sync_service - INFO - 成功获取任务块详情: 1917126555432378370 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917126555432378370', 'taskId': '1917126554991976450', 'tenantId': 1000, 'vwedTaskId': '5f5b6cc1-a76e-42da-9920-c8c846b8655d', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:59:24', 'updateTime': None}, 'timestamp': 1745913564695}
2025-04-29 15:59:25,121 - services.sync_service - DEBUG - 任务块 1917126555432378370 AMR选择未完成，已尝试 2 次
2025-04-29 15:59:25,175 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:25,176 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:59:25,176 - sqlalchemy.engine.Engine - INFO - [cached since 38.63s ago] ('5f5b6cc1-a76e-42da-9920-c8c846b8655d',)
2025-04-29 15:59:25,178 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:25,613 - services.sync_service - INFO - 正在获取任务块详情: 1917126555432378370
2025-04-29 15:59:25,735 - services.sync_service - INFO - 成功获取任务块详情: 1917126555432378370 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917126555432378370', 'taskId': '1917126554991976450', 'tenantId': 1000, 'vwedTaskId': '5f5b6cc1-a76e-42da-9920-c8c846b8655d', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:59:24', 'updateTime': None}, 'timestamp': 1745913565324}
2025-04-29 15:59:25,735 - services.sync_service - DEBUG - 任务块 1917126555432378370 AMR选择未完成，已尝试 3 次
2025-04-29 15:59:26,190 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:26,191 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:59:26,191 - sqlalchemy.engine.Engine - INFO - [cached since 39.65s ago] ('5f5b6cc1-a76e-42da-9920-c8c846b8655d',)
2025-04-29 15:59:26,198 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:26,238 - services.sync_service - INFO - 正在获取任务块详情: 1917126555432378370
2025-04-29 15:59:26,349 - services.sync_service - INFO - 成功获取任务块详情: 1917126555432378370 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917126555432378370', 'taskId': '1917126554991976450', 'tenantId': 1000, 'vwedTaskId': '5f5b6cc1-a76e-42da-9920-c8c846b8655d', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:59:24', 'updateTime': None}, 'timestamp': 1745913565922}
2025-04-29 15:59:26,350 - services.sync_service - DEBUG - 任务块 1917126555432378370 AMR选择未完成，已尝试 4 次
2025-04-29 15:59:26,861 - services.sync_service - INFO - 正在获取任务块详情: 1917126555432378370
2025-04-29 15:59:26,990 - services.sync_service - INFO - 成功获取任务块详情: 1917126555432378370 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917126555432378370', 'taskId': '1917126554991976450', 'tenantId': 1000, 'vwedTaskId': '5f5b6cc1-a76e-42da-9920-c8c846b8655d', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:59:24', 'updateTime': None}, 'timestamp': 1745913566643}
2025-04-29 15:59:26,991 - services.sync_service - DEBUG - 任务块 1917126555432378370 AMR选择未完成，已尝试 5 次
2025-04-29 15:59:27,217 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:27,219 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:59:27,219 - sqlalchemy.engine.Engine - INFO - [cached since 40.68s ago] ('5f5b6cc1-a76e-42da-9920-c8c846b8655d',)
2025-04-29 15:59:27,221 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:27,496 - services.sync_service - INFO - 正在获取任务块详情: 1917126555432378370
2025-04-29 15:59:27,684 - services.sync_service - INFO - 成功获取任务块详情: 1917126555432378370 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917126555432378370', 'taskId': '1917126554991976450', 'tenantId': 1000, 'vwedTaskId': '5f5b6cc1-a76e-42da-9920-c8c846b8655d', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:59:24', 'updateTime': None}, 'timestamp': 1745913567250}
2025-04-29 15:59:27,686 - services.sync_service - DEBUG - 任务块 1917126555432378370 AMR选择未完成，已尝试 6 次
2025-04-29 15:59:28,181 - services.sync_service - INFO - 正在获取任务块详情: 1917126555432378370
2025-04-29 15:59:28,243 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:28,244 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:59:28,247 - sqlalchemy.engine.Engine - INFO - [cached since 41.7s ago] ('5f5b6cc1-a76e-42da-9920-c8c846b8655d',)
2025-04-29 15:59:28,249 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:28,286 - services.sync_service - INFO - 成功获取任务块详情: 1917126555432378370 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917126555432378370', 'taskId': '1917126554991976450', 'tenantId': 1000, 'vwedTaskId': '5f5b6cc1-a76e-42da-9920-c8c846b8655d', 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 1, 'closure': 0, 'createTime': '2025-04-29 15:59:24', 'updateTime': '2025-04-29 15:59:28'}, 'timestamp': 1745913567864}
2025-04-29 15:59:28,286 - services.sync_service - INFO - 任务块 1917126555432378370 已选择AMR: 1912328602264645634，共尝试 7 次
2025-04-29 15:59:28,287 - services.execution.handlers.robot_scheduling - INFO - 准备更新任务 5f5b6cc1-a76e-42da-9920-c8c846b8655d 的机器人ID: 1912328602264645634
2025-04-29 15:59:28,288 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:28,289 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.agv_id 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 15:59:28,289 - sqlalchemy.engine.Engine - INFO - [cached since 39.73s ago] ('5f5b6cc1-a76e-42da-9920-c8c846b8655d',)
2025-04-29 15:59:28,291 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET agv_id=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 15:59:28,291 - sqlalchemy.engine.Engine - INFO - [cached since 39.72s ago] ('1912328602264645634', datetime.datetime(2025, 4, 29, 15, 59, 28, 291515), '5f5b6cc1-a76e-42da-9920-c8c846b8655d')
2025-04-29 15:59:28,293 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:28,300 - services.execution.handlers.robot_scheduling - INFO - 成功更新任务记录 5f5b6cc1-a76e-42da-9920-c8c846b8655d 的agv_id字段: 1912328602264645634
2025-04-29 15:59:28,301 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b2(ID:2) 选择的机器人: 1912328602264645634
2025-04-29 15:59:28,301 - services.execution.handlers.robot_scheduling - INFO - 块 b2(ID:2) 有 1 个子块
2025-04-29 15:59:28,301 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b2 影响的块ID: [3]
2025-04-29 15:59:28,301 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b2(ID:2) 选择的机器人: 1912328602264645634
2025-04-29 15:59:28,302 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 1 个
2025-04-29 15:59:28,302 - services.execution.handlers.robot_scheduling - INFO - 1. b3(ID:3, 类型:CAgvOperationBp, 关系:direct_child)
2025-04-29 15:59:28,302 - services.execution.handlers.robot_scheduling - INFO - 开始执行选择机器人块 b2 的子块
2025-04-29 15:59:28,302 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 2, 分支: default
2025-04-29 15:59:28,302 - services.execution.block_executor - INFO - 开始执行块 2 的 default 分支下的 1 个子块
2025-04-29 15:59:28,302 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b3, ID: 3, 类型: CAgvOperationBp
2025-04-29 15:59:28,303 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:28,304 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:59:28,304 - sqlalchemy.engine.Engine - INFO - [cached since 42.73s ago] ('9a23f287-8fce-4f5e-bc7a-ac758988e82b', 'b3', '3', '', '{"targetSiteLabel": {"type": "Simple", "value": "wqlo", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"targetSiteLabel": "wqlo", "scriptName": "JackUnload"}', '{"agv_for_block_3": "1912328602264645634", "agv_for_b3": "1912328602264645634"}', 'CAgvOperationBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '5f5b6cc1-a76e-42da-9920-c8c846b8655d', datetime.datetime(2025, 4, 29, 15, 59, 28, 303050), <TaskBlockRecordStatus.RUNNING: 1001>, '{"targetSiteLabel": {"type": "Simple", "value": "wqlo", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"agv_for_block_3": "1912328602264645634", "agv_for_b3": "1912328602264645634"}', 1, datetime.datetime(2025, 4, 29, 15, 59, 28, 304050), datetime.datetime(2025, 4, 29, 15, 59, 28, 304050), 0)
2025-04-29 15:59:28,305 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:28,313 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: 9a23f287-8fce-4f5e-bc7a-ac758988e82b
2025-04-29 15:59:28,313 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:28,314 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:59:28,314 - sqlalchemy.engine.Engine - INFO - [cached since 42.73s ago] ('9a23f287-8fce-4f5e-bc7a-ac758988e82b',)
2025-04-29 15:59:28,315 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 15:59:28,315 - services.execution.block_executor - INFO - 为块 b3 存储输出: ['selectedAgvId']
2025-04-29 15:59:28,316 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:59:28,316 - sqlalchemy.engine.Engine - INFO - [cached since 39.68s ago] ('{"selectedAgvId": "1912328602264645634"}', '执行中', "{'agv_for_block_3': '1912328602264645634', 'agv_for_b3': '1912328602264645634'}", '{"blocks": {"b3": {"selectedAgvId": "1912328602264645634"}}}', '执行中', datetime.datetime(2025, 4, 29, 15, 59, 28, 316049), '9a23f287-8fce-4f5e-bc7a-ac758988e82b')
2025-04-29 15:59:28,317 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:28,324 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 15:59:28,324 - services.execution.handlers.robot_scheduling - INFO - 找到块 b3(ID:3) 专用的机器人ID: 1912328602264645634
2025-04-29 15:59:28,324 - services.execution.handlers.robot_scheduling - INFO - 执行机器人通用动作，块 b3(ID:3) 使用机器人: 1912328602264645634, 目标站点: wqlo
2025-04-29 15:59:28,325 - services.sync_service - INFO - 正在为任务添加动作: 5f5b6cc1-a76e-42da-9920-c8c846b8655d, 站点: wqlo, 动作: JackUnload
2025-04-29 15:59:28,366 - services.sync_service - WARNING - 为任务添加动作失败: 5f5b6cc1-a76e-42da-9920-c8c846b8655d此任务块id不存在
2025-04-29 15:59:28,368 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:28,369 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:59:28,370 - sqlalchemy.engine.Engine - INFO - [cached since 39.61s ago] ('b261186a-5730-44bd-a86d-6f4cadae11b3', 3, '{"success": false, "message": "机器人通用动作失败: 5f5b6cc1-a76e-42da-9920-c8c846b8655d此任务块id不存在", "code": 400, "result": null, "timestamp": 1745913568032}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '5f5b6cc1-a76e-42da-9920-c8c846b8655d', datetime.datetime(2025, 4, 29, 15, 59, 28, 369802), datetime.datetime(2025, 4, 29, 15, 59, 28, 369802), 0)
2025-04-29 15:59:28,373 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:28,380 - services.execution.block_executor - ERROR - 子块 3 执行失败: 机器人通用动作失败: 5f5b6cc1-a76e-42da-9920-c8c846b8655d此任务块id不存在
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 309, in execute_children
    result = await handler.execute(child_block, parsed_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\robot_scheduling.py", line 727, in execute
    loop_result = await executor.execute_children(block, "default")
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:59:28,381 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:28,381 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:59:28,382 - sqlalchemy.engine.Engine - INFO - [cached since 42.8s ago] ('9a23f287-8fce-4f5e-bc7a-ac758988e82b',)
2025-04-29 15:59:28,382 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 15:59:28,383 - services.execution.block_executor - INFO - 为块 b3 存储输出: ['selectedAgvId']
2025-04-29 15:59:28,383 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:59:28,383 - sqlalchemy.engine.Engine - INFO - [cached since 39.61s ago] (datetime.datetime(2025, 4, 29, 15, 59, 28, 383028), '机器人通用动作失败: 5f5b6cc1-a76e-42da-9920-c8c846b8655d此任务块id不存在', <TaskBlockRecordStatus.FAILED: 2000>, '机器人通用动作失败: 5f5b6cc1-a76e-42da-9920-c8c846b8655d此任务块id不存在', datetime.datetime(2025, 4, 29, 15, 59, 28, 383028), '9a23f287-8fce-4f5e-bc7a-ac758988e82b')
2025-04-29 15:59:28,384 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:28,391 - services.execution.handlers.robot_scheduling - ERROR - 选择机器人块 b2 的子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 5f5b6cc1-a76e-42da-9920-c8c846b8655d此任务块id不存在
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 309, in execute_children
    result = await handler.execute(child_block, parsed_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\robot_scheduling.py", line 752, in execute
    logger.error(f"选择机器人块 {current_block_name} 的子块执行失败: {loop_result.get('message')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:59:28,391 - services.sync_service - INFO - 正在封口任务: 1917126555432378370
2025-04-29 15:59:28,478 - services.sync_service - INFO - 成功封口任务: 1917126555432378370
2025-04-29 15:59:28,480 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:28,481 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:59:28,482 - sqlalchemy.engine.Engine - INFO - [cached since 39.72s ago] ('d1732646-8699-45b5-842d-923587a254b7', 3, '{"success": false, "message": "选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 5f5b6cc1-a76e-42da-9920-c8c846b8655d此任务块id不存在，失败块ID: 3", "output": {"selected ... (195 characters truncated) ... "childrenResult": {"success": false, "message": "子块 3 执行失败: 机器人通用动作失败: 5f5b6cc1-a76e-42da-9920-c8c846b8655d此任务块id不存在", "block_id": 3, "output": {}}}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '5f5b6cc1-a76e-42da-9920-c8c846b8655d', datetime.datetime(2025, 4, 29, 15, 59, 28, 481029), datetime.datetime(2025, 4, 29, 15, 59, 28, 481029), 0)
2025-04-29 15:59:28,483 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:28,492 - services.execution.block_executor - ERROR - 子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 5f5b6cc1-a76e-42da-9920-c8c846b8655d此任务块id不存在，失败块ID: 3
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 749, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 15:59:28,493 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:28,493 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:59:28,494 - sqlalchemy.engine.Engine - INFO - [cached since 42.91s ago] ('cf2588d5-cc58-4074-839b-29f1981fd0c9',)
2025-04-29 15:59:28,495 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 15:59:28,495 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-29 15:59:28,496 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:59:28,496 - sqlalchemy.engine.Engine - INFO - [cached since 39.47s ago] ('{"selectedAgvId": "1912328602264645634"}', datetime.datetime(2025, 4, 29, 15, 59, 28, 495028), '选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 5f5b6cc1-a76e-42da-9920-c8c846b8655d此任务块id不存在，失败块ID: 3', <TaskBlockRecordStatus.FAILED: 2000>, "{'agv_for_block_3': '1912328602264645634', 'agv_for_b3': '1912328602264645634'}", '{"blocks": {"b2": {"selectedAgvId": "1912328602264645634"}}}', '选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 5f5b6cc1-a76e-42da-9920-c8c846b8655d此任务块id不存在，失败块ID: 3', datetime.datetime(2025, 4, 29, 15, 59, 28, 496028), 'cf2588d5-cc58-4074-839b-29f1981fd0c9')
2025-04-29 15:59:28,497 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:28,503 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:28,504 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 15:59:28,504 - sqlalchemy.engine.Engine - INFO - [cached since 39.74s ago] ('60f1beb6-26a3-4d32-ba0b-3458d8a75999', 3, '{"success": false, "message": "子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 5f5b6cc1-a76e-42da-9920-c8c846b8655d此任务块id不存在，失败块ID: 3", "block_id ... (221 characters truncated) ... "childrenResult": {"success": false, "message": "子块 3 执行失败: 机器人通用动作失败: 5f5b6cc1-a76e-42da-9920-c8c846b8655d此任务块id不存在", "block_id": 3, "output": {}}}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '5f5b6cc1-a76e-42da-9920-c8c846b8655d', datetime.datetime(2025, 4, 29, 15, 59, 28, 504573), datetime.datetime(2025, 4, 29, 15, 59, 28, 504573), 0)
2025-04-29 15:59:28,505 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:28,513 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:28,514 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 15:59:28,514 - sqlalchemy.engine.Engine - INFO - [cached since 42.93s ago] ('d7b4d626-35de-4a0b-b2d7-1093ac6f0452',)
2025-04-29 15:59:28,516 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 15:59:28,516 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 15:59:28,518 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 15:59:28,522 - sqlalchemy.engine.Engine - INFO - [cached since 39.47s ago] (datetime.datetime(2025, 4, 29, 15, 59, 28, 518586), '子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 5f5b6cc1-a76e-42da-9920-c8c846b8655d此任务块id不存在，失败块ID: 3', <TaskBlockRecordStatus.FAILED: 2000>, "{'agv_for_block_3': '1912328602264645634', 'agv_for_b3': '1912328602264645634'}", '子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 5f5b6cc1-a76e-42da-9920-c8c846b8655d此任务块id不存在，失败块ID: 3', datetime.datetime(2025, 4, 29, 15, 59, 28, 518586), 'd7b4d626-35de-4a0b-b2d7-1093ac6f0452')
2025-04-29 15:59:28,526 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:28,533 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:28,534 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 15:59:28,534 - sqlalchemy.engine.Engine - INFO - [cached since 39.47s ago] (datetime.datetime(2025, 4, 29, 15, 59, 28, 533573), '子块 2 执行失败: 选择执行机器人成功，但子块执行失败: 子块 3 执行失败: 机器人通用动作失败: 5f5b6cc1-a76e-42da-9920-c8c846b8655d此任务块id不存在，失败块ID: 3', <TaskStatus.FAILED: 2000>, 4351, 1, datetime.datetime(2025, 4, 29, 15, 59, 28, 534574), '5f5b6cc1-a76e-42da-9920-c8c846b8655d')
2025-04-29 15:59:28,535 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:28,542 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 完成任务: 5f5b6cc1-a76e-42da-9920-c8c846b8655d, 结果: False
2025-04-29 15:59:40,240 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 15:59:40,241 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 15:59:40,241 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 15:59:40,244 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 15:59:40,244 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 15:59:40,244 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 15:59:40,245 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 15:59:40,245 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 15:59:40,245 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 15:59:40,245 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 15:59:40,245 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 15:59:40,245 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 15:59:40,246 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 15:59:40,246 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 15:59:40,246 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 15:59:40,246 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 15:59:40,246 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 15:59:40,255 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 15:59:40,257 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 15:59:40,258 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 15:59:40,259 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 14, 59, 40, 256517))
2025-04-29 15:59:40,260 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 15:59:55,259 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 15:59:55,259 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 15:59:55,259 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 15:59:55,259 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 15:59:55,259 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 15:59:55,261 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 16:00:40,276 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 16:00:40,277 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 16:00:40,277 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 16:00:40,277 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 16:00:40,277 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 16:00:40,277 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 16:00:40,277 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 16:00:40,277 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 16:00:40,278 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 16:00:40,278 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:00:40,278 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 16:00:40,279 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 0, 40, 276751))
2025-04-29 16:00:40,279 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 16:00:40,279 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 16:00:40,280 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 16:00:40,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 16:00:40,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 16:00:40,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 16:00:40,280 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 16:00:40,281 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 16:00:40,281 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 16:00:40,282 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:00:40,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 16:00:40,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 16:00:40,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 16:00:40,283 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 16:00:40,283 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 16:00:40,297 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 16:00:55,296 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 16:00:55,297 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 16:00:55,297 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 16:00:55,298 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 16:00:55,299 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 16:00:55,300 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 16:01:40,303 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:01:40,305 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 16:01:40,305 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 1, 40, 303386))
2025-04-29 16:01:40,306 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:01:40,349 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 16:01:40,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 16:01:40,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 16:01:40,351 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 16:01:40,351 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 16:01:40,351 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 16:01:40,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 16:01:40,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 16:01:40,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 16:01:40,351 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 16:01:40,352 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 16:01:40,352 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 16:01:40,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 16:01:40,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 16:01:40,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 16:01:40,353 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 16:01:40,353 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 16:01:40,353 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 16:01:40,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 16:01:40,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 16:01:40,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 16:01:40,354 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 16:01:40,354 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 16:01:40,364 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 16:01:43,253 - app - INFO - 应用程序关闭中...
2025-04-29 16:01:43,254 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 16:01:43,254 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 16:01:43,255 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 16:01:43,255 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 16:01:43,256 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 16:01:43,256 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 16:01:43,257 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 16:01:43,257 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 16:01:43,257 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 16:01:43,258 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 16:01:43,258 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 16:01:43,258 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 16:01:43,258 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 16:01:43,259 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 16:01:43,259 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 16:01:43,259 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 16:01:43,260 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 16:01:43,260 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 16:01:43,260 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 16:01:43,260 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 16:01:43,260 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 16:01:43,261 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 16:01:43,261 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 16:01:43,261 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 16:01:43,262 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 16:01:43,262 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 16:01:43,262 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 16:01:43,262 - app - INFO - 增强版任务调度器已停止
2025-04-29 16:01:43,262 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 16:01:43,262 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 16:01:43,262 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 16:01:43,264 - data.session - INFO - 数据库连接已关闭
2025-04-29 16:20:15,770 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 16:20:15,855 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 16:20:15,860 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 16:20:16,701 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 16:20:16,771 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 16:20:16,774 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 16:20:16,846 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 16:20:16,900 - data.session - INFO - 正在初始化数据库...
2025-04-29 16:20:16,937 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 16:20:16,962 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 16:20:16,975 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:20:16,979 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 16:20:16,979 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:20:16,980 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 16:20:16,981 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:20:16,986 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:16,987 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 16:20:16,990 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:20:16,996 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 16:20:16,997 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:20:17,006 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 16:20:17,007 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:20:17,010 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 16:20:17,013 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:20:17,014 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 16:20:17,024 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:20:17,026 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 16:20:17,027 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:20:17,029 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 16:20:17,030 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:20:17,032 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 16:20:17,035 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:20:17,037 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 16:20:17,039 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:20:17,041 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 16:20:17,041 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:20:17,042 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 16:20:17,043 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:20:17,044 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:17,045 - data.session - INFO - 数据库表初始化完成
2025-04-29 16:20:17,404 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 16:20:17,404 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 16:20:17,405 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 16:20:17,405 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 16:20:17,407 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 16:20:17,408 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 16:20:17,409 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 16:20:17,413 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 16:20:17,413 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 16:20:17,413 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 16:20:17,413 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 16:20:17,414 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 16:20:17,414 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 16:20:17,419 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 16:20:17,421 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 16:20:17,423 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 16:20:17,423 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 16:20:17,425 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 16:20:17,426 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 16:20:17,427 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 16:20:17,429 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 16:20:17,430 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 16:20:17,433 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:20:17,441 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 16:20:17,441 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:20:17,442 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 16:20:17,444 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:20:17,448 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:17,463 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 16:20:17,464 - sqlalchemy.engine.Engine - INFO - [generated in 0.00126s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 16:20:17,470 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 16:20:17,472 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:17,477 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 16:20:17,478 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 16:20:17,478 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 16:20:17,479 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:17,487 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 16:20:17,490 - sqlalchemy.engine.Engine - INFO - [generated in 0.00232s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 16:20:17,492 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:17,494 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 16:20:17,495 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 16:20:17,500 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 16:20:17,501 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 16:20:17,503 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 16:20:17,504 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:17,506 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 16:20:17,506 - sqlalchemy.engine.Engine - INFO - [generated in 0.00088s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 20, 17, 479831))
2025-04-29 16:20:17,511 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:19,788 - app - INFO - 请求开始: POST /api/vwed-task-edit/save 来自 127.0.0.1
2025-04-29 16:20:19,791 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:19,793 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 16:20:19,805 - sqlalchemy.engine.Engine - INFO - [generated in 0.01141s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 16:20:19,808 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:19,811 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:19,823 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 16:20:19,827 - sqlalchemy.engine.Engine - INFO - [cached since 0.0341s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 16:20:19,836 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET version=%s, detail=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 16:20:19,839 - sqlalchemy.engine.Engine - INFO - [generated in 0.00371s] (6, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (680 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', datetime.datetime(2025, 4, 29, 16, 20, 19, 836026), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 16:20:19,842 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:19,872 - app - INFO - 请求完成: POST /api/vwed-task-edit/save 状态码: 200 耗时: 0.0843秒
2025-04-29 16:20:27,876 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 16:20:27,878 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:27,882 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 16:20:27,883 - sqlalchemy.engine.Engine - INFO - [cached since 8.091s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 16:20:27,889 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:27,900 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:27,901 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 16:20:27,902 - sqlalchemy.engine.Engine - INFO - [cached since 8.109s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 16:20:27,909 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:27,914 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 16:20:27,914 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 16:20:27,914 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 16:20:27,916 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:27,917 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 16:20:27,918 - sqlalchemy.engine.Engine - INFO - [generated in 0.00103s] (None, datetime.datetime(2025, 4, 29, 16, 20, 27, 917933), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 16:20:27,919 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:27,930 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:27,931 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 16:20:27,932 - sqlalchemy.engine.Engine - INFO - [cached since 8.139s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 16:20:27,935 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:27,937 - sqlalchemy.engine.Engine - INFO - [generated in 0.00154s] ('d0e3910e-a626-4b0d-940f-d12a5f990214', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 6, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (680 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 16, 20, 27, 914934), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 16, 20, 27, 935801), datetime.datetime(2025, 4, 29, 16, 20, 27, 935801), 0)
2025-04-29 16:20:27,939 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:27,948 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:27,951 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 16:20:27,953 - sqlalchemy.engine.Engine - INFO - [generated in 0.00157s] ('d0e3910e-a626-4b0d-940f-d12a5f990214',)
2025-04-29 16:20:27,954 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:27,956 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 d0e3910e-a626-4b0d-940f-d12a5f990214 (优先级 1) 添加到队列 0
2025-04-29 16:20:27,959 - services.sync_service - INFO - 正在同步创建任务到天风系统: d0e3910e-a626-4b0d-940f-d12a5f990214
2025-04-29 16:20:27,962 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"d0e3910e-a626-4b0d-940f-d12a5f990214","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 16:20:27","sceneId":"1912043207186550785","needAmr":0}
2025-04-29 16:20:27,987 - services.sync_service - INFO - 成功同步任务到系统任务: d0e3910e-a626-4b0d-940f-d12a5f990214
2025-04-29 16:20:27,988 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: d0e3910e-a626-4b0d-940f-d12a5f990214, 优先级: 1
2025-04-29 16:20:27,988 - services.execution.task_executor - DEBUG - 任务 d0e3910e-a626-4b0d-940f-d12a5f990214 设置超时时间: 3600秒
2025-04-29 16:20:27,989 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: d0e3910e-a626-4b0d-940f-d12a5f990214
2025-04-29 16:20:27,991 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: d0e3910e-a626-4b0d-940f-d12a5f990214
2025-04-29 16:20:27,991 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:27,992 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 16:20:27,993 - sqlalchemy.engine.Engine - INFO - [cached since 0.04217s ago] ('d0e3910e-a626-4b0d-940f-d12a5f990214',)
2025-04-29 16:20:27,996 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1204秒
2025-04-29 16:20:27,997 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 16:20:27,999 - sqlalchemy.engine.Engine - INFO - [cached since 8.206s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 16:20:28,004 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 16:20:28,005 - sqlalchemy.engine.Engine - INFO - [generated in 0.00127s] (datetime.datetime(2025, 4, 29, 16, 20, 28, 3805), datetime.datetime(2025, 4, 29, 16, 20, 28, 4798), 'd0e3910e-a626-4b0d-940f-d12a5f990214')
2025-04-29 16:20:28,008 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,015 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,019 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 16:20:28,020 - sqlalchemy.engine.Engine - INFO - [generated in 0.00105s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 16, 20, 28, 19798), 'd0e3910e-a626-4b0d-940f-d12a5f990214')
2025-04-29 16:20:28,021 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,027 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 16:20:28,030 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,031 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,032 - sqlalchemy.engine.Engine - INFO - [generated in 0.00148s] ('57840ca9-1737-4afd-8bbc-5c4e5b9ca472', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 27805), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 16, 20, 28, 31799), datetime.datetime(2025, 4, 29, 16, 20, 28, 31799), 0)
2025-04-29 16:20:28,035 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,043 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,045 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,047 - sqlalchemy.engine.Engine - INFO - [generated in 0.00214s] ('57840ca9-1737-4afd-8bbc-5c4e5b9ca472',)
2025-04-29 16:20:28,049 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 16:20:28,050 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 16:20:28,053 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,054 - sqlalchemy.engine.Engine - INFO - [generated in 0.00111s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 20, 28, 53799), '57840ca9-1737-4afd-8bbc-5c4e5b9ca472')
2025-04-29 16:20:28,056 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,063 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 16:20:28,064 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 16:20:28,064 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: IterateListBp
2025-04-29 16:20:28,065 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,067 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,068 - sqlalchemy.engine.Engine - INFO - [cached since 0.03651s ago] ('b1d2f077-7f9f-4665-953a-45c21eb3b7c6', 'b1', '1', '', '{"list": {"type": "Simple", "value": "[3,4,5,6,7,8,9]", "required": true}}', '{"list": "[3,4,5,6,7,8,9]"}', '{}', 'IterateListBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 65720), <TaskBlockRecordStatus.RUNNING: 1001>, '{"list": {"type": "Simple", "value": "[3,4,5,6,7,8,9]", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 29, 16, 20, 28, 67719), datetime.datetime(2025, 4, 29, 16, 20, 28, 67719), 0)
2025-04-29 16:20:28,069 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,077 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: b1d2f077-7f9f-4665-953a-45c21eb3b7c6
2025-04-29 16:20:28,077 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,078 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,078 - sqlalchemy.engine.Engine - INFO - [cached since 0.03366s ago] ('b1d2f077-7f9f-4665-953a-45c21eb3b7c6',)
2025-04-29 16:20:28,080 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 16:20:28,080 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 16:20:28,081 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,081 - sqlalchemy.engine.Engine - INFO - [cached since 0.02827s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 20, 28, 81848), 'b1d2f077-7f9f-4665-953a-45c21eb3b7c6')
2025-04-29 16:20:28,082 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,090 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-29 16:20:28,091 - services.execution.handlers.progress - INFO - 开始执行数组遍历块 - ID: 1, 名称: b1
2025-04-29 16:20:28,091 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:20:28,091 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:20:28,092 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:20:28,093 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,093 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,094 - sqlalchemy.engine.Engine - INFO - [cached since 0.06284s ago] ('96290228-6288-4e15-814b-28c10d82c931', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"currentIndex": 0, "currentItem": 3}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 92720), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"currentIndex": 0, "currentItem": 3}', 1, datetime.datetime(2025, 4, 29, 16, 20, 28, 93805), datetime.datetime(2025, 4, 29, 16, 20, 28, 93805), 0)
2025-04-29 16:20:28,095 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,105 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 96290228-6288-4e15-814b-28c10d82c931
2025-04-29 16:20:28,106 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,106 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,107 - sqlalchemy.engine.Engine - INFO - [cached since 0.06218s ago] ('96290228-6288-4e15-814b-28c10d82c931',)
2025-04-29 16:20:28,109 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:20:28,109 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:20:28,110 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,111 - sqlalchemy.engine.Engine - INFO - [generated in 0.00066s] ('null', '执行中', "{'currentIndex': 0, 'currentItem': 3}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 20, 28, 110820), '96290228-6288-4e15-814b-28c10d82c931')
2025-04-29 16:20:28,112 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,121 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:20:28,121 - services.execution.handlers.foundation - INFO - 任务 d0e3910e-a626-4b0d-940f-d12a5f990214 打印: None
2025-04-29 16:20:28,122 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,123 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,124 - sqlalchemy.engine.Engine - INFO - [generated in 0.00125s] ('43c57def-67c2-4134-a3bd-bc4fd90e6c45', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 123849), datetime.datetime(2025, 4, 29, 16, 20, 28, 123849), 0)
2025-04-29 16:20:28,126 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,136 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,137 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,138 - sqlalchemy.engine.Engine - INFO - [cached since 0.0929s ago] ('96290228-6288-4e15-814b-28c10d82c931',)
2025-04-29 16:20:28,142 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:20:28,143 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:20:28,146 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,147 - sqlalchemy.engine.Engine - INFO - [generated in 0.00150s] (datetime.datetime(2025, 4, 29, 16, 20, 28, 144297), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 20, 28, 146293), '96290228-6288-4e15-814b-28c10d82c931')
2025-04-29 16:20:28,150 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,159 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:20:28,162 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,164 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,165 - sqlalchemy.engine.Engine - INFO - [cached since 0.1339s ago] ('d052f75f-9928-4232-96d6-eca19505c01c', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"currentIndex": 0, "currentItem": 3}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 160299), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"currentIndex": 0, "currentItem": 3}', 1, datetime.datetime(2025, 4, 29, 16, 20, 28, 164386), datetime.datetime(2025, 4, 29, 16, 20, 28, 164386), 0)
2025-04-29 16:20:28,168 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,174 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: d052f75f-9928-4232-96d6-eca19505c01c
2025-04-29 16:20:28,175 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,175 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,176 - sqlalchemy.engine.Engine - INFO - [cached since 0.1308s ago] ('d052f75f-9928-4232-96d6-eca19505c01c',)
2025-04-29 16:20:28,180 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:20:28,180 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:20:28,182 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,183 - sqlalchemy.engine.Engine - INFO - [cached since 0.07193s ago] ('null', '执行中', "{'currentIndex': 0, 'currentItem': 3}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 20, 28, 182293), 'd052f75f-9928-4232-96d6-eca19505c01c')
2025-04-29 16:20:28,185 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,192 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:20:28,192 - services.execution.handlers.foundation - INFO - 任务 d0e3910e-a626-4b0d-940f-d12a5f990214 打印: None
2025-04-29 16:20:28,192 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,193 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,193 - sqlalchemy.engine.Engine - INFO - [cached since 0.06985s ago] ('8257bf8e-35e1-4667-ad5d-d2619f10bb9c', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 193376), datetime.datetime(2025, 4, 29, 16, 20, 28, 193376), 0)
2025-04-29 16:20:28,195 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,202 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,203 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,204 - sqlalchemy.engine.Engine - INFO - [cached since 0.1585s ago] ('d052f75f-9928-4232-96d6-eca19505c01c',)
2025-04-29 16:20:28,205 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:20:28,206 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:20:28,206 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,206 - sqlalchemy.engine.Engine - INFO - [cached since 0.06084s ago] (datetime.datetime(2025, 4, 29, 16, 20, 28, 206368), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 20, 28, 206368), 'd052f75f-9928-4232-96d6-eca19505c01c')
2025-04-29 16:20:28,207 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,215 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,216 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,216 - sqlalchemy.engine.Engine - INFO - [cached since 0.09317s ago] ('34f6c3cb-0513-4ec4-b94a-ad760039df8b', 1, '{"success": true, "message": "第1次循环, item=3"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 216398), datetime.datetime(2025, 4, 29, 16, 20, 28, 216398), 0)
2025-04-29 16:20:28,218 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,225 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:20:28,225 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:20:28,226 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:20:28,228 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,231 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,232 - sqlalchemy.engine.Engine - INFO - [cached since 0.2003s ago] ('ecaa7c71-5a6b-40fc-b287-b2ad6180d03c', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"currentIndex": 1, "currentItem": 4}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 227392), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"currentIndex": 1, "currentItem": 4}', 1, datetime.datetime(2025, 4, 29, 16, 20, 28, 231375), datetime.datetime(2025, 4, 29, 16, 20, 28, 231375), 0)
2025-04-29 16:20:28,234 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,240 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: ecaa7c71-5a6b-40fc-b287-b2ad6180d03c
2025-04-29 16:20:28,241 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,241 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,241 - sqlalchemy.engine.Engine - INFO - [cached since 0.1964s ago] ('ecaa7c71-5a6b-40fc-b287-b2ad6180d03c',)
2025-04-29 16:20:28,242 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:20:28,243 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:20:28,245 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,245 - sqlalchemy.engine.Engine - INFO - [cached since 0.1346s ago] ('null', '执行中', "{'currentIndex': 1, 'currentItem': 4}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 20, 28, 245375), 'ecaa7c71-5a6b-40fc-b287-b2ad6180d03c')
2025-04-29 16:20:28,247 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,253 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:20:28,253 - services.execution.handlers.foundation - INFO - 任务 d0e3910e-a626-4b0d-940f-d12a5f990214 打印: None
2025-04-29 16:20:28,255 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,255 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,256 - sqlalchemy.engine.Engine - INFO - [cached since 0.1323s ago] ('19a7c9a7-6817-4066-bbdb-1ef4aed9a36d', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 255293), datetime.datetime(2025, 4, 29, 16, 20, 28, 255293), 0)
2025-04-29 16:20:28,259 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,266 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,266 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,267 - sqlalchemy.engine.Engine - INFO - [cached since 0.2214s ago] ('ecaa7c71-5a6b-40fc-b287-b2ad6180d03c',)
2025-04-29 16:20:28,268 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:20:28,268 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:20:28,269 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,269 - sqlalchemy.engine.Engine - INFO - [cached since 0.1234s ago] (datetime.datetime(2025, 4, 29, 16, 20, 28, 269083), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 20, 28, 269083), 'ecaa7c71-5a6b-40fc-b287-b2ad6180d03c')
2025-04-29 16:20:28,270 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,276 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:20:28,277 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,281 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,283 - sqlalchemy.engine.Engine - INFO - [cached since 0.251s ago] ('707dd1bc-b5b2-4339-ad57-2d33966f620b', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"currentIndex": 1, "currentItem": 4}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 277087), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"currentIndex": 1, "currentItem": 4}', 1, datetime.datetime(2025, 4, 29, 16, 20, 28, 281081), datetime.datetime(2025, 4, 29, 16, 20, 28, 281081), 0)
2025-04-29 16:20:28,285 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,291 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: 707dd1bc-b5b2-4339-ad57-2d33966f620b
2025-04-29 16:20:28,292 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,292 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,293 - sqlalchemy.engine.Engine - INFO - [cached since 0.2474s ago] ('707dd1bc-b5b2-4339-ad57-2d33966f620b',)
2025-04-29 16:20:28,295 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:20:28,295 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:20:28,296 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,297 - sqlalchemy.engine.Engine - INFO - [cached since 0.1857s ago] ('null', '执行中', "{'currentIndex': 1, 'currentItem': 4}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 20, 28, 296085), '707dd1bc-b5b2-4339-ad57-2d33966f620b')
2025-04-29 16:20:28,299 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,304 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:20:28,305 - services.execution.handlers.foundation - INFO - 任务 d0e3910e-a626-4b0d-940f-d12a5f990214 打印: None
2025-04-29 16:20:28,307 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,309 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,310 - sqlalchemy.engine.Engine - INFO - [cached since 0.1863s ago] ('88c7c4d0-50c0-4ff8-8f9c-28196c46d9b4', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 309432), datetime.datetime(2025, 4, 29, 16, 20, 28, 309432), 0)
2025-04-29 16:20:28,313 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,320 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,328 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,332 - sqlalchemy.engine.Engine - INFO - [cached since 0.2861s ago] ('707dd1bc-b5b2-4339-ad57-2d33966f620b',)
2025-04-29 16:20:28,333 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:20:28,335 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:20:28,337 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,338 - sqlalchemy.engine.Engine - INFO - [cached since 0.1929s ago] (datetime.datetime(2025, 4, 29, 16, 20, 28, 335824), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 20, 28, 336826), '707dd1bc-b5b2-4339-ad57-2d33966f620b')
2025-04-29 16:20:28,342 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,354 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,356 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,358 - sqlalchemy.engine.Engine - INFO - [cached since 0.2347s ago] ('c787756f-c333-4d2d-9107-4992d5b8d5ed', 1, '{"success": true, "message": "第2次循环, item=4"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 356339), datetime.datetime(2025, 4, 29, 16, 20, 28, 356339), 0)
2025-04-29 16:20:28,360 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,371 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:20:28,374 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:20:28,375 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:20:28,378 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,380 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,381 - sqlalchemy.engine.Engine - INFO - [cached since 0.3492s ago] ('c03cc671-228c-4c28-b6a4-aad7d2a95910', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"currentIndex": 2, "currentItem": 5}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 376347), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"currentIndex": 2, "currentItem": 5}', 1, datetime.datetime(2025, 4, 29, 16, 20, 28, 380347), datetime.datetime(2025, 4, 29, 16, 20, 28, 380347), 0)
2025-04-29 16:20:28,385 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,393 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: c03cc671-228c-4c28-b6a4-aad7d2a95910
2025-04-29 16:20:28,394 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,396 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,397 - sqlalchemy.engine.Engine - INFO - [cached since 0.3517s ago] ('c03cc671-228c-4c28-b6a4-aad7d2a95910',)
2025-04-29 16:20:28,399 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:20:28,399 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:20:28,401 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,403 - sqlalchemy.engine.Engine - INFO - [cached since 0.2922s ago] ('null', '执行中', "{'currentIndex': 2, 'currentItem': 5}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 20, 28, 401351), 'c03cc671-228c-4c28-b6a4-aad7d2a95910')
2025-04-29 16:20:28,406 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,420 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:20:28,423 - services.execution.handlers.foundation - INFO - 任务 d0e3910e-a626-4b0d-940f-d12a5f990214 打印: None
2025-04-29 16:20:28,425 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,426 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,428 - sqlalchemy.engine.Engine - INFO - [cached since 0.305s ago] ('c49556bb-dda7-402f-b7dc-124333aa5006', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 426355), datetime.datetime(2025, 4, 29, 16, 20, 28, 426355), 0)
2025-04-29 16:20:28,432 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,442 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,443 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,444 - sqlalchemy.engine.Engine - INFO - [cached since 0.399s ago] ('c03cc671-228c-4c28-b6a4-aad7d2a95910',)
2025-04-29 16:20:28,448 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:20:28,449 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:20:28,450 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,451 - sqlalchemy.engine.Engine - INFO - [cached since 0.3061s ago] (datetime.datetime(2025, 4, 29, 16, 20, 28, 449339), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 20, 28, 450435), 'c03cc671-228c-4c28-b6a4-aad7d2a95910')
2025-04-29 16:20:28,455 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,464 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:20:28,465 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,466 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,469 - sqlalchemy.engine.Engine - INFO - [cached since 0.4376s ago] ('3b798545-87ff-4a11-86e6-9423114c0a78', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"currentIndex": 2, "currentItem": 5}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 464024), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"currentIndex": 2, "currentItem": 5}', 1, datetime.datetime(2025, 4, 29, 16, 20, 28, 466917), datetime.datetime(2025, 4, 29, 16, 20, 28, 466917), 0)
2025-04-29 16:20:28,472 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,483 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: 3b798545-87ff-4a11-86e6-9423114c0a78
2025-04-29 16:20:28,486 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,488 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,488 - sqlalchemy.engine.Engine - INFO - [cached since 0.444s ago] ('3b798545-87ff-4a11-86e6-9423114c0a78',)
2025-04-29 16:20:28,491 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:20:28,492 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:20:28,494 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,495 - sqlalchemy.engine.Engine - INFO - [cached since 0.3835s ago] ('null', '执行中', "{'currentIndex': 2, 'currentItem': 5}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 20, 28, 494005), '3b798545-87ff-4a11-86e6-9423114c0a78')
2025-04-29 16:20:28,497 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,504 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:20:28,506 - services.execution.handlers.foundation - INFO - 任务 d0e3910e-a626-4b0d-940f-d12a5f990214 打印: None
2025-04-29 16:20:28,507 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,509 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,510 - sqlalchemy.engine.Engine - INFO - [cached since 0.3876s ago] ('6927da66-901a-4f14-9490-faa9031bb9e7', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 509997), datetime.datetime(2025, 4, 29, 16, 20, 28, 509997), 0)
2025-04-29 16:20:28,513 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,524 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,524 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,528 - sqlalchemy.engine.Engine - INFO - [cached since 0.482s ago] ('3b798545-87ff-4a11-86e6-9423114c0a78',)
2025-04-29 16:20:28,534 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:20:28,536 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:20:28,536 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,537 - sqlalchemy.engine.Engine - INFO - [cached since 0.3917s ago] (datetime.datetime(2025, 4, 29, 16, 20, 28, 536650), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 20, 28, 536650), '3b798545-87ff-4a11-86e6-9423114c0a78')
2025-04-29 16:20:28,542 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,555 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,556 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,557 - sqlalchemy.engine.Engine - INFO - [cached since 0.434s ago] ('4b854abb-b35c-4c19-a508-c5132ede1382', 1, '{"success": true, "message": "第3次循环, item=5"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 556384), datetime.datetime(2025, 4, 29, 16, 20, 28, 556384), 0)
2025-04-29 16:20:28,559 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,572 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:20:28,579 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:20:28,580 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:20:28,585 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,588 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,589 - sqlalchemy.engine.Engine - INFO - [cached since 0.5575s ago] ('d8accb48-2f0c-4e47-9b22-7fce12622c32', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"currentIndex": 3, "currentItem": 6}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 581549), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"currentIndex": 3, "currentItem": 6}', 1, datetime.datetime(2025, 4, 29, 16, 20, 28, 588381), datetime.datetime(2025, 4, 29, 16, 20, 28, 588381), 0)
2025-04-29 16:20:28,596 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,604 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: d8accb48-2f0c-4e47-9b22-7fce12622c32
2025-04-29 16:20:28,605 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,607 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,608 - sqlalchemy.engine.Engine - INFO - [cached since 0.5629s ago] ('d8accb48-2f0c-4e47-9b22-7fce12622c32',)
2025-04-29 16:20:28,610 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:20:28,612 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:20:28,613 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,614 - sqlalchemy.engine.Engine - INFO - [cached since 0.5034s ago] ('null', '执行中', "{'currentIndex': 3, 'currentItem': 6}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 20, 28, 613957), 'd8accb48-2f0c-4e47-9b22-7fce12622c32')
2025-04-29 16:20:28,615 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,628 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:20:28,628 - services.execution.handlers.foundation - INFO - 任务 d0e3910e-a626-4b0d-940f-d12a5f990214 打印: None
2025-04-29 16:20:28,629 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,630 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,632 - sqlalchemy.engine.Engine - INFO - [cached since 0.5083s ago] ('d7e6ca83-ec4a-4a28-a909-2068429accd0', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 630222), datetime.datetime(2025, 4, 29, 16, 20, 28, 630222), 0)
2025-04-29 16:20:28,635 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,643 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,644 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,645 - sqlalchemy.engine.Engine - INFO - [cached since 0.5997s ago] ('d8accb48-2f0c-4e47-9b22-7fce12622c32',)
2025-04-29 16:20:28,646 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:20:28,647 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:20:28,648 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,649 - sqlalchemy.engine.Engine - INFO - [cached since 0.5032s ago] (datetime.datetime(2025, 4, 29, 16, 20, 28, 648221), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 20, 28, 648221), 'd8accb48-2f0c-4e47-9b22-7fce12622c32')
2025-04-29 16:20:28,650 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,655 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:20:28,656 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,657 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,658 - sqlalchemy.engine.Engine - INFO - [cached since 0.6266s ago] ('96bbd618-d30a-48d8-998f-2dca61986a7f', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"currentIndex": 3, "currentItem": 6}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 656213), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"currentIndex": 3, "currentItem": 6}', 1, datetime.datetime(2025, 4, 29, 16, 20, 28, 657216), datetime.datetime(2025, 4, 29, 16, 20, 28, 657216), 0)
2025-04-29 16:20:28,659 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,666 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: 96bbd618-d30a-48d8-998f-2dca61986a7f
2025-04-29 16:20:28,666 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,667 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,667 - sqlalchemy.engine.Engine - INFO - [cached since 0.622s ago] ('96bbd618-d30a-48d8-998f-2dca61986a7f',)
2025-04-29 16:20:28,671 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:20:28,672 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:20:28,672 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,673 - sqlalchemy.engine.Engine - INFO - [cached since 0.5619s ago] ('null', '执行中', "{'currentIndex': 3, 'currentItem': 6}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 20, 28, 672076), '96bbd618-d30a-48d8-998f-2dca61986a7f')
2025-04-29 16:20:28,675 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,682 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:20:28,682 - services.execution.handlers.foundation - INFO - 任务 d0e3910e-a626-4b0d-940f-d12a5f990214 打印: None
2025-04-29 16:20:28,683 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,685 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,685 - sqlalchemy.engine.Engine - INFO - [cached since 0.5619s ago] ('ffcd11f1-061e-43ec-90d5-08b7db86d9a9', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 685085), datetime.datetime(2025, 4, 29, 16, 20, 28, 685085), 0)
2025-04-29 16:20:28,688 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,696 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,697 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,697 - sqlalchemy.engine.Engine - INFO - [cached since 0.652s ago] ('96bbd618-d30a-48d8-998f-2dca61986a7f',)
2025-04-29 16:20:28,700 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:20:28,700 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:20:28,701 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,701 - sqlalchemy.engine.Engine - INFO - [cached since 0.5555s ago] (datetime.datetime(2025, 4, 29, 16, 20, 28, 700086), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 20, 28, 701077), '96bbd618-d30a-48d8-998f-2dca61986a7f')
2025-04-29 16:20:28,703 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,714 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,715 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,716 - sqlalchemy.engine.Engine - INFO - [cached since 0.5925s ago] ('400c58ee-d74e-475c-90ba-aa4dafbd27f5', 1, '{"success": true, "message": "第4次循环, item=6"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 715086), datetime.datetime(2025, 4, 29, 16, 20, 28, 715086), 0)
2025-04-29 16:20:28,720 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,729 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:20:28,730 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:20:28,730 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:20:28,735 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,738 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,742 - sqlalchemy.engine.Engine - INFO - [cached since 0.7106s ago] ('aa4be8e6-79f6-4a03-9862-d539d3a93f90', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"currentIndex": 4, "currentItem": 7}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 731372), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"currentIndex": 4, "currentItem": 7}', 1, datetime.datetime(2025, 4, 29, 16, 20, 28, 738080), datetime.datetime(2025, 4, 29, 16, 20, 28, 738080), 0)
2025-04-29 16:20:28,744 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,751 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: aa4be8e6-79f6-4a03-9862-d539d3a93f90
2025-04-29 16:20:28,753 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,755 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,756 - sqlalchemy.engine.Engine - INFO - [cached since 0.7105s ago] ('aa4be8e6-79f6-4a03-9862-d539d3a93f90',)
2025-04-29 16:20:28,761 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:20:28,762 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:20:28,764 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,765 - sqlalchemy.engine.Engine - INFO - [cached since 0.6538s ago] ('null', '执行中', "{'currentIndex': 4, 'currentItem': 7}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 20, 28, 764236), 'aa4be8e6-79f6-4a03-9862-d539d3a93f90')
2025-04-29 16:20:28,771 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,777 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:20:28,777 - services.execution.handlers.foundation - INFO - 任务 d0e3910e-a626-4b0d-940f-d12a5f990214 打印: None
2025-04-29 16:20:28,779 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,781 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,782 - sqlalchemy.engine.Engine - INFO - [cached since 0.6584s ago] ('4756846e-9941-4337-bd39-9c645c140e56', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 781227), datetime.datetime(2025, 4, 29, 16, 20, 28, 781227), 0)
2025-04-29 16:20:28,785 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,803 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,806 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,807 - sqlalchemy.engine.Engine - INFO - [cached since 0.7619s ago] ('aa4be8e6-79f6-4a03-9862-d539d3a93f90',)
2025-04-29 16:20:28,809 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:20:28,810 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:20:28,811 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,812 - sqlalchemy.engine.Engine - INFO - [cached since 0.6664s ago] (datetime.datetime(2025, 4, 29, 16, 20, 28, 810553), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 20, 28, 811515), 'aa4be8e6-79f6-4a03-9862-d539d3a93f90')
2025-04-29 16:20:28,815 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,826 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:20:28,828 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,830 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,831 - sqlalchemy.engine.Engine - INFO - [cached since 0.7999s ago] ('24baa2c4-76c8-48dc-abbe-47d871052407', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"currentIndex": 4, "currentItem": 7}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 828424), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"currentIndex": 4, "currentItem": 7}', 1, datetime.datetime(2025, 4, 29, 16, 20, 28, 830560), datetime.datetime(2025, 4, 29, 16, 20, 28, 830560), 0)
2025-04-29 16:20:28,834 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,841 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: 24baa2c4-76c8-48dc-abbe-47d871052407
2025-04-29 16:20:28,842 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,844 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,845 - sqlalchemy.engine.Engine - INFO - [cached since 0.8004s ago] ('24baa2c4-76c8-48dc-abbe-47d871052407',)
2025-04-29 16:20:28,849 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:20:28,850 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:20:28,852 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,854 - sqlalchemy.engine.Engine - INFO - [cached since 0.7434s ago] ('null', '执行中', "{'currentIndex': 4, 'currentItem': 7}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 20, 28, 852567), '24baa2c4-76c8-48dc-abbe-47d871052407')
2025-04-29 16:20:28,857 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,866 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:20:28,866 - services.execution.handlers.foundation - INFO - 任务 d0e3910e-a626-4b0d-940f-d12a5f990214 打印: None
2025-04-29 16:20:28,869 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,871 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,871 - sqlalchemy.engine.Engine - INFO - [cached since 0.7485s ago] ('348a27e1-63ee-4d2b-85a4-e66f93048a62', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 870643), datetime.datetime(2025, 4, 29, 16, 20, 28, 870643), 0)
2025-04-29 16:20:28,874 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,888 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,889 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,891 - sqlalchemy.engine.Engine - INFO - [cached since 0.846s ago] ('24baa2c4-76c8-48dc-abbe-47d871052407',)
2025-04-29 16:20:28,893 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:20:28,896 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:20:28,897 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,898 - sqlalchemy.engine.Engine - INFO - [cached since 0.7531s ago] (datetime.datetime(2025, 4, 29, 16, 20, 28, 897645), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 20, 28, 897645), '24baa2c4-76c8-48dc-abbe-47d871052407')
2025-04-29 16:20:28,900 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,911 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,911 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,915 - sqlalchemy.engine.Engine - INFO - [cached since 0.7919s ago] ('99c9541f-9e5e-4c45-aa75-5306aeb15719', 1, '{"success": true, "message": "第5次循环, item=7"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 911645), datetime.datetime(2025, 4, 29, 16, 20, 28, 911645), 0)
2025-04-29 16:20:28,919 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,935 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:20:28,936 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:20:28,938 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:20:28,941 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,943 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,944 - sqlalchemy.engine.Engine - INFO - [cached since 0.9123s ago] ('d3dcceeb-a27d-4bd6-af9e-4044eb73d6b2', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"currentIndex": 5, "currentItem": 8}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 938581), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"currentIndex": 5, "currentItem": 8}', 1, datetime.datetime(2025, 4, 29, 16, 20, 28, 943584), datetime.datetime(2025, 4, 29, 16, 20, 28, 943584), 0)
2025-04-29 16:20:28,945 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,957 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: d3dcceeb-a27d-4bd6-af9e-4044eb73d6b2
2025-04-29 16:20:28,958 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,962 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,963 - sqlalchemy.engine.Engine - INFO - [cached since 0.9182s ago] ('d3dcceeb-a27d-4bd6-af9e-4044eb73d6b2',)
2025-04-29 16:20:28,965 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:20:28,967 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:20:28,971 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:28,971 - sqlalchemy.engine.Engine - INFO - [cached since 0.8608s ago] ('null', '执行中', "{'currentIndex': 5, 'currentItem': 8}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 20, 28, 970595), 'd3dcceeb-a27d-4bd6-af9e-4044eb73d6b2')
2025-04-29 16:20:28,973 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,976 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,978 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 16:20:28,979 - sqlalchemy.engine.Engine - INFO - [generated in 0.00092s] ('d0e3910e-a626-4b0d-940f-d12a5f990214',)
2025-04-29 16:20:28,980 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:28,985 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:20:28,986 - services.execution.handlers.foundation - INFO - 任务 d0e3910e-a626-4b0d-940f-d12a5f990214 打印: None
2025-04-29 16:20:28,987 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:28,987 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:28,988 - sqlalchemy.engine.Engine - INFO - [cached since 0.8648s ago] ('5f13c259-5d28-4369-b4a6-07a3eaa3edec', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 28, 987593), datetime.datetime(2025, 4, 29, 16, 20, 28, 987593), 0)
2025-04-29 16:20:28,996 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:29,009 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:29,009 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:29,010 - sqlalchemy.engine.Engine - INFO - [cached since 0.9652s ago] ('d3dcceeb-a27d-4bd6-af9e-4044eb73d6b2',)
2025-04-29 16:20:29,015 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:20:29,016 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:20:29,018 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:29,019 - sqlalchemy.engine.Engine - INFO - [cached since 0.8743s ago] (datetime.datetime(2025, 4, 29, 16, 20, 29, 17584), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 20, 29, 18593), 'd3dcceeb-a27d-4bd6-af9e-4044eb73d6b2')
2025-04-29 16:20:29,022 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:29,046 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:20:29,050 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:29,053 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:29,054 - sqlalchemy.engine.Engine - INFO - [cached since 1.023s ago] ('516dd2a3-eed8-4f09-8208-645deed67c14', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"currentIndex": 5, "currentItem": 8}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 29, 49588), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"currentIndex": 5, "currentItem": 8}', 1, datetime.datetime(2025, 4, 29, 16, 20, 29, 53592), datetime.datetime(2025, 4, 29, 16, 20, 29, 53592), 0)
2025-04-29 16:20:29,056 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:29,072 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: 516dd2a3-eed8-4f09-8208-645deed67c14
2025-04-29 16:20:29,073 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:29,076 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:29,078 - sqlalchemy.engine.Engine - INFO - [cached since 1.032s ago] ('516dd2a3-eed8-4f09-8208-645deed67c14',)
2025-04-29 16:20:29,079 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:20:29,080 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:20:29,082 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:29,082 - sqlalchemy.engine.Engine - INFO - [cached since 0.9717s ago] ('null', '执行中', "{'currentIndex': 5, 'currentItem': 8}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 20, 29, 82396), '516dd2a3-eed8-4f09-8208-645deed67c14')
2025-04-29 16:20:29,084 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:29,093 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:20:29,094 - services.execution.handlers.foundation - INFO - 任务 d0e3910e-a626-4b0d-940f-d12a5f990214 打印: None
2025-04-29 16:20:29,096 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:29,098 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:29,098 - sqlalchemy.engine.Engine - INFO - [cached since 0.9752s ago] ('0a4f2a8b-bc4e-441c-adb4-888f05433fd7', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 29, 98396), datetime.datetime(2025, 4, 29, 16, 20, 29, 98396), 0)
2025-04-29 16:20:29,100 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:29,117 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:29,119 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:29,120 - sqlalchemy.engine.Engine - INFO - [cached since 1.075s ago] ('516dd2a3-eed8-4f09-8208-645deed67c14',)
2025-04-29 16:20:29,121 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:20:29,122 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:20:29,123 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:29,124 - sqlalchemy.engine.Engine - INFO - [cached since 0.9786s ago] (datetime.datetime(2025, 4, 29, 16, 20, 29, 122399), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 20, 29, 123396), '516dd2a3-eed8-4f09-8208-645deed67c14')
2025-04-29 16:20:29,126 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:29,136 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:29,138 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:29,139 - sqlalchemy.engine.Engine - INFO - [cached since 1.016s ago] ('8532829f-3fae-4c43-a756-b0094956c133', 1, '{"success": true, "message": "第6次循环, item=8"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 29, 138506), datetime.datetime(2025, 4, 29, 16, 20, 29, 138506), 0)
2025-04-29 16:20:29,150 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:29,158 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:20:29,159 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:20:29,166 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:20:29,170 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:29,172 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:29,172 - sqlalchemy.engine.Engine - INFO - [cached since 1.141s ago] ('963e8581-cb3f-4dfd-aa7f-9b6f6913ba38', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"currentIndex": 6, "currentItem": 9}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 29, 169364), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"currentIndex": 6, "currentItem": 9}', 1, datetime.datetime(2025, 4, 29, 16, 20, 29, 171393), datetime.datetime(2025, 4, 29, 16, 20, 29, 171393), 0)
2025-04-29 16:20:29,175 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:29,185 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 963e8581-cb3f-4dfd-aa7f-9b6f6913ba38
2025-04-29 16:20:29,186 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:29,193 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:29,196 - sqlalchemy.engine.Engine - INFO - [cached since 1.151s ago] ('963e8581-cb3f-4dfd-aa7f-9b6f6913ba38',)
2025-04-29 16:20:29,197 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:20:29,200 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:20:29,200 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:29,201 - sqlalchemy.engine.Engine - INFO - [cached since 1.09s ago] ('null', '执行中', "{'currentIndex': 6, 'currentItem': 9}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 20, 29, 200357), '963e8581-cb3f-4dfd-aa7f-9b6f6913ba38')
2025-04-29 16:20:29,205 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:29,214 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:20:29,214 - services.execution.handlers.foundation - INFO - 任务 d0e3910e-a626-4b0d-940f-d12a5f990214 打印: None
2025-04-29 16:20:29,217 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:29,219 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:29,219 - sqlalchemy.engine.Engine - INFO - [cached since 1.096s ago] ('46b9b48e-c66a-491e-b51b-42e975c738d8', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 29, 219381), datetime.datetime(2025, 4, 29, 16, 20, 29, 219381), 0)
2025-04-29 16:20:29,223 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:29,230 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:29,232 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:29,235 - sqlalchemy.engine.Engine - INFO - [cached since 1.19s ago] ('963e8581-cb3f-4dfd-aa7f-9b6f6913ba38',)
2025-04-29 16:20:29,237 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:20:29,238 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:20:29,239 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:29,240 - sqlalchemy.engine.Engine - INFO - [cached since 1.094s ago] (datetime.datetime(2025, 4, 29, 16, 20, 29, 238286), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 20, 29, 239627), '963e8581-cb3f-4dfd-aa7f-9b6f6913ba38')
2025-04-29 16:20:29,243 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:29,253 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:20:29,255 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:29,259 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:29,260 - sqlalchemy.engine.Engine - INFO - [cached since 1.229s ago] ('47e50635-b451-4c2f-ad0a-14643ae29eb7', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"currentIndex": 6, "currentItem": 9}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 29, 255375), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"currentIndex": 6, "currentItem": 9}', 1, datetime.datetime(2025, 4, 29, 16, 20, 29, 259371), datetime.datetime(2025, 4, 29, 16, 20, 29, 259371), 0)
2025-04-29 16:20:29,263 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:29,275 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: 47e50635-b451-4c2f-ad0a-14643ae29eb7
2025-04-29 16:20:29,276 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:29,277 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:29,278 - sqlalchemy.engine.Engine - INFO - [cached since 1.233s ago] ('47e50635-b451-4c2f-ad0a-14643ae29eb7',)
2025-04-29 16:20:29,280 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:20:29,282 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:20:29,283 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:29,286 - sqlalchemy.engine.Engine - INFO - [cached since 1.176s ago] ('null', '执行中', "{'currentIndex': 6, 'currentItem': 9}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 20, 29, 283704), '47e50635-b451-4c2f-ad0a-14643ae29eb7')
2025-04-29 16:20:29,290 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:29,298 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:20:29,299 - services.execution.handlers.foundation - INFO - 任务 d0e3910e-a626-4b0d-940f-d12a5f990214 打印: None
2025-04-29 16:20:29,303 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:29,305 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:29,306 - sqlalchemy.engine.Engine - INFO - [cached since 1.183s ago] ('7b41885b-4ad6-43a4-a2dc-09aa32d92984', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 29, 305713), datetime.datetime(2025, 4, 29, 16, 20, 29, 305713), 0)
2025-04-29 16:20:29,309 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:29,317 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:29,319 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:29,320 - sqlalchemy.engine.Engine - INFO - [cached since 1.275s ago] ('47e50635-b451-4c2f-ad0a-14643ae29eb7',)
2025-04-29 16:20:29,324 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:20:29,325 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:20:29,329 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:29,330 - sqlalchemy.engine.Engine - INFO - [cached since 1.185s ago] (datetime.datetime(2025, 4, 29, 16, 20, 29, 328624), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 20, 29, 329710), '47e50635-b451-4c2f-ad0a-14643ae29eb7')
2025-04-29 16:20:29,333 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:29,342 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:29,346 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:29,347 - sqlalchemy.engine.Engine - INFO - [cached since 1.224s ago] ('11d44fc7-a6d5-4b08-9502-d587479214c0', 1, '{"success": true, "message": "第7次循环, item=9"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 29, 346629), datetime.datetime(2025, 4, 29, 16, 20, 29, 346629), 0)
2025-04-29 16:20:29,348 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:29,355 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:29,357 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:29,359 - sqlalchemy.engine.Engine - INFO - [cached since 1.235s ago] ('fd9df8e5-79a3-4c07-8b53-7bf9c4776d03', 1, '{"success": true, "message": "数组遍历成功，共遍历了 7 个元素", "output": {"iterationResults": [{"index": 0, "success": true, "result": {"success": true, "message" ... (1792 characters truncated) ... ts": [{"child_id": 2, "success": true, "output": {"message": null}}, {"child_id": 3, "success": true, "output": {"message": null}}]}}}], "count": 7}}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 29, 357630), datetime.datetime(2025, 4, 29, 16, 20, 29, 357630), 0)
2025-04-29 16:20:29,361 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:29,375 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:29,377 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:29,378 - sqlalchemy.engine.Engine - INFO - [cached since 1.333s ago] ('b1d2f077-7f9f-4665-953a-45c21eb3b7c6',)
2025-04-29 16:20:29,379 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 16:20:29,384 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 16:20:29,388 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:29,389 - sqlalchemy.engine.Engine - INFO - [generated in 0.00134s] (datetime.datetime(2025, 4, 29, 16, 20, 29, 385867), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, "{'currentIndex': 6, 'currentItem': 9}", '执行成功', datetime.datetime(2025, 4, 29, 16, 20, 29, 388840), 'b1d2f077-7f9f-4665-953a-45c21eb3b7c6')
2025-04-29 16:20:29,390 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:29,406 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:29,408 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:20:29,408 - sqlalchemy.engine.Engine - INFO - [cached since 1.285s ago] ('f2a69b20-68c6-4cef-bfe0-4a93ddf0a3a4', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, " ... (1893 characters truncated) ... : [{"child_id": 2, "success": true, "output": {"message": null}}, {"child_id": 3, "success": true, "output": {"message": null}}]}}}], "count": 7}}]}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'd0e3910e-a626-4b0d-940f-d12a5f990214', datetime.datetime(2025, 4, 29, 16, 20, 29, 408127), datetime.datetime(2025, 4, 29, 16, 20, 29, 408127), 0)
2025-04-29 16:20:29,418 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:29,428 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:29,429 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:29,430 - sqlalchemy.engine.Engine - INFO - [cached since 1.385s ago] ('57840ca9-1737-4afd-8bbc-5c4e5b9ca472',)
2025-04-29 16:20:29,431 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 16:20:29,433 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 16:20:29,434 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:20:29,435 - sqlalchemy.engine.Engine - INFO - [cached since 0.04693s ago] (datetime.datetime(2025, 4, 29, 16, 20, 29, 434080), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, "{'currentIndex': 6, 'currentItem': 9}", '执行成功', datetime.datetime(2025, 4, 29, 16, 20, 29, 434080), '57840ca9-1737-4afd-8bbc-5c4e5b9ca472')
2025-04-29 16:20:29,437 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:29,448 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:20:29,450 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 16:20:29,452 - sqlalchemy.engine.Engine - INFO - [generated in 0.00227s] (datetime.datetime(2025, 4, 29, 16, 20, 29, 447310), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 1431, 1, datetime.datetime(2025, 4, 29, 16, 20, 29, 450214), 'd0e3910e-a626-4b0d-940f-d12a5f990214')
2025-04-29 16:20:29,454 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:20:29,464 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 完成任务: d0e3910e-a626-4b0d-940f-d12a5f990214, 结果: True
2025-04-29 16:21:17,457 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 16:21:17,458 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 16:21:17,458 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 16:21:17,458 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 16:21:17,458 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 16:21:17,458 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 16:21:17,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 16:21:17,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 16:21:17,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 16:21:17,461 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 16:21:17,461 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 16:21:17,461 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 16:21:17,461 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 16:21:17,462 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 16:21:17,462 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 16:21:17,462 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 16:21:17,462 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 16:21:17,462 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 16:21:17,462 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 16:21:17,462 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 16:21:17,462 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 16:21:17,463 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 16:21:17,463 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 16:21:17,468 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 16:21:17,537 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:17,538 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 16:21:17,539 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 21, 17, 536150))
2025-04-29 16:21:17,540 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:18,985 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 16:21:18,988 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:18,989 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 16:21:18,992 - sqlalchemy.engine.Engine - INFO - [cached since 59.2s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 16:21:18,994 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:18,996 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:18,997 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 16:21:18,998 - sqlalchemy.engine.Engine - INFO - [cached since 59.2s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 16:21:18,999 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,000 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 16:21:19,000 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 16:21:19,000 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 16:21:19,002 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,003 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 16:21:19,006 - sqlalchemy.engine.Engine - INFO - [cached since 51.09s ago] (None, datetime.datetime(2025, 4, 29, 16, 21, 19, 3676), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 16:21:19,007 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,020 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,023 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 16:21:19,026 - sqlalchemy.engine.Engine - INFO - [cached since 59.23s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 16:21:19,028 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:19,029 - sqlalchemy.engine.Engine - INFO - [cached since 51.09s ago] ('a8d86010-d151-42a1-a022-d844b793fb1c', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 6, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (680 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 16, 21, 19, 590), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 16, 21, 19, 27829), datetime.datetime(2025, 4, 29, 16, 21, 19, 28856), 0)
2025-04-29 16:21:19,031 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,042 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,043 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 16:21:19,043 - sqlalchemy.engine.Engine - INFO - [cached since 51.09s ago] ('a8d86010-d151-42a1-a022-d844b793fb1c',)
2025-04-29 16:21:19,044 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,047 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 a8d86010-d151-42a1-a022-d844b793fb1c (优先级 1) 添加到队列 0
2025-04-29 16:21:19,047 - services.sync_service - INFO - 正在同步创建任务到天风系统: a8d86010-d151-42a1-a022-d844b793fb1c
2025-04-29 16:21:19,047 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"a8d86010-d151-42a1-a022-d844b793fb1c","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 16:21:19","sceneId":"1912043207186550785","needAmr":0}
2025-04-29 16:21:19,051 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: a8d86010-d151-42a1-a022-d844b793fb1c, 优先级: 1
2025-04-29 16:21:19,052 - services.execution.task_executor - DEBUG - 任务 a8d86010-d151-42a1-a022-d844b793fb1c 设置超时时间: 3600秒
2025-04-29 16:21:19,052 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,053 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 16:21:19,053 - sqlalchemy.engine.Engine - INFO - [cached since 51.1s ago] ('a8d86010-d151-42a1-a022-d844b793fb1c',)
2025-04-29 16:21:19,055 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 16:21:19,055 - sqlalchemy.engine.Engine - INFO - [cached since 59.26s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 16:21:19,056 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 16:21:19,057 - sqlalchemy.engine.Engine - INFO - [cached since 51.05s ago] (datetime.datetime(2025, 4, 29, 16, 21, 19, 56830), datetime.datetime(2025, 4, 29, 16, 21, 19, 56830), 'a8d86010-d151-42a1-a022-d844b793fb1c')
2025-04-29 16:21:19,058 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,068 - services.sync_service - INFO - 成功同步任务到系统任务: a8d86010-d151-42a1-a022-d844b793fb1c
2025-04-29 16:21:19,069 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: a8d86010-d151-42a1-a022-d844b793fb1c
2025-04-29 16:21:19,069 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: a8d86010-d151-42a1-a022-d844b793fb1c
2025-04-29 16:21:19,069 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,070 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 16:21:19,070 - sqlalchemy.engine.Engine - INFO - [cached since 51.05s ago] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 16, 21, 19, 70824), 'a8d86010-d151-42a1-a022-d844b793fb1c')
2025-04-29 16:21:19,071 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0866秒
2025-04-29 16:21:19,071 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,080 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 16:21:19,081 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,081 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:19,082 - sqlalchemy.engine.Engine - INFO - [cached since 51.05s ago] ('37170cf6-81e6-4c9a-99bc-3cf416ecbed7', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 19, 80825), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 16, 21, 19, 81832), datetime.datetime(2025, 4, 29, 16, 21, 19, 81832), 0)
2025-04-29 16:21:19,083 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,091 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,092 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,092 - sqlalchemy.engine.Engine - INFO - [cached since 51.05s ago] ('37170cf6-81e6-4c9a-99bc-3cf416ecbed7',)
2025-04-29 16:21:19,094 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 16:21:19,095 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 16:21:19,096 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,096 - sqlalchemy.engine.Engine - INFO - [cached since 51.04s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 21, 19, 96828), '37170cf6-81e6-4c9a-99bc-3cf416ecbed7')
2025-04-29 16:21:19,097 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,105 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 16:21:19,105 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 16:21:19,105 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: IterateListBp
2025-04-29 16:21:19,106 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,107 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:19,107 - sqlalchemy.engine.Engine - INFO - [cached since 51.08s ago] ('6dab6b1a-b352-47e8-82f5-c11e1bec8104', 'b1', '1', '', '{"list": {"type": "Simple", "value": "[3,4,5,6,7,8,9]", "required": true}}', '{"list": "[3,4,5,6,7,8,9]"}', '{}', 'IterateListBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 19, 106866), <TaskBlockRecordStatus.RUNNING: 1001>, '{"list": {"type": "Simple", "value": "[3,4,5,6,7,8,9]", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 29, 16, 21, 19, 107824), datetime.datetime(2025, 4, 29, 16, 21, 19, 107824), 0)
2025-04-29 16:21:19,109 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,118 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 6dab6b1a-b352-47e8-82f5-c11e1bec8104
2025-04-29 16:21:19,119 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,119 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,120 - sqlalchemy.engine.Engine - INFO - [cached since 51.07s ago] ('6dab6b1a-b352-47e8-82f5-c11e1bec8104',)
2025-04-29 16:21:19,121 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 16:21:19,121 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 16:21:19,121 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,122 - sqlalchemy.engine.Engine - INFO - [cached since 51.07s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 21, 19, 121053), '6dab6b1a-b352-47e8-82f5-c11e1bec8104')
2025-04-29 16:21:19,123 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,128 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-29 16:21:19,128 - services.execution.handlers.progress - INFO - 开始执行数组遍历块 - ID: 1, 名称: b1
2025-04-29 16:21:19,132 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:21:19,132 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:21:19,133 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:21:19,136 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,138 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:19,144 - sqlalchemy.engine.Engine - INFO - [cached since 51.11s ago] ('b1fcaa68-a902-4bdc-99e0-fa1b17f1bda6', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"currentIndex": 0, "currentItem": 3}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 19, 134055), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"currentIndex": 0, "currentItem": 3}', 1, datetime.datetime(2025, 4, 29, 16, 21, 19, 138049), datetime.datetime(2025, 4, 29, 16, 21, 19, 138049), 0)
2025-04-29 16:21:19,149 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,159 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: b1fcaa68-a902-4bdc-99e0-fa1b17f1bda6
2025-04-29 16:21:19,159 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,165 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,167 - sqlalchemy.engine.Engine - INFO - [cached since 51.12s ago] ('b1fcaa68-a902-4bdc-99e0-fa1b17f1bda6',)
2025-04-29 16:21:19,169 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:21:19,178 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:21:19,179 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,181 - sqlalchemy.engine.Engine - INFO - [cached since 51.07s ago] ('null', '执行中', "{'currentIndex': 0, 'currentItem': 3}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 21, 19, 179051), 'b1fcaa68-a902-4bdc-99e0-fa1b17f1bda6')
2025-04-29 16:21:19,184 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,194 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:21:19,195 - services.execution.handlers.foundation - INFO - 任务 a8d86010-d151-42a1-a022-d844b793fb1c 打印: None
2025-04-29 16:21:19,199 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,201 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:19,202 - sqlalchemy.engine.Engine - INFO - [cached since 51.08s ago] ('5b9f01a8-b3f3-4b55-b198-c147e9581674', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 19, 201048), datetime.datetime(2025, 4, 29, 16, 21, 19, 201048), 0)
2025-04-29 16:21:19,204 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,213 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,215 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,216 - sqlalchemy.engine.Engine - INFO - [cached since 51.17s ago] ('b1fcaa68-a902-4bdc-99e0-fa1b17f1bda6',)
2025-04-29 16:21:19,218 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:21:19,218 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:21:19,221 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,227 - sqlalchemy.engine.Engine - INFO - [cached since 51.08s ago] (datetime.datetime(2025, 4, 29, 16, 21, 19, 221356), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 21, 19, 221356), 'b1fcaa68-a902-4bdc-99e0-fa1b17f1bda6')
2025-04-29 16:21:19,230 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,238 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:21:19,242 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,245 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:19,246 - sqlalchemy.engine.Engine - INFO - [cached since 51.21s ago] ('b3a91888-68bd-4865-acd6-5d7055f21326', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"currentIndex": 0, "currentItem": 3}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 19, 239364), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"currentIndex": 0, "currentItem": 3}', 1, datetime.datetime(2025, 4, 29, 16, 21, 19, 245406), datetime.datetime(2025, 4, 29, 16, 21, 19, 245406), 0)
2025-04-29 16:21:19,248 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,258 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: b3a91888-68bd-4865-acd6-5d7055f21326
2025-04-29 16:21:19,259 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,261 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,262 - sqlalchemy.engine.Engine - INFO - [cached since 51.22s ago] ('b3a91888-68bd-4865-acd6-5d7055f21326',)
2025-04-29 16:21:19,264 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:21:19,268 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:21:19,270 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,271 - sqlalchemy.engine.Engine - INFO - [cached since 51.16s ago] ('null', '执行中', "{'currentIndex': 0, 'currentItem': 3}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 21, 19, 270359), 'b3a91888-68bd-4865-acd6-5d7055f21326')
2025-04-29 16:21:19,273 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,281 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:21:19,282 - services.execution.handlers.foundation - INFO - 任务 a8d86010-d151-42a1-a022-d844b793fb1c 打印: None
2025-04-29 16:21:19,285 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,287 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:19,289 - sqlalchemy.engine.Engine - INFO - [cached since 51.16s ago] ('de10db86-8464-487e-888f-adbff67a680d', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 19, 287368), datetime.datetime(2025, 4, 29, 16, 21, 19, 287368), 0)
2025-04-29 16:21:19,291 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,304 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,305 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,306 - sqlalchemy.engine.Engine - INFO - [cached since 51.26s ago] ('b3a91888-68bd-4865-acd6-5d7055f21326',)
2025-04-29 16:21:19,311 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:21:19,313 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:21:19,315 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,317 - sqlalchemy.engine.Engine - INFO - [cached since 51.17s ago] (datetime.datetime(2025, 4, 29, 16, 21, 19, 314435), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 21, 19, 314435), 'b3a91888-68bd-4865-acd6-5d7055f21326')
2025-04-29 16:21:19,318 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,335 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,338 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:19,339 - sqlalchemy.engine.Engine - INFO - [cached since 51.22s ago] ('8c74f1c7-8110-4508-84f0-f26b317ec159', 1, '{"success": true, "message": "第1次循环, item=3"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 19, 338134), datetime.datetime(2025, 4, 29, 16, 21, 19, 338134), 0)
2025-04-29 16:21:19,341 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,351 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:21:19,352 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:21:19,354 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:21:19,357 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,360 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:19,362 - sqlalchemy.engine.Engine - INFO - [cached since 51.33s ago] ('21693a33-a8b0-4be1-887c-25e08983f202', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"currentIndex": 1, "currentItem": 4}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 19, 355096), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"currentIndex": 1, "currentItem": 4}', 1, datetime.datetime(2025, 4, 29, 16, 21, 19, 360093), datetime.datetime(2025, 4, 29, 16, 21, 19, 360093), 0)
2025-04-29 16:21:19,367 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,376 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 21693a33-a8b0-4be1-887c-25e08983f202
2025-04-29 16:21:19,377 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,377 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,381 - sqlalchemy.engine.Engine - INFO - [cached since 51.34s ago] ('21693a33-a8b0-4be1-887c-25e08983f202',)
2025-04-29 16:21:19,383 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:21:19,385 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:21:19,387 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,388 - sqlalchemy.engine.Engine - INFO - [cached since 51.28s ago] ('null', '执行中', "{'currentIndex': 1, 'currentItem': 4}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 21, 19, 387095), '21693a33-a8b0-4be1-887c-25e08983f202')
2025-04-29 16:21:19,392 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,400 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:21:19,403 - services.execution.handlers.foundation - INFO - 任务 a8d86010-d151-42a1-a022-d844b793fb1c 打印: None
2025-04-29 16:21:19,413 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,414 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:19,415 - sqlalchemy.engine.Engine - INFO - [cached since 51.29s ago] ('6261e74e-770c-4138-82f4-0e8ac4852ed9', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 19, 414604), datetime.datetime(2025, 4, 29, 16, 21, 19, 414604), 0)
2025-04-29 16:21:19,420 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,431 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,432 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,433 - sqlalchemy.engine.Engine - INFO - [cached since 51.39s ago] ('21693a33-a8b0-4be1-887c-25e08983f202',)
2025-04-29 16:21:19,435 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:21:19,435 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:21:19,436 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,440 - sqlalchemy.engine.Engine - INFO - [cached since 51.3s ago] (datetime.datetime(2025, 4, 29, 16, 21, 19, 436587), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 21, 19, 436587), '21693a33-a8b0-4be1-887c-25e08983f202')
2025-04-29 16:21:19,445 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,455 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:21:19,460 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,461 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:19,461 - sqlalchemy.engine.Engine - INFO - [cached since 51.43s ago] ('b332346b-0bfa-40e5-b4c2-f358a0fcf648', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"currentIndex": 1, "currentItem": 4}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 19, 457586), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"currentIndex": 1, "currentItem": 4}', 1, datetime.datetime(2025, 4, 29, 16, 21, 19, 461588), datetime.datetime(2025, 4, 29, 16, 21, 19, 461588), 0)
2025-04-29 16:21:19,463 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,470 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: b332346b-0bfa-40e5-b4c2-f358a0fcf648
2025-04-29 16:21:19,470 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,472 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,474 - sqlalchemy.engine.Engine - INFO - [cached since 51.43s ago] ('b332346b-0bfa-40e5-b4c2-f358a0fcf648',)
2025-04-29 16:21:19,481 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:21:19,481 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:21:19,483 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,490 - sqlalchemy.engine.Engine - INFO - [cached since 51.38s ago] ('null', '执行中', "{'currentIndex': 1, 'currentItem': 4}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 21, 19, 483618), 'b332346b-0bfa-40e5-b4c2-f358a0fcf648')
2025-04-29 16:21:19,496 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,504 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:21:19,504 - services.execution.handlers.foundation - INFO - 任务 a8d86010-d151-42a1-a022-d844b793fb1c 打印: None
2025-04-29 16:21:19,505 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,507 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:19,509 - sqlalchemy.engine.Engine - INFO - [cached since 51.39s ago] ('fc993480-c7d0-4b43-a5d9-e02c27566b19', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 19, 507730), datetime.datetime(2025, 4, 29, 16, 21, 19, 507730), 0)
2025-04-29 16:21:19,515 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,526 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,528 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,529 - sqlalchemy.engine.Engine - INFO - [cached since 51.48s ago] ('b332346b-0bfa-40e5-b4c2-f358a0fcf648',)
2025-04-29 16:21:19,531 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:21:19,531 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:21:19,531 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,532 - sqlalchemy.engine.Engine - INFO - [cached since 51.39s ago] (datetime.datetime(2025, 4, 29, 16, 21, 19, 531969), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 21, 19, 531969), 'b332346b-0bfa-40e5-b4c2-f358a0fcf648')
2025-04-29 16:21:19,532 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,545 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,548 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:19,554 - sqlalchemy.engine.Engine - INFO - [cached since 51.43s ago] ('8d6f0ec7-4cda-47dc-93f7-41876ac568f8', 1, '{"success": true, "message": "第2次循环, item=4"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 19, 548052), datetime.datetime(2025, 4, 29, 16, 21, 19, 548052), 0)
2025-04-29 16:21:19,556 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,564 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:21:19,565 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:21:19,568 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:21:19,569 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,572 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:19,573 - sqlalchemy.engine.Engine - INFO - [cached since 51.54s ago] ('f78f1567-e63a-404e-8081-61a08442b4bf', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"currentIndex": 2, "currentItem": 5}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 19, 568044), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"currentIndex": 2, "currentItem": 5}', 1, datetime.datetime(2025, 4, 29, 16, 21, 19, 572045), datetime.datetime(2025, 4, 29, 16, 21, 19, 572045), 0)
2025-04-29 16:21:19,576 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,588 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: f78f1567-e63a-404e-8081-61a08442b4bf
2025-04-29 16:21:19,589 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,591 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,593 - sqlalchemy.engine.Engine - INFO - [cached since 51.55s ago] ('f78f1567-e63a-404e-8081-61a08442b4bf',)
2025-04-29 16:21:19,600 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:21:19,601 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:21:19,603 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,604 - sqlalchemy.engine.Engine - INFO - [cached since 51.49s ago] ('null', '执行中', "{'currentIndex': 2, 'currentItem': 5}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 21, 19, 603019), 'f78f1567-e63a-404e-8081-61a08442b4bf')
2025-04-29 16:21:19,610 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,629 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:21:19,632 - services.execution.handlers.foundation - INFO - 任务 a8d86010-d151-42a1-a022-d844b793fb1c 打印: None
2025-04-29 16:21:19,635 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,637 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:19,638 - sqlalchemy.engine.Engine - INFO - [cached since 51.51s ago] ('9c267226-5987-4ed2-b302-8633acc95599', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 19, 637494), datetime.datetime(2025, 4, 29, 16, 21, 19, 637494), 0)
2025-04-29 16:21:19,640 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,651 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,658 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,661 - sqlalchemy.engine.Engine - INFO - [cached since 51.62s ago] ('f78f1567-e63a-404e-8081-61a08442b4bf',)
2025-04-29 16:21:19,667 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:21:19,668 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:21:19,670 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,671 - sqlalchemy.engine.Engine - INFO - [cached since 51.53s ago] (datetime.datetime(2025, 4, 29, 16, 21, 19, 669602), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 21, 19, 670552), 'f78f1567-e63a-404e-8081-61a08442b4bf')
2025-04-29 16:21:19,672 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,678 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:21:19,679 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,681 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:19,682 - sqlalchemy.engine.Engine - INFO - [cached since 51.65s ago] ('0bfdeaa5-fba7-4ba2-92c8-3c9435711c5f', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"currentIndex": 2, "currentItem": 5}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 19, 678528), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"currentIndex": 2, "currentItem": 5}', 1, datetime.datetime(2025, 4, 29, 16, 21, 19, 681572), datetime.datetime(2025, 4, 29, 16, 21, 19, 681572), 0)
2025-04-29 16:21:19,684 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,692 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: 0bfdeaa5-fba7-4ba2-92c8-3c9435711c5f
2025-04-29 16:21:19,692 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,693 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,693 - sqlalchemy.engine.Engine - INFO - [cached since 51.65s ago] ('0bfdeaa5-fba7-4ba2-92c8-3c9435711c5f',)
2025-04-29 16:21:19,695 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:21:19,696 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:21:19,697 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,699 - sqlalchemy.engine.Engine - INFO - [cached since 51.59s ago] ('null', '执行中', "{'currentIndex': 2, 'currentItem': 5}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 21, 19, 697598), '0bfdeaa5-fba7-4ba2-92c8-3c9435711c5f')
2025-04-29 16:21:19,700 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,708 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:21:19,708 - services.execution.handlers.foundation - INFO - 任务 a8d86010-d151-42a1-a022-d844b793fb1c 打印: None
2025-04-29 16:21:19,709 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,710 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:19,711 - sqlalchemy.engine.Engine - INFO - [cached since 51.59s ago] ('880139aa-3e86-4a4c-a744-9a536a4426c0', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 19, 710491), datetime.datetime(2025, 4, 29, 16, 21, 19, 710491), 0)
2025-04-29 16:21:19,713 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,719 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,720 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,720 - sqlalchemy.engine.Engine - INFO - [cached since 51.68s ago] ('0bfdeaa5-fba7-4ba2-92c8-3c9435711c5f',)
2025-04-29 16:21:19,722 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:21:19,722 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:21:19,723 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,723 - sqlalchemy.engine.Engine - INFO - [cached since 51.58s ago] (datetime.datetime(2025, 4, 29, 16, 21, 19, 722494), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 21, 19, 723498), '0bfdeaa5-fba7-4ba2-92c8-3c9435711c5f')
2025-04-29 16:21:19,726 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,736 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,738 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:19,739 - sqlalchemy.engine.Engine - INFO - [cached since 51.62s ago] ('b1575f55-875d-4748-a483-91715dbb3ae7', 1, '{"success": true, "message": "第3次循环, item=5"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 19, 738285), datetime.datetime(2025, 4, 29, 16, 21, 19, 738285), 0)
2025-04-29 16:21:19,742 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,752 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:21:19,752 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:21:19,752 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:21:19,753 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,754 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:19,756 - sqlalchemy.engine.Engine - INFO - [cached since 51.72s ago] ('76fc297b-026b-47dc-922a-6767b1fa31de', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"currentIndex": 3, "currentItem": 6}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 19, 753375), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"currentIndex": 3, "currentItem": 6}', 1, datetime.datetime(2025, 4, 29, 16, 21, 19, 754296), datetime.datetime(2025, 4, 29, 16, 21, 19, 754296), 0)
2025-04-29 16:21:19,759 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,768 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 76fc297b-026b-47dc-922a-6767b1fa31de
2025-04-29 16:21:19,769 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,770 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,772 - sqlalchemy.engine.Engine - INFO - [cached since 51.73s ago] ('76fc297b-026b-47dc-922a-6767b1fa31de',)
2025-04-29 16:21:19,773 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:21:19,775 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:21:19,781 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,781 - sqlalchemy.engine.Engine - INFO - [cached since 51.67s ago] ('null', '执行中', "{'currentIndex': 3, 'currentItem': 6}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 21, 19, 780287), '76fc297b-026b-47dc-922a-6767b1fa31de')
2025-04-29 16:21:19,783 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,790 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:21:19,797 - services.execution.handlers.foundation - INFO - 任务 a8d86010-d151-42a1-a022-d844b793fb1c 打印: None
2025-04-29 16:21:19,798 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,799 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:19,800 - sqlalchemy.engine.Engine - INFO - [cached since 51.68s ago] ('624be49b-c1cf-45e5-a134-5a18a3c08bef', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 19, 799289), datetime.datetime(2025, 4, 29, 16, 21, 19, 799289), 0)
2025-04-29 16:21:19,803 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,814 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,816 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,817 - sqlalchemy.engine.Engine - INFO - [cached since 51.77s ago] ('76fc297b-026b-47dc-922a-6767b1fa31de',)
2025-04-29 16:21:19,822 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:21:19,822 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:21:19,824 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,827 - sqlalchemy.engine.Engine - INFO - [cached since 51.68s ago] (datetime.datetime(2025, 4, 29, 16, 21, 19, 823292), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 21, 19, 824289), '76fc297b-026b-47dc-922a-6767b1fa31de')
2025-04-29 16:21:19,830 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,837 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:21:19,840 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,842 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:19,844 - sqlalchemy.engine.Engine - INFO - [cached since 51.81s ago] ('7103d035-96a9-4d98-95e5-0c95d07fef42', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"currentIndex": 3, "currentItem": 6}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 19, 838288), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"currentIndex": 3, "currentItem": 6}', 1, datetime.datetime(2025, 4, 29, 16, 21, 19, 842310), datetime.datetime(2025, 4, 29, 16, 21, 19, 842310), 0)
2025-04-29 16:21:19,848 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,856 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: 7103d035-96a9-4d98-95e5-0c95d07fef42
2025-04-29 16:21:19,857 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,861 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,863 - sqlalchemy.engine.Engine - INFO - [cached since 51.82s ago] ('7103d035-96a9-4d98-95e5-0c95d07fef42',)
2025-04-29 16:21:19,865 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:21:19,866 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:21:19,870 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,871 - sqlalchemy.engine.Engine - INFO - [cached since 51.76s ago] ('null', '执行中', "{'currentIndex': 3, 'currentItem': 6}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 21, 19, 870321), '7103d035-96a9-4d98-95e5-0c95d07fef42')
2025-04-29 16:21:19,873 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,881 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:21:19,882 - services.execution.handlers.foundation - INFO - 任务 a8d86010-d151-42a1-a022-d844b793fb1c 打印: None
2025-04-29 16:21:19,884 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,886 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:19,887 - sqlalchemy.engine.Engine - INFO - [cached since 51.76s ago] ('d51fc1bb-596a-4363-ae2e-82f9f4ae549c', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 19, 886391), datetime.datetime(2025, 4, 29, 16, 21, 19, 886391), 0)
2025-04-29 16:21:19,891 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,905 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,908 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,910 - sqlalchemy.engine.Engine - INFO - [cached since 51.87s ago] ('7103d035-96a9-4d98-95e5-0c95d07fef42',)
2025-04-29 16:21:19,914 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:21:19,915 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:21:19,917 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,918 - sqlalchemy.engine.Engine - INFO - [cached since 51.77s ago] (datetime.datetime(2025, 4, 29, 16, 21, 19, 916777), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 21, 19, 917730), '7103d035-96a9-4d98-95e5-0c95d07fef42')
2025-04-29 16:21:19,920 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,928 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,932 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:19,932 - sqlalchemy.engine.Engine - INFO - [cached since 51.81s ago] ('93f4d124-e5a4-4240-8c65-b2276fe3e3ef', 1, '{"success": true, "message": "第4次循环, item=6"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 19, 932803), datetime.datetime(2025, 4, 29, 16, 21, 19, 932803), 0)
2025-04-29 16:21:19,941 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,954 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:21:19,955 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:21:19,957 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:21:19,959 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,961 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:19,963 - sqlalchemy.engine.Engine - INFO - [cached since 51.93s ago] ('6e94d147-cbfe-4c4a-9a12-bf879ab29bfa', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"currentIndex": 4, "currentItem": 7}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 19, 958073), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"currentIndex": 4, "currentItem": 7}', 1, datetime.datetime(2025, 4, 29, 16, 21, 19, 961039), datetime.datetime(2025, 4, 29, 16, 21, 19, 961039), 0)
2025-04-29 16:21:19,965 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:19,974 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 6e94d147-cbfe-4c4a-9a12-bf879ab29bfa
2025-04-29 16:21:19,977 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:19,979 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,980 - sqlalchemy.engine.Engine - INFO - [cached since 51.93s ago] ('6e94d147-cbfe-4c4a-9a12-bf879ab29bfa',)
2025-04-29 16:21:19,984 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:21:19,985 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:21:19,987 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:19,990 - sqlalchemy.engine.Engine - INFO - [cached since 51.88s ago] ('null', '执行中', "{'currentIndex': 4, 'currentItem': 7}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 21, 19, 987102), '6e94d147-cbfe-4c4a-9a12-bf879ab29bfa')
2025-04-29 16:21:19,995 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,003 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:21:20,003 - services.execution.handlers.foundation - INFO - 任务 a8d86010-d151-42a1-a022-d844b793fb1c 打印: None
2025-04-29 16:21:20,004 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,004 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:20,005 - sqlalchemy.engine.Engine - INFO - [cached since 51.88s ago] ('a6c16bef-e075-469b-96b7-814aa715a429', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 20, 4114), datetime.datetime(2025, 4, 29, 16, 21, 20, 4114), 0)
2025-04-29 16:21:20,007 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,020 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,022 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,024 - sqlalchemy.engine.Engine - INFO - [cached since 51.98s ago] ('6e94d147-cbfe-4c4a-9a12-bf879ab29bfa',)
2025-04-29 16:21:20,033 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:21:20,034 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:21:20,036 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,037 - sqlalchemy.engine.Engine - INFO - [cached since 51.89s ago] (datetime.datetime(2025, 4, 29, 16, 21, 20, 35560), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 21, 20, 36540), '6e94d147-cbfe-4c4a-9a12-bf879ab29bfa')
2025-04-29 16:21:20,039 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,047 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:21:20,049 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,052 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:20,055 - sqlalchemy.engine.Engine - INFO - [cached since 52.02s ago] ('ee0e0755-91b8-4af4-aada-44acff51a92f', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"currentIndex": 4, "currentItem": 7}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 20, 49613), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"currentIndex": 4, "currentItem": 7}', 1, datetime.datetime(2025, 4, 29, 16, 21, 20, 52531), datetime.datetime(2025, 4, 29, 16, 21, 20, 52531), 0)
2025-04-29 16:21:20,057 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,061 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 16:21:20,063 - sqlalchemy.engine.Engine - INFO - [cached since 51.08s ago] ('a8d86010-d151-42a1-a022-d844b793fb1c',)
2025-04-29 16:21:20,067 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,071 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,075 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: ee0e0755-91b8-4af4-aada-44acff51a92f
2025-04-29 16:21:20,075 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,076 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,076 - sqlalchemy.engine.Engine - INFO - [cached since 52.03s ago] ('ee0e0755-91b8-4af4-aada-44acff51a92f',)
2025-04-29 16:21:20,082 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:21:20,083 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:21:20,083 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,084 - sqlalchemy.engine.Engine - INFO - [cached since 51.97s ago] ('null', '执行中', "{'currentIndex': 4, 'currentItem': 7}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 21, 20, 83549), 'ee0e0755-91b8-4af4-aada-44acff51a92f')
2025-04-29 16:21:20,089 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,101 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:21:20,102 - services.execution.handlers.foundation - INFO - 任务 a8d86010-d151-42a1-a022-d844b793fb1c 打印: None
2025-04-29 16:21:20,105 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,112 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:20,114 - sqlalchemy.engine.Engine - INFO - [cached since 51.99s ago] ('4093c961-473f-43f0-b7b9-793c89d29d90', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 20, 112601), datetime.datetime(2025, 4, 29, 16, 21, 20, 112601), 0)
2025-04-29 16:21:20,117 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,127 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,132 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,133 - sqlalchemy.engine.Engine - INFO - [cached since 52.09s ago] ('ee0e0755-91b8-4af4-aada-44acff51a92f',)
2025-04-29 16:21:20,135 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:21:20,135 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:21:20,141 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,144 - sqlalchemy.engine.Engine - INFO - [cached since 52s ago] (datetime.datetime(2025, 4, 29, 16, 21, 20, 141014), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 21, 20, 141014), 'ee0e0755-91b8-4af4-aada-44acff51a92f')
2025-04-29 16:21:20,149 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,158 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,161 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:20,161 - sqlalchemy.engine.Engine - INFO - [cached since 52.04s ago] ('11d9b2c8-b712-4108-bb33-b1d15e05f73e', 1, '{"success": true, "message": "第5次循环, item=7"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 20, 161009), datetime.datetime(2025, 4, 29, 16, 21, 20, 161009), 0)
2025-04-29 16:21:20,165 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,173 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:21:20,174 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:21:20,175 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:21:20,179 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,181 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:20,182 - sqlalchemy.engine.Engine - INFO - [cached since 52.15s ago] ('28d10d22-4228-4109-b65f-48ee3cf5130b', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"currentIndex": 5, "currentItem": 8}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 20, 177008), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"currentIndex": 5, "currentItem": 8}', 1, datetime.datetime(2025, 4, 29, 16, 21, 20, 181015), datetime.datetime(2025, 4, 29, 16, 21, 20, 181015), 0)
2025-04-29 16:21:20,185 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,194 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 28d10d22-4228-4109-b65f-48ee3cf5130b
2025-04-29 16:21:20,195 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,197 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,198 - sqlalchemy.engine.Engine - INFO - [cached since 52.15s ago] ('28d10d22-4228-4109-b65f-48ee3cf5130b',)
2025-04-29 16:21:20,200 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:21:20,201 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:21:20,202 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,203 - sqlalchemy.engine.Engine - INFO - [cached since 52.09s ago] ('null', '执行中', "{'currentIndex': 5, 'currentItem': 8}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 21, 20, 202014), '28d10d22-4228-4109-b65f-48ee3cf5130b')
2025-04-29 16:21:20,205 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,218 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:21:20,219 - services.execution.handlers.foundation - INFO - 任务 a8d86010-d151-42a1-a022-d844b793fb1c 打印: None
2025-04-29 16:21:20,221 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,224 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:20,225 - sqlalchemy.engine.Engine - INFO - [cached since 52.1s ago] ('c4a0d921-d94a-4aa8-b5b2-7cd6f85f2a30', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 20, 223478), datetime.datetime(2025, 4, 29, 16, 21, 20, 223478), 0)
2025-04-29 16:21:20,228 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,236 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,237 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,239 - sqlalchemy.engine.Engine - INFO - [cached since 52.19s ago] ('28d10d22-4228-4109-b65f-48ee3cf5130b',)
2025-04-29 16:21:20,241 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:21:20,242 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:21:20,243 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,245 - sqlalchemy.engine.Engine - INFO - [cached since 52.1s ago] (datetime.datetime(2025, 4, 29, 16, 21, 20, 243210), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 21, 20, 243210), '28d10d22-4228-4109-b65f-48ee3cf5130b')
2025-04-29 16:21:20,248 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,255 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:21:20,255 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,256 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:20,257 - sqlalchemy.engine.Engine - INFO - [cached since 52.23s ago] ('e08c363e-5dff-4a74-bd44-973e6dab5dc4', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"currentIndex": 5, "currentItem": 8}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 20, 255223), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"currentIndex": 5, "currentItem": 8}', 1, datetime.datetime(2025, 4, 29, 16, 21, 20, 256203), datetime.datetime(2025, 4, 29, 16, 21, 20, 256203), 0)
2025-04-29 16:21:20,260 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,268 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: e08c363e-5dff-4a74-bd44-973e6dab5dc4
2025-04-29 16:21:20,268 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,269 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,270 - sqlalchemy.engine.Engine - INFO - [cached since 52.22s ago] ('e08c363e-5dff-4a74-bd44-973e6dab5dc4',)
2025-04-29 16:21:20,272 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:21:20,274 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:21:20,277 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,279 - sqlalchemy.engine.Engine - INFO - [cached since 52.17s ago] ('null', '执行中', "{'currentIndex': 5, 'currentItem': 8}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 21, 20, 277305), 'e08c363e-5dff-4a74-bd44-973e6dab5dc4')
2025-04-29 16:21:20,283 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,293 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:21:20,294 - services.execution.handlers.foundation - INFO - 任务 a8d86010-d151-42a1-a022-d844b793fb1c 打印: None
2025-04-29 16:21:20,297 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,299 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:20,301 - sqlalchemy.engine.Engine - INFO - [cached since 52.18s ago] ('6f3603b9-4408-4d42-b617-782c7ba4ca4d', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 20, 299219), datetime.datetime(2025, 4, 29, 16, 21, 20, 299219), 0)
2025-04-29 16:21:20,303 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,312 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,313 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,315 - sqlalchemy.engine.Engine - INFO - [cached since 52.27s ago] ('e08c363e-5dff-4a74-bd44-973e6dab5dc4',)
2025-04-29 16:21:20,317 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:21:20,318 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:21:20,319 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,320 - sqlalchemy.engine.Engine - INFO - [cached since 52.17s ago] (datetime.datetime(2025, 4, 29, 16, 21, 20, 318212), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 21, 20, 319207), 'e08c363e-5dff-4a74-bd44-973e6dab5dc4')
2025-04-29 16:21:20,324 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,333 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,334 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:20,335 - sqlalchemy.engine.Engine - INFO - [cached since 52.21s ago] ('dcec6f27-8136-4eef-b9b5-87e6681227d6', 1, '{"success": true, "message": "第6次循环, item=8"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 20, 334335), datetime.datetime(2025, 4, 29, 16, 21, 20, 334335), 0)
2025-04-29 16:21:20,339 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,348 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:21:20,349 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:21:20,351 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:21:20,355 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,357 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:20,360 - sqlalchemy.engine.Engine - INFO - [cached since 52.33s ago] ('1295b362-2cb6-40bb-8e1f-f3209964f3bb', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"currentIndex": 6, "currentItem": 9}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 20, 353347), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"currentIndex": 6, "currentItem": 9}', 1, datetime.datetime(2025, 4, 29, 16, 21, 20, 357208), datetime.datetime(2025, 4, 29, 16, 21, 20, 357208), 0)
2025-04-29 16:21:20,364 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,371 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 1295b362-2cb6-40bb-8e1f-f3209964f3bb
2025-04-29 16:21:20,372 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,377 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,382 - sqlalchemy.engine.Engine - INFO - [cached since 52.34s ago] ('1295b362-2cb6-40bb-8e1f-f3209964f3bb',)
2025-04-29 16:21:20,384 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:21:20,384 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:21:20,385 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,385 - sqlalchemy.engine.Engine - INFO - [cached since 52.27s ago] ('null', '执行中', "{'currentIndex': 6, 'currentItem': 9}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 21, 20, 385208), '1295b362-2cb6-40bb-8e1f-f3209964f3bb')
2025-04-29 16:21:20,386 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,394 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:21:20,396 - services.execution.handlers.foundation - INFO - 任务 a8d86010-d151-42a1-a022-d844b793fb1c 打印: None
2025-04-29 16:21:20,398 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,400 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:20,401 - sqlalchemy.engine.Engine - INFO - [cached since 52.28s ago] ('9cdb9f02-d799-494a-aba8-865f955894c1', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 20, 400203), datetime.datetime(2025, 4, 29, 16, 21, 20, 400203), 0)
2025-04-29 16:21:20,403 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,412 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,413 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,413 - sqlalchemy.engine.Engine - INFO - [cached since 52.37s ago] ('1295b362-2cb6-40bb-8e1f-f3209964f3bb',)
2025-04-29 16:21:20,416 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:21:20,417 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:21:20,419 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,420 - sqlalchemy.engine.Engine - INFO - [cached since 52.27s ago] (datetime.datetime(2025, 4, 29, 16, 21, 20, 418207), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 21, 20, 419219), '1295b362-2cb6-40bb-8e1f-f3209964f3bb')
2025-04-29 16:21:20,423 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,433 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:21:20,436 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,438 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:20,439 - sqlalchemy.engine.Engine - INFO - [cached since 52.41s ago] ('aedd1853-4b4a-45cb-9823-39915393f754', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"currentIndex": 6, "currentItem": 9}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 20, 435246), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"currentIndex": 6, "currentItem": 9}', 1, datetime.datetime(2025, 4, 29, 16, 21, 20, 438247), datetime.datetime(2025, 4, 29, 16, 21, 20, 438247), 0)
2025-04-29 16:21:20,443 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,451 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: aedd1853-4b4a-45cb-9823-39915393f754
2025-04-29 16:21:20,452 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,454 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,455 - sqlalchemy.engine.Engine - INFO - [cached since 52.41s ago] ('aedd1853-4b4a-45cb-9823-39915393f754',)
2025-04-29 16:21:20,458 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:21:20,459 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:21:20,461 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,462 - sqlalchemy.engine.Engine - INFO - [cached since 52.35s ago] ('null', '执行中', "{'currentIndex': 6, 'currentItem': 9}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 21, 20, 461244), 'aedd1853-4b4a-45cb-9823-39915393f754')
2025-04-29 16:21:20,464 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,477 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:21:20,478 - services.execution.handlers.foundation - INFO - 任务 a8d86010-d151-42a1-a022-d844b793fb1c 打印: None
2025-04-29 16:21:20,481 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,483 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:20,484 - sqlalchemy.engine.Engine - INFO - [cached since 52.36s ago] ('a13d5b7e-656a-4932-bed1-8456b5c3b107', 1, '{"success": true, "message": "打印成功", "output": {"message": null}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 20, 483244), datetime.datetime(2025, 4, 29, 16, 21, 20, 483244), 0)
2025-04-29 16:21:20,486 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,500 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,502 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,503 - sqlalchemy.engine.Engine - INFO - [cached since 52.46s ago] ('aedd1853-4b4a-45cb-9823-39915393f754',)
2025-04-29 16:21:20,507 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:21:20,508 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:21:20,509 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,512 - sqlalchemy.engine.Engine - INFO - [cached since 52.37s ago] (datetime.datetime(2025, 4, 29, 16, 21, 20, 509244), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 21, 20, 509244), 'aedd1853-4b4a-45cb-9823-39915393f754')
2025-04-29 16:21:20,515 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,525 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,526 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:20,527 - sqlalchemy.engine.Engine - INFO - [cached since 52.4s ago] ('98c84766-428f-48a2-8014-eccb759ad4c9', 1, '{"success": true, "message": "第7次循环, item=9"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 20, 526247), datetime.datetime(2025, 4, 29, 16, 21, 20, 526247), 0)
2025-04-29 16:21:20,532 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,540 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,547 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:20,547 - sqlalchemy.engine.Engine - INFO - [cached since 52.42s ago] ('e86d4573-d830-4cf9-890a-de6de4a023ac', 1, '{"success": true, "message": "数组遍历成功，共遍历了 7 个元素", "output": {"iterationResults": [{"index": 0, "success": true, "result": {"success": true, "message" ... (1792 characters truncated) ... ts": [{"child_id": 2, "success": true, "output": {"message": null}}, {"child_id": 3, "success": true, "output": {"message": null}}]}}}], "count": 7}}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 20, 547062), datetime.datetime(2025, 4, 29, 16, 21, 20, 547062), 0)
2025-04-29 16:21:20,551 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,560 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,562 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,562 - sqlalchemy.engine.Engine - INFO - [cached since 52.52s ago] ('6dab6b1a-b352-47e8-82f5-c11e1bec8104',)
2025-04-29 16:21:20,564 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 16:21:20,565 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 16:21:20,565 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,568 - sqlalchemy.engine.Engine - INFO - [cached since 51.18s ago] (datetime.datetime(2025, 4, 29, 16, 21, 20, 565979), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, "{'currentIndex': 6, 'currentItem': 9}", '执行成功', datetime.datetime(2025, 4, 29, 16, 21, 20, 565979), '6dab6b1a-b352-47e8-82f5-c11e1bec8104')
2025-04-29 16:21:20,574 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,582 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,584 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:21:20,584 - sqlalchemy.engine.Engine - INFO - [cached since 52.46s ago] ('6ded476d-b9b9-4bf1-b791-074142aeb155', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, " ... (1893 characters truncated) ... : [{"child_id": 2, "success": true, "output": {"message": null}}, {"child_id": 3, "success": true, "output": {"message": null}}]}}}], "count": 7}}]}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'a8d86010-d151-42a1-a022-d844b793fb1c', datetime.datetime(2025, 4, 29, 16, 21, 20, 584980), datetime.datetime(2025, 4, 29, 16, 21, 20, 584980), 0)
2025-04-29 16:21:20,589 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,596 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,598 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,600 - sqlalchemy.engine.Engine - INFO - [cached since 52.56s ago] ('37170cf6-81e6-4c9a-99bc-3cf416ecbed7',)
2025-04-29 16:21:20,601 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 16:21:20,605 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 16:21:20,605 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:21:20,608 - sqlalchemy.engine.Engine - INFO - [cached since 51.22s ago] (datetime.datetime(2025, 4, 29, 16, 21, 20, 605076), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, "{'currentIndex': 6, 'currentItem': 9}", '执行成功', datetime.datetime(2025, 4, 29, 16, 21, 20, 605976), '37170cf6-81e6-4c9a-99bc-3cf416ecbed7')
2025-04-29 16:21:20,611 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,622 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:21:20,625 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 16:21:20,626 - sqlalchemy.engine.Engine - INFO - [cached since 51.18s ago] (datetime.datetime(2025, 4, 29, 16, 21, 20, 620979), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 1553, 1, datetime.datetime(2025, 4, 29, 16, 21, 20, 625012), 'a8d86010-d151-42a1-a022-d844b793fb1c')
2025-04-29 16:21:20,629 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:21:20,635 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 完成任务: a8d86010-d151-42a1-a022-d844b793fb1c, 结果: True
2025-04-29 16:22:17,493 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 16:22:17,494 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 16:22:17,494 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 16:22:17,497 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 16:22:17,498 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 16:22:17,500 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 16:22:17,501 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 16:22:17,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 16:22:17,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 16:22:17,508 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 16:22:17,509 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 16:22:17,509 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 16:22:17,510 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 16:22:17,510 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 16:22:17,510 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 16:22:17,510 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 16:22:17,510 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 16:22:17,511 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 16:22:17,511 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 16:22:17,511 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 16:22:17,512 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 16:22:17,512 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 16:22:17,514 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 16:22:17,520 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 16:22:17,523 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:22:17,524 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 16:22:17,528 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 22, 17, 523145))
2025-04-29 16:22:17,532 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:22:32,518 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 16:22:32,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 16:22:32,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 16:22:32,520 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 16:22:32,520 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 16:22:32,521 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 16:23:17,545 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 16:23:17,547 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 16:23:17,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 16:23:17,550 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 16:23:17,551 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 16:23:17,552 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 16:23:17,555 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 16:23:17,555 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 16:23:17,557 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 16:23:17,559 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:23:17,562 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 16:23:17,562 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 23, 17, 546905))
2025-04-29 16:23:17,563 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 16:23:17,563 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 16:23:17,564 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 16:23:17,565 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 16:23:17,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 16:23:17,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 16:23:17,568 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 16:23:17,569 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 16:23:17,569 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 16:23:17,571 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:23:17,576 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 16:23:17,576 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 16:23:17,577 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 16:23:17,577 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 16:23:17,578 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 16:23:17,586 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 16:23:32,587 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 16:23:32,589 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 16:23:32,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 16:23:32,590 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 16:23:32,590 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 16:23:32,591 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 16:24:17,584 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 16:24:17,588 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 16:24:17,588 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 16:24:17,589 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 16:24:17,593 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 16:24:17,593 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 16:24:17,594 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 16:24:17,594 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 16:24:17,594 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 16:24:17,595 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:24:17,595 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 16:24:17,596 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 24, 17, 588753))
2025-04-29 16:24:17,597 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 16:24:17,598 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 16:24:17,598 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 16:24:17,599 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 16:24:17,599 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 16:24:17,599 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 16:24:17,599 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 16:24:17,600 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 16:24:17,600 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 16:24:17,601 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:24:17,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 16:24:17,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 16:24:17,602 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 16:24:17,602 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 16:24:17,602 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 16:24:17,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 16:24:32,614 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 16:24:32,617 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 16:24:32,618 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 16:24:32,619 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 16:24:32,627 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 16:24:32,631 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 16:24:32,837 - app - INFO - 应用程序关闭中...
2025-04-29 16:24:32,838 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 16:24:32,839 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 16:24:32,846 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 16:24:32,847 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 16:24:32,848 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 16:24:32,851 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 16:24:32,851 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 16:24:32,853 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 16:24:32,859 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 16:24:32,862 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 16:24:32,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 16:24:32,866 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 16:24:32,867 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 16:24:32,869 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 16:24:32,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 16:24:32,885 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 16:24:32,885 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 16:24:32,885 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 16:24:32,892 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 16:24:32,896 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 16:24:32,898 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 16:24:32,898 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-29 16:24:32,899 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 16:24:32,899 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 16:24:32,900 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 0
2025-04-29 16:24:32,900 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 16:24:32,901 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 16:24:32,907 - app - INFO - 增强版任务调度器已停止
2025-04-29 16:24:32,918 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 16:24:32,920 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 16:24:32,924 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 16:24:32,931 - data.session - INFO - 数据库连接已关闭
2025-04-29 16:24:34,442 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 16:24:34,510 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 16:24:34,518 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 16:24:34,584 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 16:24:34,634 - data.session - INFO - 正在初始化数据库...
2025-04-29 16:24:34,670 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 16:24:34,694 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 16:24:34,695 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:24:34,700 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 16:24:34,700 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:24:34,703 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 16:24:34,703 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:24:34,706 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:24:34,707 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 16:24:34,710 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:24:34,713 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 16:24:34,714 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:24:34,717 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 16:24:34,721 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:24:34,726 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 16:24:34,729 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:24:34,734 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 16:24:34,740 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:24:34,744 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 16:24:34,745 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:24:34,746 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 16:24:34,750 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:24:34,754 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 16:24:34,754 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:24:34,756 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 16:24:34,756 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:24:34,758 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 16:24:34,759 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:24:34,760 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 16:24:34,761 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:24:34,763 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:24:34,764 - data.session - INFO - 数据库表初始化完成
2025-04-29 16:24:35,121 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 16:24:35,121 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 16:24:35,123 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 16:24:35,125 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 16:24:35,125 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 16:24:35,125 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 16:24:35,125 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 16:24:35,126 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 16:24:35,129 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 16:24:35,130 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 16:24:35,130 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 16:24:35,133 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 16:24:35,133 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 16:24:35,136 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 16:24:35,136 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 16:24:35,137 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 16:24:35,137 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 16:24:35,137 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 16:24:35,138 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 16:24:35,138 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 16:24:35,139 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 16:24:35,140 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 16:24:35,141 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:24:35,141 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 16:24:35,142 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:24:35,142 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 16:24:35,143 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:24:35,144 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:24:35,155 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 16:24:35,155 - sqlalchemy.engine.Engine - INFO - [generated in 0.00070s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 16:24:35,157 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 16:24:35,158 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:24:35,160 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 16:24:35,161 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 16:24:35,162 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 16:24:35,167 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:24:35,169 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 16:24:35,171 - sqlalchemy.engine.Engine - INFO - [generated in 0.00111s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 16:24:35,172 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:24:35,172 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 16:24:35,173 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 16:24:35,173 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 16:24:35,173 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 16:24:35,173 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 16:24:35,174 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:24:35,175 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 16:24:35,175 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 24, 35, 167558))
2025-04-29 16:24:35,177 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:24:59,855 - app - INFO - 应用程序关闭中...
2025-04-29 16:24:59,856 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 16:24:59,856 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 16:24:59,857 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 16:24:59,857 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 16:24:59,857 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 16:24:59,857 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 16:24:59,857 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 16:24:59,857 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 16:24:59,858 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 16:24:59,858 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 16:24:59,858 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 16:24:59,858 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 16:24:59,859 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 16:24:59,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 16:24:59,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 16:24:59,859 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 16:24:59,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 16:24:59,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 16:24:59,860 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 16:24:59,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 16:24:59,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 16:24:59,860 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 16:24:59,861 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 16:24:59,861 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 16:24:59,861 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 16:24:59,861 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 16:24:59,861 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 16:24:59,861 - app - INFO - 增强版任务调度器已停止
2025-04-29 16:24:59,862 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 16:24:59,862 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 16:24:59,862 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 16:24:59,863 - data.session - INFO - 数据库连接已关闭
2025-04-29 16:25:02,178 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 16:25:02,238 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 16:25:02,243 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 16:25:02,980 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 16:25:03,041 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 16:25:03,054 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 16:25:03,120 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 16:25:03,169 - data.session - INFO - 正在初始化数据库...
2025-04-29 16:25:03,208 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 16:25:03,227 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 16:25:03,242 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:25:03,244 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 16:25:03,245 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:25:03,249 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 16:25:03,253 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:25:03,258 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:03,259 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 16:25:03,259 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:25:03,261 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 16:25:03,262 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:25:03,263 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 16:25:03,263 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:25:03,264 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 16:25:03,265 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:25:03,266 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 16:25:03,269 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:25:03,271 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 16:25:03,273 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:25:03,274 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 16:25:03,274 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:25:03,276 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 16:25:03,276 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:25:03,286 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 16:25:03,290 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:25:03,293 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 16:25:03,294 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:25:03,296 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 16:25:03,305 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:25:03,306 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:03,319 - data.session - INFO - 数据库表初始化完成
2025-04-29 16:25:03,655 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 16:25:03,656 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 16:25:03,663 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 16:25:03,664 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 16:25:03,666 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 16:25:03,669 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 16:25:03,670 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 16:25:03,670 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 16:25:03,672 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 16:25:03,675 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 16:25:03,677 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 16:25:03,678 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 16:25:03,678 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 16:25:03,681 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 16:25:03,683 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 16:25:03,688 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 16:25:03,688 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 16:25:03,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 16:25:03,691 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 16:25:03,693 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 16:25:03,695 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 16:25:03,695 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 16:25:03,700 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:25:03,702 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 16:25:03,705 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:25:03,705 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 16:25:03,709 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:25:03,713 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:03,732 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 16:25:03,740 - sqlalchemy.engine.Engine - INFO - [generated in 0.00856s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 16:25:03,742 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 16:25:03,743 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:03,747 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 16:25:03,751 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 16:25:03,753 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 16:25:03,753 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:03,756 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 16:25:03,770 - sqlalchemy.engine.Engine - INFO - [generated in 0.01360s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 16:25:03,787 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:03,790 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 16:25:03,792 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 16:25:03,800 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 16:25:03,803 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 16:25:03,805 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 16:25:03,806 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:03,818 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 16:25:03,829 - sqlalchemy.engine.Engine - INFO - [generated in 0.01160s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 25, 3, 753603))
2025-04-29 16:25:03,831 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:09,827 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 16:25:09,835 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:09,841 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 16:25:09,846 - sqlalchemy.engine.Engine - INFO - [generated in 0.00549s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 16:25:09,849 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:09,851 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:09,861 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 16:25:09,861 - sqlalchemy.engine.Engine - INFO - [cached since 0.02082s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 16:25:09,863 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:09,864 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 16:25:09,864 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 16:25:09,864 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 16:25:09,866 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:09,868 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 16:25:09,868 - sqlalchemy.engine.Engine - INFO - [generated in 0.00056s] (None, datetime.datetime(2025, 4, 29, 16, 25, 9, 868860), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 16:25:09,869 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:09,876 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:09,877 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 16:25:09,878 - sqlalchemy.engine.Engine - INFO - [cached since 0.03809s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 16:25:09,880 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:09,882 - sqlalchemy.engine.Engine - INFO - [generated in 0.00163s] ('0f979a35-d496-46b7-9f41-b0fbfb8cd47f', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 6, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (680 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 16, 25, 9, 864860), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 16, 25, 9, 880931), datetime.datetime(2025, 4, 29, 16, 25, 9, 880931), 0)
2025-04-29 16:25:09,886 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:09,892 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:09,895 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 16:25:09,896 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] ('0f979a35-d496-46b7-9f41-b0fbfb8cd47f',)
2025-04-29 16:25:09,900 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:09,902 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 0f979a35-d496-46b7-9f41-b0fbfb8cd47f (优先级 1) 添加到队列 0
2025-04-29 16:25:09,904 - services.sync_service - INFO - 正在同步创建任务到天风系统: 0f979a35-d496-46b7-9f41-b0fbfb8cd47f
2025-04-29 16:25:09,905 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"0f979a35-d496-46b7-9f41-b0fbfb8cd47f","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 16:25:09","sceneId":"1912043207186550785","needAmr":0}
2025-04-29 16:25:09,973 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 0f979a35-d496-46b7-9f41-b0fbfb8cd47f, 优先级: 1
2025-04-29 16:25:09,973 - services.execution.task_executor - DEBUG - 任务 0f979a35-d496-46b7-9f41-b0fbfb8cd47f 设置超时时间: 3600秒
2025-04-29 16:25:09,973 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:09,974 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 16:25:09,975 - sqlalchemy.engine.Engine - INFO - [cached since 0.07971s ago] ('0f979a35-d496-46b7-9f41-b0fbfb8cd47f',)
2025-04-29 16:25:09,976 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 16:25:09,977 - sqlalchemy.engine.Engine - INFO - [cached since 0.1379s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 16:25:09,985 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 16:25:09,988 - sqlalchemy.engine.Engine - INFO - [generated in 0.00313s] (datetime.datetime(2025, 4, 29, 16, 25, 9, 984977), datetime.datetime(2025, 4, 29, 16, 25, 9, 985982), '0f979a35-d496-46b7-9f41-b0fbfb8cd47f')
2025-04-29 16:25:09,990 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:09,991 - services.sync_service - INFO - 成功同步任务到系统任务: 0f979a35-d496-46b7-9f41-b0fbfb8cd47f
2025-04-29 16:25:09,992 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 0f979a35-d496-46b7-9f41-b0fbfb8cd47f
2025-04-29 16:25:09,992 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 0f979a35-d496-46b7-9f41-b0fbfb8cd47f
2025-04-29 16:25:09,995 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1689秒
2025-04-29 16:25:09,998 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,000 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 16:25:10,005 - sqlalchemy.engine.Engine - INFO - [generated in 0.00488s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 16, 25, 10, 924), '0f979a35-d496-46b7-9f41-b0fbfb8cd47f')
2025-04-29 16:25:10,007 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,015 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 16:25:10,016 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,018 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,018 - sqlalchemy.engine.Engine - INFO - [generated in 0.00066s] ('3dd1b3ef-fddf-4ec0-a4f6-3cc6bc1e2cd0', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 16058), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 16, 25, 10, 18073), datetime.datetime(2025, 4, 29, 16, 25, 10, 18073), 0)
2025-04-29 16:25:10,021 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,027 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,033 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,034 - sqlalchemy.engine.Engine - INFO - [generated in 0.00132s] ('3dd1b3ef-fddf-4ec0-a4f6-3cc6bc1e2cd0',)
2025-04-29 16:25:10,036 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 16:25:10,036 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 16:25:10,037 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,037 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 25, 10, 37066), '3dd1b3ef-fddf-4ec0-a4f6-3cc6bc1e2cd0')
2025-04-29 16:25:10,039 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,047 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 16:25:10,048 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 16:25:10,048 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: IterateListBp
2025-04-29 16:25:10,049 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,050 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,052 - sqlalchemy.engine.Engine - INFO - [cached since 0.03407s ago] ('d4a231cf-d77e-4e0b-8c63-37d219737646', 'b1', '1', '', '{"list": {"type": "Simple", "value": "[3,4,5,6,7,8,9]", "required": true}}', '{"list": "[3,4,5,6,7,8,9]"}', '{}', 'IterateListBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 48058), <TaskBlockRecordStatus.RUNNING: 1001>, '{"list": {"type": "Simple", "value": "[3,4,5,6,7,8,9]", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 29, 16, 25, 10, 50066), datetime.datetime(2025, 4, 29, 16, 25, 10, 50066), 0)
2025-04-29 16:25:10,053 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,061 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: d4a231cf-d77e-4e0b-8c63-37d219737646
2025-04-29 16:25:10,062 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,064 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,066 - sqlalchemy.engine.Engine - INFO - [cached since 0.03286s ago] ('d4a231cf-d77e-4e0b-8c63-37d219737646',)
2025-04-29 16:25:10,067 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 16:25:10,068 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 16:25:10,068 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,069 - sqlalchemy.engine.Engine - INFO - [cached since 0.03179s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 25, 10, 68034), 'd4a231cf-d77e-4e0b-8c63-37d219737646')
2025-04-29 16:25:10,070 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,076 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-29 16:25:10,079 - services.execution.handlers.progress - INFO - 开始执行数组遍历块 - ID: 1, 名称: b1
2025-04-29 16:25:10,079 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:25:10,079 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:25:10,079 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:25:10,080 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,083 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,084 - sqlalchemy.engine.Engine - INFO - [cached since 0.06583s ago] ('c359e294-e75b-409a-9eee-c8e7305b680a', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"currentIndex": 0, "currentItem": 3}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 80049), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"currentIndex": 0, "currentItem": 3}', 1, datetime.datetime(2025, 4, 29, 16, 25, 10, 83042), datetime.datetime(2025, 4, 29, 16, 25, 10, 83042), 0)
2025-04-29 16:25:10,085 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,091 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: c359e294-e75b-409a-9eee-c8e7305b680a
2025-04-29 16:25:10,091 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,093 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,095 - sqlalchemy.engine.Engine - INFO - [cached since 0.06217s ago] ('c359e294-e75b-409a-9eee-c8e7305b680a',)
2025-04-29 16:25:10,100 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:25:10,100 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:25:10,101 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,101 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] ('null', '执行中', "{'currentIndex': 0, 'currentItem': 3}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 25, 10, 101053), 'c359e294-e75b-409a-9eee-c8e7305b680a')
2025-04-29 16:25:10,102 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,109 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:25:10,109 - services.execution.handlers.foundation - INFO - 任务 0f979a35-d496-46b7-9f41-b0fbfb8cd47f 打印: {'currentIndex': 0, 'currentItem': 3}
2025-04-29 16:25:10,110 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,112 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,113 - sqlalchemy.engine.Engine - INFO - [generated in 0.00115s] ('e86514bd-9256-41c2-86a4-724652794814', 1, '{"success": true, "message": "打印成功", "output": {"message": {"currentIndex": 0, "currentItem": 3}}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 112050), datetime.datetime(2025, 4, 29, 16, 25, 10, 112050), 0)
2025-04-29 16:25:10,116 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,124 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,125 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,126 - sqlalchemy.engine.Engine - INFO - [cached since 0.09311s ago] ('c359e294-e75b-409a-9eee-c8e7305b680a',)
2025-04-29 16:25:10,128 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:25:10,129 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:25:10,129 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,129 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (datetime.datetime(2025, 4, 29, 16, 25, 10, 129051), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 25, 10, 129051), 'c359e294-e75b-409a-9eee-c8e7305b680a')
2025-04-29 16:25:10,135 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,142 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:25:10,145 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,146 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,147 - sqlalchemy.engine.Engine - INFO - [cached since 0.1297s ago] ('5bd11bff-fe14-4c4c-a96d-86cbd4d87b81', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"currentIndex": 0, "currentItem": 3}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 143145), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"currentIndex": 0, "currentItem": 3}', 1, datetime.datetime(2025, 4, 29, 16, 25, 10, 146145), datetime.datetime(2025, 4, 29, 16, 25, 10, 146145), 0)
2025-04-29 16:25:10,149 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,156 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: 5bd11bff-fe14-4c4c-a96d-86cbd4d87b81
2025-04-29 16:25:10,158 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,159 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,160 - sqlalchemy.engine.Engine - INFO - [cached since 0.1266s ago] ('5bd11bff-fe14-4c4c-a96d-86cbd4d87b81',)
2025-04-29 16:25:10,162 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:25:10,162 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:25:10,163 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,165 - sqlalchemy.engine.Engine - INFO - [cached since 0.06395s ago] ('null', '执行中', "{'currentIndex': 0, 'currentItem': 3}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 25, 10, 162098), '5bd11bff-fe14-4c4c-a96d-86cbd4d87b81')
2025-04-29 16:25:10,167 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,173 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:25:10,176 - services.execution.handlers.foundation - INFO - 任务 0f979a35-d496-46b7-9f41-b0fbfb8cd47f 打印: {'currentIndex': 0, 'currentItem': 3}
2025-04-29 16:25:10,177 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,178 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,180 - sqlalchemy.engine.Engine - INFO - [cached since 0.06928s ago] ('8f5e196a-f94a-42e2-a19e-d7b8f91487da', 1, '{"success": true, "message": "打印成功", "output": {"message": {"currentIndex": 0, "currentItem": 3}}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 178662), datetime.datetime(2025, 4, 29, 16, 25, 10, 178662), 0)
2025-04-29 16:25:10,184 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,193 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,195 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,196 - sqlalchemy.engine.Engine - INFO - [cached since 0.1641s ago] ('5bd11bff-fe14-4c4c-a96d-86cbd4d87b81',)
2025-04-29 16:25:10,199 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:25:10,202 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:25:10,205 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,205 - sqlalchemy.engine.Engine - INFO - [cached since 0.07628s ago] (datetime.datetime(2025, 4, 29, 16, 25, 10, 203990), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 25, 10, 205047), '5bd11bff-fe14-4c4c-a96d-86cbd4d87b81')
2025-04-29 16:25:10,208 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,222 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,222 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,223 - sqlalchemy.engine.Engine - INFO - [cached since 0.1116s ago] ('d3085eed-5984-4a65-858f-374c37d5d62c', 1, '{"success": true, "message": "第1次循环, item=3"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 222573), datetime.datetime(2025, 4, 29, 16, 25, 10, 222573), 0)
2025-04-29 16:25:10,224 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,232 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:25:10,232 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:25:10,232 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:25:10,237 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,239 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,240 - sqlalchemy.engine.Engine - INFO - [cached since 0.2224s ago] ('6ac0aab3-a35b-4743-bb5e-59f64f01d9f2', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"currentIndex": 1, "currentItem": 4}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 234578), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"currentIndex": 1, "currentItem": 4}', 1, datetime.datetime(2025, 4, 29, 16, 25, 10, 238577), datetime.datetime(2025, 4, 29, 16, 25, 10, 238577), 0)
2025-04-29 16:25:10,244 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,251 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 6ac0aab3-a35b-4743-bb5e-59f64f01d9f2
2025-04-29 16:25:10,251 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,255 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,256 - sqlalchemy.engine.Engine - INFO - [cached since 0.2229s ago] ('6ac0aab3-a35b-4743-bb5e-59f64f01d9f2',)
2025-04-29 16:25:10,258 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:25:10,258 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:25:10,258 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,260 - sqlalchemy.engine.Engine - INFO - [cached since 0.1597s ago] ('null', '执行中', "{'currentIndex': 1, 'currentItem': 4}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 25, 10, 258071), '6ac0aab3-a35b-4743-bb5e-59f64f01d9f2')
2025-04-29 16:25:10,265 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,280 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:25:10,280 - services.execution.handlers.foundation - INFO - 任务 0f979a35-d496-46b7-9f41-b0fbfb8cd47f 打印: {'currentIndex': 1, 'currentItem': 4}
2025-04-29 16:25:10,281 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,284 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,285 - sqlalchemy.engine.Engine - INFO - [cached since 0.1735s ago] ('4079331e-b1db-46ad-89ba-1861cfb0e07d', 1, '{"success": true, "message": "打印成功", "output": {"message": {"currentIndex": 1, "currentItem": 4}}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 284092), datetime.datetime(2025, 4, 29, 16, 25, 10, 284092), 0)
2025-04-29 16:25:10,287 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,300 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,302 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,305 - sqlalchemy.engine.Engine - INFO - [cached since 0.2715s ago] ('6ac0aab3-a35b-4743-bb5e-59f64f01d9f2',)
2025-04-29 16:25:10,307 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:25:10,308 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:25:10,308 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,309 - sqlalchemy.engine.Engine - INFO - [cached since 0.1803s ago] (datetime.datetime(2025, 4, 29, 16, 25, 10, 308078), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 25, 10, 308078), '6ac0aab3-a35b-4743-bb5e-59f64f01d9f2')
2025-04-29 16:25:10,311 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,322 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:25:10,323 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,324 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,327 - sqlalchemy.engine.Engine - INFO - [cached since 0.3095s ago] ('4b94c533-0861-44d3-a177-2a0e3604ee56', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"currentIndex": 1, "currentItem": 4}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 323665), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"currentIndex": 1, "currentItem": 4}', 1, datetime.datetime(2025, 4, 29, 16, 25, 10, 324665), datetime.datetime(2025, 4, 29, 16, 25, 10, 324665), 0)
2025-04-29 16:25:10,329 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,341 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: 4b94c533-0861-44d3-a177-2a0e3604ee56
2025-04-29 16:25:10,342 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,344 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,345 - sqlalchemy.engine.Engine - INFO - [cached since 0.3123s ago] ('4b94c533-0861-44d3-a177-2a0e3604ee56',)
2025-04-29 16:25:10,348 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:25:10,349 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:25:10,350 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,352 - sqlalchemy.engine.Engine - INFO - [cached since 0.2511s ago] ('null', '执行中', "{'currentIndex': 1, 'currentItem': 4}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 25, 10, 350768), '4b94c533-0861-44d3-a177-2a0e3604ee56')
2025-04-29 16:25:10,353 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,363 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:25:10,364 - services.execution.handlers.foundation - INFO - 任务 0f979a35-d496-46b7-9f41-b0fbfb8cd47f 打印: {'currentIndex': 1, 'currentItem': 4}
2025-04-29 16:25:10,367 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,368 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,369 - sqlalchemy.engine.Engine - INFO - [cached since 0.2583s ago] ('b8741370-2c77-4a6b-8ae8-5d614a91bc8f', 1, '{"success": true, "message": "打印成功", "output": {"message": {"currentIndex": 1, "currentItem": 4}}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 368755), datetime.datetime(2025, 4, 29, 16, 25, 10, 368755), 0)
2025-04-29 16:25:10,374 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,383 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,383 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,384 - sqlalchemy.engine.Engine - INFO - [cached since 0.3506s ago] ('4b94c533-0861-44d3-a177-2a0e3604ee56',)
2025-04-29 16:25:10,386 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:25:10,386 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:25:10,389 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,389 - sqlalchemy.engine.Engine - INFO - [cached since 0.2604s ago] (datetime.datetime(2025, 4, 29, 16, 25, 10, 388132), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 25, 10, 388132), '4b94c533-0861-44d3-a177-2a0e3604ee56')
2025-04-29 16:25:10,392 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,404 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,405 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,406 - sqlalchemy.engine.Engine - INFO - [cached since 0.2951s ago] ('5369f366-96b0-43da-9764-63b47f6b2012', 1, '{"success": true, "message": "第2次循环, item=4"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 405483), datetime.datetime(2025, 4, 29, 16, 25, 10, 405483), 0)
2025-04-29 16:25:10,409 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,417 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:25:10,418 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:25:10,418 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:25:10,419 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,423 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,428 - sqlalchemy.engine.Engine - INFO - [cached since 0.4108s ago] ('cf97525a-22bd-44d5-8d26-236c47967029', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"currentIndex": 2, "currentItem": 5}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 418473), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"currentIndex": 2, "currentItem": 5}', 1, datetime.datetime(2025, 4, 29, 16, 25, 10, 423482), datetime.datetime(2025, 4, 29, 16, 25, 10, 423482), 0)
2025-04-29 16:25:10,433 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,442 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: cf97525a-22bd-44d5-8d26-236c47967029
2025-04-29 16:25:10,443 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,443 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,444 - sqlalchemy.engine.Engine - INFO - [cached since 0.4114s ago] ('cf97525a-22bd-44d5-8d26-236c47967029',)
2025-04-29 16:25:10,446 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:25:10,446 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:25:10,449 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,450 - sqlalchemy.engine.Engine - INFO - [cached since 0.3496s ago] ('null', '执行中', "{'currentIndex': 2, 'currentItem': 5}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 25, 10, 449773), 'cf97525a-22bd-44d5-8d26-236c47967029')
2025-04-29 16:25:10,453 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,461 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:25:10,461 - services.execution.handlers.foundation - INFO - 任务 0f979a35-d496-46b7-9f41-b0fbfb8cd47f 打印: {'currentIndex': 2, 'currentItem': 5}
2025-04-29 16:25:10,465 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,467 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,467 - sqlalchemy.engine.Engine - INFO - [cached since 0.3564s ago] ('439eb38f-ab6d-4f0f-95bb-4d65520d5205', 1, '{"success": true, "message": "打印成功", "output": {"message": {"currentIndex": 2, "currentItem": 5}}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 466857), datetime.datetime(2025, 4, 29, 16, 25, 10, 466857), 0)
2025-04-29 16:25:10,469 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,480 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,482 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,483 - sqlalchemy.engine.Engine - INFO - [cached since 0.4497s ago] ('cf97525a-22bd-44d5-8d26-236c47967029',)
2025-04-29 16:25:10,486 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:25:10,487 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:25:10,489 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,489 - sqlalchemy.engine.Engine - INFO - [cached since 0.3609s ago] (datetime.datetime(2025, 4, 29, 16, 25, 10, 487455), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 25, 10, 488743), 'cf97525a-22bd-44d5-8d26-236c47967029')
2025-04-29 16:25:10,492 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,499 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:25:10,500 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,501 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,501 - sqlalchemy.engine.Engine - INFO - [cached since 0.4842s ago] ('da689d57-2b7d-49fc-a32e-1c7aeea44327', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"currentIndex": 2, "currentItem": 5}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 500758), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"currentIndex": 2, "currentItem": 5}', 1, datetime.datetime(2025, 4, 29, 16, 25, 10, 501757), datetime.datetime(2025, 4, 29, 16, 25, 10, 501757), 0)
2025-04-29 16:25:10,505 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,517 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: da689d57-2b7d-49fc-a32e-1c7aeea44327
2025-04-29 16:25:10,517 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,518 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,519 - sqlalchemy.engine.Engine - INFO - [cached since 0.4866s ago] ('da689d57-2b7d-49fc-a32e-1c7aeea44327',)
2025-04-29 16:25:10,521 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:25:10,521 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:25:10,523 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,524 - sqlalchemy.engine.Engine - INFO - [cached since 0.4238s ago] ('null', '执行中', "{'currentIndex': 2, 'currentItem': 5}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 25, 10, 523760), 'da689d57-2b7d-49fc-a32e-1c7aeea44327')
2025-04-29 16:25:10,527 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,535 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:25:10,536 - services.execution.handlers.foundation - INFO - 任务 0f979a35-d496-46b7-9f41-b0fbfb8cd47f 打印: {'currentIndex': 2, 'currentItem': 5}
2025-04-29 16:25:10,539 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,542 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,543 - sqlalchemy.engine.Engine - INFO - [cached since 0.4321s ago] ('06b7d972-050e-4f89-a451-6ed02e979bb2', 1, '{"success": true, "message": "打印成功", "output": {"message": {"currentIndex": 2, "currentItem": 5}}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 542838), datetime.datetime(2025, 4, 29, 16, 25, 10, 542838), 0)
2025-04-29 16:25:10,546 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,554 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,554 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,555 - sqlalchemy.engine.Engine - INFO - [cached since 0.5216s ago] ('da689d57-2b7d-49fc-a32e-1c7aeea44327',)
2025-04-29 16:25:10,556 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:25:10,556 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:25:10,557 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,559 - sqlalchemy.engine.Engine - INFO - [cached since 0.4299s ago] (datetime.datetime(2025, 4, 29, 16, 25, 10, 556332), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 25, 10, 557251), 'da689d57-2b7d-49fc-a32e-1c7aeea44327')
2025-04-29 16:25:10,561 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,568 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,570 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,570 - sqlalchemy.engine.Engine - INFO - [cached since 0.4589s ago] ('74d1e252-fbd2-40af-9157-c416f60c4660', 1, '{"success": true, "message": "第3次循环, item=5"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 569254), datetime.datetime(2025, 4, 29, 16, 25, 10, 569254), 0)
2025-04-29 16:25:10,572 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,578 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:25:10,578 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:25:10,578 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:25:10,581 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,583 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,584 - sqlalchemy.engine.Engine - INFO - [cached since 0.5667s ago] ('f312bbc6-9fd0-4b34-a332-2696e8b937c2', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"currentIndex": 3, "currentItem": 6}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 579254), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"currentIndex": 3, "currentItem": 6}', 1, datetime.datetime(2025, 4, 29, 16, 25, 10, 583806), datetime.datetime(2025, 4, 29, 16, 25, 10, 583806), 0)
2025-04-29 16:25:10,588 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,598 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: f312bbc6-9fd0-4b34-a332-2696e8b937c2
2025-04-29 16:25:10,599 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,601 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,601 - sqlalchemy.engine.Engine - INFO - [cached since 0.5682s ago] ('f312bbc6-9fd0-4b34-a332-2696e8b937c2',)
2025-04-29 16:25:10,605 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:25:10,605 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:25:10,606 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,607 - sqlalchemy.engine.Engine - INFO - [cached since 0.5061s ago] ('null', '执行中', "{'currentIndex': 3, 'currentItem': 6}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 25, 10, 606298), 'f312bbc6-9fd0-4b34-a332-2696e8b937c2')
2025-04-29 16:25:10,608 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,617 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:25:10,617 - services.execution.handlers.foundation - INFO - 任务 0f979a35-d496-46b7-9f41-b0fbfb8cd47f 打印: {'currentIndex': 3, 'currentItem': 6}
2025-04-29 16:25:10,618 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,618 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,619 - sqlalchemy.engine.Engine - INFO - [cached since 0.5077s ago] ('1eb8abc1-228d-4476-a70e-b3eac509d036', 1, '{"success": true, "message": "打印成功", "output": {"message": {"currentIndex": 3, "currentItem": 6}}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 618307), datetime.datetime(2025, 4, 29, 16, 25, 10, 618307), 0)
2025-04-29 16:25:10,621 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,629 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,631 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,632 - sqlalchemy.engine.Engine - INFO - [cached since 0.5989s ago] ('f312bbc6-9fd0-4b34-a332-2696e8b937c2',)
2025-04-29 16:25:10,634 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:25:10,635 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:25:10,637 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,638 - sqlalchemy.engine.Engine - INFO - [cached since 0.5092s ago] (datetime.datetime(2025, 4, 29, 16, 25, 10, 636216), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 25, 10, 637216), 'f312bbc6-9fd0-4b34-a332-2696e8b937c2')
2025-04-29 16:25:10,640 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,647 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:25:10,648 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,649 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,650 - sqlalchemy.engine.Engine - INFO - [cached since 0.6326s ago] ('25ea1172-6256-406e-a29e-f33da0ed6859', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"currentIndex": 3, "currentItem": 6}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 647258), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"currentIndex": 3, "currentItem": 6}', 1, datetime.datetime(2025, 4, 29, 16, 25, 10, 649215), datetime.datetime(2025, 4, 29, 16, 25, 10, 649215), 0)
2025-04-29 16:25:10,654 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,661 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: 25ea1172-6256-406e-a29e-f33da0ed6859
2025-04-29 16:25:10,662 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,665 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,666 - sqlalchemy.engine.Engine - INFO - [cached since 0.6336s ago] ('25ea1172-6256-406e-a29e-f33da0ed6859',)
2025-04-29 16:25:10,671 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:25:10,672 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:25:10,674 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,675 - sqlalchemy.engine.Engine - INFO - [cached since 0.5746s ago] ('null', '执行中', "{'currentIndex': 3, 'currentItem': 6}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 25, 10, 674706), '25ea1172-6256-406e-a29e-f33da0ed6859')
2025-04-29 16:25:10,676 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,685 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:25:10,685 - services.execution.handlers.foundation - INFO - 任务 0f979a35-d496-46b7-9f41-b0fbfb8cd47f 打印: {'currentIndex': 3, 'currentItem': 6}
2025-04-29 16:25:10,686 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,688 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,689 - sqlalchemy.engine.Engine - INFO - [cached since 0.5777s ago] ('4acf33a7-241e-4a64-9ac8-4c6abf4a794b', 1, '{"success": true, "message": "打印成功", "output": {"message": {"currentIndex": 3, "currentItem": 6}}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 688223), datetime.datetime(2025, 4, 29, 16, 25, 10, 688223), 0)
2025-04-29 16:25:10,691 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,699 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,699 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,700 - sqlalchemy.engine.Engine - INFO - [cached since 0.6669s ago] ('25ea1172-6256-406e-a29e-f33da0ed6859',)
2025-04-29 16:25:10,701 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:25:10,702 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:25:10,702 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,703 - sqlalchemy.engine.Engine - INFO - [cached since 0.5738s ago] (datetime.datetime(2025, 4, 29, 16, 25, 10, 702310), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 25, 10, 702310), '25ea1172-6256-406e-a29e-f33da0ed6859')
2025-04-29 16:25:10,704 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,711 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,711 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,712 - sqlalchemy.engine.Engine - INFO - [cached since 0.6002s ago] ('9ab70355-8f50-4256-adb6-06d6637258b5', 1, '{"success": true, "message": "第4次循环, item=6"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 711296), datetime.datetime(2025, 4, 29, 16, 25, 10, 711296), 0)
2025-04-29 16:25:10,714 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,726 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:25:10,726 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:25:10,726 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:25:10,727 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,733 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,734 - sqlalchemy.engine.Engine - INFO - [cached since 0.7164s ago] ('5bbb5671-1d5c-47f0-919a-3bae28018fd0', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"currentIndex": 4, "currentItem": 7}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 727300), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"currentIndex": 4, "currentItem": 7}', 1, datetime.datetime(2025, 4, 29, 16, 25, 10, 733308), datetime.datetime(2025, 4, 29, 16, 25, 10, 733308), 0)
2025-04-29 16:25:10,736 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,744 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 5bbb5671-1d5c-47f0-919a-3bae28018fd0
2025-04-29 16:25:10,745 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,747 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,748 - sqlalchemy.engine.Engine - INFO - [cached since 0.7147s ago] ('5bbb5671-1d5c-47f0-919a-3bae28018fd0',)
2025-04-29 16:25:10,749 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:25:10,750 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:25:10,751 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,751 - sqlalchemy.engine.Engine - INFO - [cached since 0.6505s ago] ('null', '执行中', "{'currentIndex': 4, 'currentItem': 7}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 25, 10, 751215), '5bbb5671-1d5c-47f0-919a-3bae28018fd0')
2025-04-29 16:25:10,752 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,760 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:25:10,760 - services.execution.handlers.foundation - INFO - 任务 0f979a35-d496-46b7-9f41-b0fbfb8cd47f 打印: {'currentIndex': 4, 'currentItem': 7}
2025-04-29 16:25:10,761 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,761 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,762 - sqlalchemy.engine.Engine - INFO - [cached since 0.6509s ago] ('37ce2edc-e62d-4284-9f17-414988e9d588', 1, '{"success": true, "message": "打印成功", "output": {"message": {"currentIndex": 4, "currentItem": 7}}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 761913), datetime.datetime(2025, 4, 29, 16, 25, 10, 761913), 0)
2025-04-29 16:25:10,766 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,776 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,777 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,779 - sqlalchemy.engine.Engine - INFO - [cached since 0.7462s ago] ('5bbb5671-1d5c-47f0-919a-3bae28018fd0',)
2025-04-29 16:25:10,782 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:25:10,782 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:25:10,783 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,783 - sqlalchemy.engine.Engine - INFO - [cached since 0.6551s ago] (datetime.datetime(2025, 4, 29, 16, 25, 10, 782917), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 25, 10, 783934), '5bbb5671-1d5c-47f0-919a-3bae28018fd0')
2025-04-29 16:25:10,785 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,797 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:25:10,800 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,800 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,801 - sqlalchemy.engine.Engine - INFO - [cached since 0.7837s ago] ('227afaa1-fd56-4c0a-868d-e6c5ba4465b3', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"currentIndex": 4, "currentItem": 7}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 798925), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"currentIndex": 4, "currentItem": 7}', 1, datetime.datetime(2025, 4, 29, 16, 25, 10, 800929), datetime.datetime(2025, 4, 29, 16, 25, 10, 800929), 0)
2025-04-29 16:25:10,802 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,809 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: 227afaa1-fd56-4c0a-868d-e6c5ba4465b3
2025-04-29 16:25:10,809 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,810 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,810 - sqlalchemy.engine.Engine - INFO - [cached since 0.7779s ago] ('227afaa1-fd56-4c0a-868d-e6c5ba4465b3',)
2025-04-29 16:25:10,811 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:25:10,812 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:25:10,812 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,813 - sqlalchemy.engine.Engine - INFO - [cached since 0.7135s ago] ('null', '执行中', "{'currentIndex': 4, 'currentItem': 7}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 25, 10, 812928), '227afaa1-fd56-4c0a-868d-e6c5ba4465b3')
2025-04-29 16:25:10,815 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,822 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:25:10,823 - services.execution.handlers.foundation - INFO - 任务 0f979a35-d496-46b7-9f41-b0fbfb8cd47f 打印: {'currentIndex': 4, 'currentItem': 7}
2025-04-29 16:25:10,824 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,826 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,826 - sqlalchemy.engine.Engine - INFO - [cached since 0.7155s ago] ('d69822a6-a493-4cb1-8256-f9eeddbcb69b', 1, '{"success": true, "message": "打印成功", "output": {"message": {"currentIndex": 4, "currentItem": 7}}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 825933), datetime.datetime(2025, 4, 29, 16, 25, 10, 825933), 0)
2025-04-29 16:25:10,831 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,841 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,841 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,841 - sqlalchemy.engine.Engine - INFO - [cached since 0.8081s ago] ('227afaa1-fd56-4c0a-868d-e6c5ba4465b3',)
2025-04-29 16:25:10,842 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:25:10,843 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:25:10,844 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,845 - sqlalchemy.engine.Engine - INFO - [cached since 0.7164s ago] (datetime.datetime(2025, 4, 29, 16, 25, 10, 843133), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 25, 10, 844132), '227afaa1-fd56-4c0a-868d-e6c5ba4465b3')
2025-04-29 16:25:10,847 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,861 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,863 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,864 - sqlalchemy.engine.Engine - INFO - [cached since 0.7535s ago] ('3b74b1e8-2d5a-401b-bd47-4ab0f637375c', 1, '{"success": true, "message": "第5次循环, item=7"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 863960), datetime.datetime(2025, 4, 29, 16, 25, 10, 863960), 0)
2025-04-29 16:25:10,867 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,878 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:25:10,880 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:25:10,883 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:25:10,884 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,893 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,895 - sqlalchemy.engine.Engine - INFO - [cached since 0.8775s ago] ('6801445d-a7c7-4bd1-9bed-306f080cd4b4', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"currentIndex": 5, "currentItem": 8}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 883726), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"currentIndex": 5, "currentItem": 8}', 1, datetime.datetime(2025, 4, 29, 16, 25, 10, 893728), datetime.datetime(2025, 4, 29, 16, 25, 10, 893728), 0)
2025-04-29 16:25:10,898 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,906 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 6801445d-a7c7-4bd1-9bed-306f080cd4b4
2025-04-29 16:25:10,907 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,908 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,914 - sqlalchemy.engine.Engine - INFO - [cached since 0.8818s ago] ('6801445d-a7c7-4bd1-9bed-306f080cd4b4',)
2025-04-29 16:25:10,916 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:25:10,918 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:25:10,920 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,921 - sqlalchemy.engine.Engine - INFO - [cached since 0.8205s ago] ('null', '执行中', "{'currentIndex': 5, 'currentItem': 8}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 25, 10, 920719), '6801445d-a7c7-4bd1-9bed-306f080cd4b4')
2025-04-29 16:25:10,924 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,936 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:25:10,937 - services.execution.handlers.foundation - INFO - 任务 0f979a35-d496-46b7-9f41-b0fbfb8cd47f 打印: {'currentIndex': 5, 'currentItem': 8}
2025-04-29 16:25:10,940 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,942 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,942 - sqlalchemy.engine.Engine - INFO - [cached since 0.8315s ago] ('a9f66d3c-c3ce-48a9-9459-8ed7f91ffb00', 1, '{"success": true, "message": "打印成功", "output": {"message": {"currentIndex": 5, "currentItem": 8}}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 942730), datetime.datetime(2025, 4, 29, 16, 25, 10, 942730), 0)
2025-04-29 16:25:10,944 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,956 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,958 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,959 - sqlalchemy.engine.Engine - INFO - [cached since 0.927s ago] ('6801445d-a7c7-4bd1-9bed-306f080cd4b4',)
2025-04-29 16:25:10,961 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:25:10,964 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:25:10,966 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:10,967 - sqlalchemy.engine.Engine - INFO - [cached since 0.8389s ago] (datetime.datetime(2025, 4, 29, 16, 25, 10, 965891), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 25, 10, 966892), '6801445d-a7c7-4bd1-9bed-306f080cd4b4')
2025-04-29 16:25:10,972 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,975 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,979 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 16:25:10,980 - sqlalchemy.engine.Engine - INFO - [generated in 0.00113s] ('0f979a35-d496-46b7-9f41-b0fbfb8cd47f',)
2025-04-29 16:25:10,985 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:10,988 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:25:10,993 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:10,996 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:10,997 - sqlalchemy.engine.Engine - INFO - [cached since 0.9793s ago] ('21515a11-f19c-4e83-b5ed-04e64fbfef05', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"currentIndex": 5, "currentItem": 8}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 10, 988118), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"currentIndex": 5, "currentItem": 8}', 1, datetime.datetime(2025, 4, 29, 16, 25, 10, 996108), datetime.datetime(2025, 4, 29, 16, 25, 10, 996108), 0)
2025-04-29 16:25:11,002 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:11,009 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: 21515a11-f19c-4e83-b5ed-04e64fbfef05
2025-04-29 16:25:11,010 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:11,016 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:11,017 - sqlalchemy.engine.Engine - INFO - [cached since 0.9841s ago] ('21515a11-f19c-4e83-b5ed-04e64fbfef05',)
2025-04-29 16:25:11,020 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:25:11,027 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:25:11,028 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:11,031 - sqlalchemy.engine.Engine - INFO - [cached since 0.9299s ago] ('null', '执行中', "{'currentIndex': 5, 'currentItem': 8}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 25, 11, 28118), '21515a11-f19c-4e83-b5ed-04e64fbfef05')
2025-04-29 16:25:11,035 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:11,044 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:25:11,045 - services.execution.handlers.foundation - INFO - 任务 0f979a35-d496-46b7-9f41-b0fbfb8cd47f 打印: {'currentIndex': 5, 'currentItem': 8}
2025-04-29 16:25:11,048 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:11,051 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:11,052 - sqlalchemy.engine.Engine - INFO - [cached since 0.9412s ago] ('95a54250-8b1c-434f-bfd1-07126424769b', 1, '{"success": true, "message": "打印成功", "output": {"message": {"currentIndex": 5, "currentItem": 8}}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 11, 51765), datetime.datetime(2025, 4, 29, 16, 25, 11, 51765), 0)
2025-04-29 16:25:11,054 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:11,066 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:11,068 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:11,071 - sqlalchemy.engine.Engine - INFO - [cached since 1.038s ago] ('21515a11-f19c-4e83-b5ed-04e64fbfef05',)
2025-04-29 16:25:11,074 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:25:11,075 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:25:11,077 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:11,078 - sqlalchemy.engine.Engine - INFO - [cached since 0.9499s ago] (datetime.datetime(2025, 4, 29, 16, 25, 11, 77710), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 25, 11, 77710), '21515a11-f19c-4e83-b5ed-04e64fbfef05')
2025-04-29 16:25:11,082 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:11,091 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:11,093 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:11,093 - sqlalchemy.engine.Engine - INFO - [cached since 0.9824s ago] ('ffaac823-6a8d-4e8f-8c41-52c12f5728e4', 1, '{"success": true, "message": "第6次循环, item=8"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 11, 93598), datetime.datetime(2025, 4, 29, 16, 25, 11, 93598), 0)
2025-04-29 16:25:11,097 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:11,104 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:25:11,106 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:25:11,108 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:25:11,110 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:11,114 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:11,118 - sqlalchemy.engine.Engine - INFO - [cached since 1.1s ago] ('a23e0750-ac68-45a0-b80c-a157486f5106', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"currentIndex": 6, "currentItem": 9}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 11, 109597), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"currentIndex": 6, "currentItem": 9}', 1, datetime.datetime(2025, 4, 29, 16, 25, 11, 113600), datetime.datetime(2025, 4, 29, 16, 25, 11, 113600), 0)
2025-04-29 16:25:11,121 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:11,129 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: a23e0750-ac68-45a0-b80c-a157486f5106
2025-04-29 16:25:11,129 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:11,132 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:11,134 - sqlalchemy.engine.Engine - INFO - [cached since 1.101s ago] ('a23e0750-ac68-45a0-b80c-a157486f5106',)
2025-04-29 16:25:11,136 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:25:11,137 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:25:11,139 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:11,140 - sqlalchemy.engine.Engine - INFO - [cached since 1.039s ago] ('null', '执行中', "{'currentIndex': 6, 'currentItem': 9}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 25, 11, 139599), 'a23e0750-ac68-45a0-b80c-a157486f5106')
2025-04-29 16:25:11,141 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:11,151 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:25:11,151 - services.execution.handlers.foundation - INFO - 任务 0f979a35-d496-46b7-9f41-b0fbfb8cd47f 打印: {'currentIndex': 6, 'currentItem': 9}
2025-04-29 16:25:11,155 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:11,157 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:11,158 - sqlalchemy.engine.Engine - INFO - [cached since 1.046s ago] ('ab1ae9d9-22dc-4d64-b26e-4452b8a8f92b', 1, '{"success": true, "message": "打印成功", "output": {"message": {"currentIndex": 6, "currentItem": 9}}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 11, 157594), datetime.datetime(2025, 4, 29, 16, 25, 11, 157594), 0)
2025-04-29 16:25:11,161 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:11,172 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:11,174 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:11,176 - sqlalchemy.engine.Engine - INFO - [cached since 1.143s ago] ('a23e0750-ac68-45a0-b80c-a157486f5106',)
2025-04-29 16:25:11,181 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:25:11,182 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:25:11,184 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:11,185 - sqlalchemy.engine.Engine - INFO - [cached since 1.056s ago] (datetime.datetime(2025, 4, 29, 16, 25, 11, 184177), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 25, 11, 184177), 'a23e0750-ac68-45a0-b80c-a157486f5106')
2025-04-29 16:25:11,187 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:11,194 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:25:11,195 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:11,197 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:11,197 - sqlalchemy.engine.Engine - INFO - [cached since 1.18s ago] ('b580e430-57b8-42c5-850e-7d20d8c828dc', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"currentIndex": 6, "currentItem": 9}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 11, 194960), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"currentIndex": 6, "currentItem": 9}', 1, datetime.datetime(2025, 4, 29, 16, 25, 11, 197046), datetime.datetime(2025, 4, 29, 16, 25, 11, 197046), 0)
2025-04-29 16:25:11,201 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:11,211 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: b580e430-57b8-42c5-850e-7d20d8c828dc
2025-04-29 16:25:11,211 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:11,214 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:11,216 - sqlalchemy.engine.Engine - INFO - [cached since 1.183s ago] ('b580e430-57b8-42c5-850e-7d20d8c828dc',)
2025-04-29 16:25:11,217 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:25:11,218 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:25:11,219 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:11,220 - sqlalchemy.engine.Engine - INFO - [cached since 1.121s ago] ('null', '执行中', "{'currentIndex': 6, 'currentItem': 9}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 25, 11, 219973), 'b580e430-57b8-42c5-850e-7d20d8c828dc')
2025-04-29 16:25:11,225 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:11,234 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:25:11,235 - services.execution.handlers.foundation - INFO - 任务 0f979a35-d496-46b7-9f41-b0fbfb8cd47f 打印: {'currentIndex': 6, 'currentItem': 9}
2025-04-29 16:25:11,237 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:11,244 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:11,248 - sqlalchemy.engine.Engine - INFO - [cached since 1.136s ago] ('ccee9d28-9a11-4882-a680-015a3fe0114a', 1, '{"success": true, "message": "打印成功", "output": {"message": {"currentIndex": 6, "currentItem": 9}}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 11, 244046), datetime.datetime(2025, 4, 29, 16, 25, 11, 244046), 0)
2025-04-29 16:25:11,249 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:11,259 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:11,266 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:11,267 - sqlalchemy.engine.Engine - INFO - [cached since 1.235s ago] ('b580e430-57b8-42c5-850e-7d20d8c828dc',)
2025-04-29 16:25:11,270 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:25:11,270 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:25:11,272 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:11,273 - sqlalchemy.engine.Engine - INFO - [cached since 1.144s ago] (datetime.datetime(2025, 4, 29, 16, 25, 11, 271829), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 25, 11, 272828), 'b580e430-57b8-42c5-850e-7d20d8c828dc')
2025-04-29 16:25:11,274 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:11,285 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:11,298 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:11,300 - sqlalchemy.engine.Engine - INFO - [cached since 1.188s ago] ('89654609-a2e4-48dd-ab83-4124d3e6ca33', 1, '{"success": true, "message": "第7次循环, item=9"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 11, 298232), datetime.datetime(2025, 4, 29, 16, 25, 11, 298232), 0)
2025-04-29 16:25:11,308 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:11,317 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:11,320 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:11,321 - sqlalchemy.engine.Engine - INFO - [cached since 1.21s ago] ('4a073934-789c-4df0-b783-dc64a831263f', 1, '{"success": true, "message": "数组遍历成功，共遍历了 7 个元素", "output": {"iterationResults": [{"index": 0, "success": true, "result": {"success": true, "message" ... (2254 characters truncated) ... rentIndex": 6, "currentItem": 9}}}, {"child_id": 3, "success": true, "output": {"message": {"currentIndex": 6, "currentItem": 9}}}]}}}], "count": 7}}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 11, 320236), datetime.datetime(2025, 4, 29, 16, 25, 11, 320236), 0)
2025-04-29 16:25:11,324 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:11,332 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:11,334 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:11,337 - sqlalchemy.engine.Engine - INFO - [cached since 1.304s ago] ('d4a231cf-d77e-4e0b-8c63-37d219737646',)
2025-04-29 16:25:11,339 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 16:25:11,340 - services.execution.block_executor - INFO - 为块 b1 存储输出: ['currentIndex', 'currentItem']
2025-04-29 16:25:11,342 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:11,344 - sqlalchemy.engine.Engine - INFO - [generated in 0.00184s] ('{"currentIndex": 6, "currentItem": 9}', datetime.datetime(2025, 4, 29, 16, 25, 11, 340235), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, "{'currentIndex': 6, 'currentItem': 9}", '{"blocks": {"b1": {"currentIndex": 6, "currentItem": 9}}}', '执行成功', datetime.datetime(2025, 4, 29, 16, 25, 11, 342236), 'd4a231cf-d77e-4e0b-8c63-37d219737646')
2025-04-29 16:25:11,348 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:11,362 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:11,364 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:25:11,366 - sqlalchemy.engine.Engine - INFO - [cached since 1.255s ago] ('5cac315c-4bda-4d37-8e74-9fdfe2688a8d', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, " ... (2355 characters truncated) ... tIndex": 6, "currentItem": 9}}}, {"child_id": 3, "success": true, "output": {"message": {"currentIndex": 6, "currentItem": 9}}}]}}}], "count": 7}}]}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0f979a35-d496-46b7-9f41-b0fbfb8cd47f', datetime.datetime(2025, 4, 29, 16, 25, 11, 364302), datetime.datetime(2025, 4, 29, 16, 25, 11, 364302), 0)
2025-04-29 16:25:11,369 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:11,382 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:11,384 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:11,385 - sqlalchemy.engine.Engine - INFO - [cached since 1.352s ago] ('3dd1b3ef-fddf-4ec0-a4f6-3cc6bc1e2cd0',)
2025-04-29 16:25:11,391 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 16:25:11,392 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 16:25:11,395 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:25:11,396 - sqlalchemy.engine.Engine - INFO - [generated in 0.00221s] (datetime.datetime(2025, 4, 29, 16, 25, 11, 393248), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, "{'currentIndex': 6, 'currentItem': 9}", '执行成功', datetime.datetime(2025, 4, 29, 16, 25, 11, 395115), '3dd1b3ef-fddf-4ec0-a4f6-3cc6bc1e2cd0')
2025-04-29 16:25:11,404 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:11,419 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:25:11,424 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 16:25:11,424 - sqlalchemy.engine.Engine - INFO - [generated in 0.00121s] (datetime.datetime(2025, 4, 29, 16, 25, 11, 416192), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 1417, 1, datetime.datetime(2025, 4, 29, 16, 25, 11, 423192), '0f979a35-d496-46b7-9f41-b0fbfb8cd47f')
2025-04-29 16:25:11,428 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:25:11,434 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 完成任务: 0f979a35-d496-46b7-9f41-b0fbfb8cd47f, 结果: True
2025-04-29 16:26:03,692 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 16:26:03,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 16:26:03,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 16:26:03,694 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 16:26:03,694 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 16:26:03,694 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 16:26:03,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 16:26:03,705 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 16:26:03,706 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 16:26:03,707 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 16:26:03,708 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 16:26:03,709 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 16:26:03,721 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 16:26:03,724 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 16:26:03,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 16:26:03,726 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 16:26:03,727 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 16:26:03,727 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 16:26:03,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 16:26:03,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 16:26:03,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 16:26:03,741 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 16:26:03,741 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 16:26:03,747 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 16:26:03,834 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:26:03,839 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 16:26:03,842 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 26, 3, 833599))
2025-04-29 16:26:03,849 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:26:18,720 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 16:26:18,721 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 16:26:18,721 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 16:26:18,722 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 16:26:18,722 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 16:26:18,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 16:27:03,742 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 16:27:03,743 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 16:27:03,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 16:27:03,744 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 16:27:03,744 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 16:27:03,745 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 16:27:03,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 16:27:03,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 16:27:03,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 16:27:03,745 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 16:27:03,746 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 16:27:03,746 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 16:27:03,746 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 16:27:03,746 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 16:27:03,746 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 16:27:03,746 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 16:27:03,746 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 16:27:03,747 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 16:27:03,747 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 16:27:03,747 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 16:27:03,747 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 16:27:03,747 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 16:27:03,747 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 16:27:03,753 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 16:27:03,851 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:03,852 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 16:27:03,852 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 27, 3, 851074))
2025-04-29 16:27:03,853 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:03,913 - app - INFO - 应用程序关闭中...
2025-04-29 16:27:03,913 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 16:27:03,913 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 16:27:03,913 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 16:27:03,913 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 16:27:03,914 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 16:27:03,914 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 16:27:03,914 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 16:27:03,914 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 16:27:03,914 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 16:27:03,914 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 16:27:03,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 16:27:03,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 16:27:03,915 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 16:27:03,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 16:27:03,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 16:27:03,915 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 3
2025-04-29 16:27:03,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 16:27:03,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 16:27:03,915 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 16:27:03,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 16:27:03,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 16:27:03,916 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 16:27:03,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 16:27:03,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 16:27:03,916 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 16:27:03,916 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 16:27:03,916 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 16:27:03,916 - app - INFO - 增强版任务调度器已停止
2025-04-29 16:27:03,916 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 16:27:03,917 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 16:27:03,917 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 16:27:03,917 - data.session - INFO - 数据库连接已关闭
2025-04-29 16:27:05,106 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 16:27:05,170 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 16:27:05,171 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 16:27:05,232 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 16:27:05,283 - data.session - INFO - 正在初始化数据库...
2025-04-29 16:27:05,315 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 16:27:05,333 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 16:27:05,334 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:05,334 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 16:27:05,334 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:05,335 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 16:27:05,335 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:05,335 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:05,335 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 16:27:05,335 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:05,337 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 16:27:05,337 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:05,338 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 16:27:05,339 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:05,340 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 16:27:05,340 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:05,341 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 16:27:05,341 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:05,342 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 16:27:05,342 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:05,343 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 16:27:05,343 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:05,344 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 16:27:05,344 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:05,345 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 16:27:05,345 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:05,346 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 16:27:05,346 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:05,347 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 16:27:05,347 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:05,348 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:05,348 - data.session - INFO - 数据库表初始化完成
2025-04-29 16:27:05,739 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 16:27:05,740 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 16:27:05,740 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 16:27:05,740 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 16:27:05,740 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 16:27:05,740 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 16:27:05,741 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 16:27:05,741 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 16:27:05,741 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 16:27:05,741 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 16:27:05,741 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 16:27:05,742 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 16:27:05,742 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 16:27:05,743 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 16:27:05,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 16:27:05,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 16:27:05,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 16:27:05,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 16:27:05,744 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 16:27:05,745 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 16:27:05,746 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 16:27:05,746 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 16:27:05,747 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:27:05,747 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 16:27:05,748 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:27:05,748 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 16:27:05,749 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:27:05,749 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:05,758 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 16:27:05,759 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 16:27:05,760 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 16:27:05,760 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:05,761 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 16:27:05,763 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 16:27:05,764 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 16:27:05,764 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:05,766 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 16:27:05,767 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 16:27:05,768 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:05,769 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 16:27:05,769 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 16:27:05,769 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 16:27:05,769 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 16:27:05,769 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 16:27:05,770 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:05,771 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 16:27:05,772 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 27, 5, 764955))
2025-04-29 16:27:05,773 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:09,554 - app - INFO - 应用程序关闭中...
2025-04-29 16:27:09,555 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 16:27:09,555 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 16:27:09,555 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 16:27:09,555 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 16:27:09,555 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 16:27:09,555 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 16:27:09,556 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 16:27:09,556 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 16:27:09,556 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 16:27:09,556 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 16:27:09,556 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 16:27:09,556 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 16:27:09,556 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 16:27:09,556 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 16:27:09,556 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 16:27:09,556 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 16:27:09,556 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 16:27:09,556 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 16:27:09,556 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 16:27:09,558 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 16:27:09,558 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 16:27:09,558 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 16:27:09,558 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 16:27:09,558 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 16:27:09,558 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 16:27:09,558 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 16:27:09,558 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 16:27:09,558 - app - INFO - 增强版任务调度器已停止
2025-04-29 16:27:09,558 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 16:27:09,558 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 16:27:09,559 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 16:27:09,559 - data.session - INFO - 数据库连接已关闭
2025-04-29 16:27:10,768 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 16:27:10,839 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 16:27:10,840 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 16:27:10,905 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 16:27:10,962 - data.session - INFO - 正在初始化数据库...
2025-04-29 16:27:10,995 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 16:27:10,997 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 16:27:10,998 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:10,999 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 16:27:10,999 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:11,000 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 16:27:11,000 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:11,001 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:11,001 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 16:27:11,001 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:11,003 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 16:27:11,004 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:11,005 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 16:27:11,006 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:11,008 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 16:27:11,009 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:11,010 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 16:27:11,010 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:11,012 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 16:27:11,012 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:11,013 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 16:27:11,013 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:11,014 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 16:27:11,014 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:11,016 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 16:27:11,016 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:11,017 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 16:27:11,017 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:11,018 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 16:27:11,019 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:11,020 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:11,021 - data.session - INFO - 数据库表初始化完成
2025-04-29 16:27:11,386 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 16:27:11,387 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 16:27:11,387 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 16:27:11,387 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 16:27:11,388 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 16:27:11,388 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 16:27:11,388 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 16:27:11,388 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 16:27:11,388 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 16:27:11,389 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 16:27:11,389 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 16:27:11,389 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 16:27:11,390 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 16:27:11,392 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 16:27:11,392 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 16:27:11,392 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 16:27:11,393 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 16:27:11,393 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 16:27:11,393 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 16:27:11,393 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 16:27:11,394 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 16:27:11,396 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 16:27:11,396 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:27:11,397 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 16:27:11,397 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:27:11,398 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 16:27:11,398 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:27:11,399 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:11,409 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 16:27:11,409 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 16:27:11,411 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 16:27:11,411 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:11,412 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 16:27:11,412 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 16:27:11,413 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 16:27:11,413 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:11,414 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 16:27:11,415 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 16:27:11,416 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:11,416 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 16:27:11,416 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 16:27:11,417 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 16:27:11,417 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 16:27:11,417 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 16:27:11,417 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:11,418 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 16:27:11,418 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 27, 11, 413032))
2025-04-29 16:27:11,419 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:12,297 - app - INFO - 应用程序关闭中...
2025-04-29 16:27:12,298 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 16:27:12,298 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 16:27:12,299 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 16:27:12,299 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 16:27:12,299 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 16:27:12,300 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 16:27:12,300 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 16:27:12,300 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 16:27:12,300 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 16:27:12,300 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 16:27:12,301 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 16:27:12,301 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 16:27:12,301 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 16:27:12,301 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 16:27:12,302 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 16:27:12,302 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 16:27:12,302 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 16:27:12,302 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 16:27:12,303 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 16:27:12,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 16:27:12,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 16:27:12,303 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 16:27:12,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 16:27:12,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 16:27:12,303 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 16:27:12,303 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 16:27:12,303 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 16:27:12,304 - app - INFO - 增强版任务调度器已停止
2025-04-29 16:27:12,304 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 16:27:12,304 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 16:27:12,305 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 16:27:12,305 - data.session - INFO - 数据库连接已关闭
2025-04-29 16:27:13,850 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 16:27:13,912 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 16:27:13,915 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 16:27:14,655 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 16:27:14,716 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 16:27:14,718 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 16:27:14,781 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 16:27:14,836 - data.session - INFO - 正在初始化数据库...
2025-04-29 16:27:14,875 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 16:27:14,876 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 16:27:14,877 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:14,877 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 16:27:14,878 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:14,878 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 16:27:14,878 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:14,879 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:14,879 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 16:27:14,879 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:14,880 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 16:27:14,881 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:14,882 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 16:27:14,882 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:14,883 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 16:27:14,883 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:14,884 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 16:27:14,884 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:14,885 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 16:27:14,885 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:14,886 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 16:27:14,886 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:14,887 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 16:27:14,887 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:14,889 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 16:27:14,889 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:14,890 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 16:27:14,890 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:14,891 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 16:27:14,892 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:27:14,893 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:14,893 - data.session - INFO - 数据库表初始化完成
2025-04-29 16:27:15,264 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 16:27:15,265 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 16:27:15,265 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 16:27:15,265 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 16:27:15,265 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 16:27:15,265 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 16:27:15,265 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 16:27:15,266 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 16:27:15,266 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 16:27:15,266 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 16:27:15,266 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 16:27:15,267 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 16:27:15,267 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 16:27:15,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 16:27:15,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 16:27:15,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 16:27:15,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 16:27:15,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 16:27:15,269 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 16:27:15,269 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 16:27:15,269 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 16:27:15,278 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 16:27:15,278 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:27:15,279 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 16:27:15,279 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:27:15,280 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 16:27:15,280 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:27:15,280 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:15,291 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 16:27:15,292 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 16:27:15,293 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 16:27:15,293 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:15,294 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 16:27:15,294 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 16:27:15,294 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 16:27:15,295 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:15,297 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 16:27:15,297 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 16:27:15,311 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:15,311 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 16:27:15,312 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 16:27:15,313 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 16:27:15,313 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 16:27:15,313 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 16:27:15,314 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:15,315 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 16:27:15,315 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 27, 15, 295804))
2025-04-29 16:27:15,316 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:18,810 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 16:27:18,813 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:18,817 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 16:27:18,817 - sqlalchemy.engine.Engine - INFO - [generated in 0.00092s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 16:27:18,819 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:18,823 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:18,827 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 16:27:18,831 - sqlalchemy.engine.Engine - INFO - [cached since 0.01411s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 16:27:18,834 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:18,839 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 16:27:18,840 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 16:27:18,840 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 16:27:18,843 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:18,846 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 16:27:18,848 - sqlalchemy.engine.Engine - INFO - [generated in 0.00207s] (None, datetime.datetime(2025, 4, 29, 16, 27, 18, 846556), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 16:27:18,849 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:18,865 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:18,867 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 16:27:18,867 - sqlalchemy.engine.Engine - INFO - [cached since 0.0504s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 16:27:18,870 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:18,873 - sqlalchemy.engine.Engine - INFO - [generated in 0.00301s] ('6440a75a-ef44-4232-b520-ff1e480cec54', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 6, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (680 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 16, 27, 18, 839560), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 16, 27, 18, 870084), datetime.datetime(2025, 4, 29, 16, 27, 18, 870084), 0)
2025-04-29 16:27:18,876 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:18,884 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:18,885 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 16:27:18,886 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] ('6440a75a-ef44-4232-b520-ff1e480cec54',)
2025-04-29 16:27:18,887 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:18,888 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 6440a75a-ef44-4232-b520-ff1e480cec54 (优先级 1) 添加到队列 0
2025-04-29 16:27:18,891 - services.sync_service - INFO - 正在同步创建任务到天风系统: 6440a75a-ef44-4232-b520-ff1e480cec54
2025-04-29 16:27:18,891 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"6440a75a-ef44-4232-b520-ff1e480cec54","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 16:27:18","sceneId":"1912043207186550785","needAmr":0}
2025-04-29 16:27:18,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 6440a75a-ef44-4232-b520-ff1e480cec54, 优先级: 1
2025-04-29 16:27:18,927 - services.execution.task_executor - DEBUG - 任务 6440a75a-ef44-4232-b520-ff1e480cec54 设置超时时间: 3600秒
2025-04-29 16:27:18,928 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:18,929 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 16:27:18,929 - sqlalchemy.engine.Engine - INFO - [cached since 0.04393s ago] ('6440a75a-ef44-4232-b520-ff1e480cec54',)
2025-04-29 16:27:18,931 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 16:27:18,931 - sqlalchemy.engine.Engine - INFO - [cached since 0.1143s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 16:27:18,933 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 16:27:18,933 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (datetime.datetime(2025, 4, 29, 16, 27, 18, 932137), datetime.datetime(2025, 4, 29, 16, 27, 18, 933139), '6440a75a-ef44-4232-b520-ff1e480cec54')
2025-04-29 16:27:18,934 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:18,940 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:18,941 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 16:27:18,942 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 16, 27, 18, 941137), '6440a75a-ef44-4232-b520-ff1e480cec54')
2025-04-29 16:27:18,942 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:18,948 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 16:27:18,951 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:18,953 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:18,975 - sqlalchemy.engine.Engine - INFO - [generated in 0.02239s] ('241cc097-39fd-4777-8d01-b3da107a3483', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 18, 950874), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 16, 27, 18, 953866), datetime.datetime(2025, 4, 29, 16, 27, 18, 953866), 0)
2025-04-29 16:27:18,978 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:18,986 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:18,996 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:18,997 - sqlalchemy.engine.Engine - INFO - [generated in 0.00077s] ('241cc097-39fd-4777-8d01-b3da107a3483',)
2025-04-29 16:27:18,999 - services.sync_service - INFO - 成功同步任务到系统任务: 6440a75a-ef44-4232-b520-ff1e480cec54
2025-04-29 16:27:19,003 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 6440a75a-ef44-4232-b520-ff1e480cec54
2025-04-29 16:27:19,006 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 6440a75a-ef44-4232-b520-ff1e480cec54
2025-04-29 16:27:19,010 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 16:27:19,011 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,014 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,016 - sqlalchemy.engine.Engine - INFO - [generated in 0.00202s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 27, 19, 14444), '241cc097-39fd-4777-8d01-b3da107a3483')
2025-04-29 16:27:19,024 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.2139秒
2025-04-29 16:27:19,033 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,041 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 16:27:19,048 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 16:27:19,051 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: IterateListBp
2025-04-29 16:27:19,052 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,054 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,055 - sqlalchemy.engine.Engine - INFO - [cached since 0.1021s ago] ('472e415a-ed55-41a3-a60b-cdb5077caa1c', 'b1', '1', '', '{"list": {"type": "Simple", "value": "[3,4,5,6,7,8,9]", "required": true}}', '{"list": "[3,4,5,6,7,8,9]"}', '{}', 'IterateListBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 51446), <TaskBlockRecordStatus.RUNNING: 1001>, '{"list": {"type": "Simple", "value": "[3,4,5,6,7,8,9]", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 29, 16, 27, 19, 54451), datetime.datetime(2025, 4, 29, 16, 27, 19, 54451), 0)
2025-04-29 16:27:19,058 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,065 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 472e415a-ed55-41a3-a60b-cdb5077caa1c
2025-04-29 16:27:19,066 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,067 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,067 - sqlalchemy.engine.Engine - INFO - [cached since 0.0712s ago] ('472e415a-ed55-41a3-a60b-cdb5077caa1c',)
2025-04-29 16:27:19,069 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 16:27:19,070 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,070 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,071 - sqlalchemy.engine.Engine - INFO - [cached since 0.05677s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 27, 19, 70446), '472e415a-ed55-41a3-a60b-cdb5077caa1c')
2025-04-29 16:27:19,072 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,080 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-29 16:27:19,080 - services.execution.handlers.progress - INFO - 开始执行数组遍历块 - ID: 1, 名称: b1
2025-04-29 16:27:19,080 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:27:19,081 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:27:19,082 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:27:19,085 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,086 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,086 - sqlalchemy.engine.Engine - INFO - [cached since 0.1331s ago] ('3f885df3-b80e-4b86-a437-a91c674a26d8', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"index": 0, "item": 3}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 83445), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"index": 0, "item": 3}', 1, datetime.datetime(2025, 4, 29, 16, 27, 19, 86445), datetime.datetime(2025, 4, 29, 16, 27, 19, 86445), 0)
2025-04-29 16:27:19,087 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,095 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 3f885df3-b80e-4b86-a437-a91c674a26d8
2025-04-29 16:27:19,096 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,097 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,098 - sqlalchemy.engine.Engine - INFO - [cached since 0.1018s ago] ('3f885df3-b80e-4b86-a437-a91c674a26d8',)
2025-04-29 16:27:19,100 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:27:19,101 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,102 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,103 - sqlalchemy.engine.Engine - INFO - [generated in 0.00098s] ('null', '执行中', "{'index': 0, 'item': 3}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 27, 19, 102296), '3f885df3-b80e-4b86-a437-a91c674a26d8')
2025-04-29 16:27:19,105 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,113 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:27:19,113 - services.execution.handlers.foundation - INFO - 任务 6440a75a-ef44-4232-b520-ff1e480cec54 打印: 0
2025-04-29 16:27:19,115 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,117 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,117 - sqlalchemy.engine.Engine - INFO - [generated in 0.00063s] ('7a163aae-85fb-4321-969c-9355b8a56daf', 1, '{"success": true, "message": "打印成功", "output": {"message": 0}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 117311), datetime.datetime(2025, 4, 29, 16, 27, 19, 117311), 0)
2025-04-29 16:27:19,119 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,126 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,128 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,128 - sqlalchemy.engine.Engine - INFO - [cached since 0.1321s ago] ('3f885df3-b80e-4b86-a437-a91c674a26d8',)
2025-04-29 16:27:19,133 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:27:19,133 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,135 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,136 - sqlalchemy.engine.Engine - INFO - [generated in 0.00104s] (datetime.datetime(2025, 4, 29, 16, 27, 19, 134295), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 27, 19, 135296), '3f885df3-b80e-4b86-a437-a91c674a26d8')
2025-04-29 16:27:19,137 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,145 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:27:19,146 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,147 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,147 - sqlalchemy.engine.Engine - INFO - [cached since 0.194s ago] ('cadaec7c-b08d-44b1-aa39-f49c8af8d3a5', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"index": 0, "item": 3}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 145302), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"index": 0, "item": 3}', 1, datetime.datetime(2025, 4, 29, 16, 27, 19, 147297), datetime.datetime(2025, 4, 29, 16, 27, 19, 147297), 0)
2025-04-29 16:27:19,149 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,157 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: cadaec7c-b08d-44b1-aa39-f49c8af8d3a5
2025-04-29 16:27:19,157 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,158 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,158 - sqlalchemy.engine.Engine - INFO - [cached since 0.1617s ago] ('cadaec7c-b08d-44b1-aa39-f49c8af8d3a5',)
2025-04-29 16:27:19,159 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:27:19,159 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,160 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,160 - sqlalchemy.engine.Engine - INFO - [cached since 0.05781s ago] ('null', '执行中', "{'index': 0, 'item': 3}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 27, 19, 160009), 'cadaec7c-b08d-44b1-aa39-f49c8af8d3a5')
2025-04-29 16:27:19,161 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,168 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:27:19,169 - services.execution.handlers.foundation - INFO - 任务 6440a75a-ef44-4232-b520-ff1e480cec54 打印: 3
2025-04-29 16:27:19,170 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,171 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,172 - sqlalchemy.engine.Engine - INFO - [cached since 0.05524s ago] ('8787e524-ab97-48dd-b9a1-9f3eba3f1cc2', 1, '{"success": true, "message": "打印成功", "output": {"message": 3}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 171475), datetime.datetime(2025, 4, 29, 16, 27, 19, 171475), 0)
2025-04-29 16:27:19,173 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,180 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,181 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,182 - sqlalchemy.engine.Engine - INFO - [cached since 0.1857s ago] ('cadaec7c-b08d-44b1-aa39-f49c8af8d3a5',)
2025-04-29 16:27:19,183 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:27:19,183 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,184 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,184 - sqlalchemy.engine.Engine - INFO - [cached since 0.04926s ago] (datetime.datetime(2025, 4, 29, 16, 27, 19, 184475), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 27, 19, 184475), 'cadaec7c-b08d-44b1-aa39-f49c8af8d3a5')
2025-04-29 16:27:19,186 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,192 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,195 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,196 - sqlalchemy.engine.Engine - INFO - [cached since 0.07924s ago] ('9926b542-08f6-4ee8-b541-772c9a6c544d', 1, '{"success": true, "message": "第1次循环, item=3"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 195475), datetime.datetime(2025, 4, 29, 16, 27, 19, 195475), 0)
2025-04-29 16:27:19,197 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,203 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:27:19,203 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:27:19,203 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:27:19,206 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,207 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,207 - sqlalchemy.engine.Engine - INFO - [cached since 0.2544s ago] ('189793b5-a7b3-43c6-8343-9a4da29ac99e', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"index": 1, "item": 4}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 205474), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"index": 1, "item": 4}', 1, datetime.datetime(2025, 4, 29, 16, 27, 19, 207483), datetime.datetime(2025, 4, 29, 16, 27, 19, 207483), 0)
2025-04-29 16:27:19,210 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,216 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 189793b5-a7b3-43c6-8343-9a4da29ac99e
2025-04-29 16:27:19,217 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,217 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,219 - sqlalchemy.engine.Engine - INFO - [cached since 0.2224s ago] ('189793b5-a7b3-43c6-8343-9a4da29ac99e',)
2025-04-29 16:27:19,221 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:27:19,222 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,223 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,224 - sqlalchemy.engine.Engine - INFO - [cached since 0.1208s ago] ('null', '执行中', "{'index': 1, 'item': 4}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 27, 19, 223252), '189793b5-a7b3-43c6-8343-9a4da29ac99e')
2025-04-29 16:27:19,228 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,236 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:27:19,236 - services.execution.handlers.foundation - INFO - 任务 6440a75a-ef44-4232-b520-ff1e480cec54 打印: 1
2025-04-29 16:27:19,237 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,237 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,237 - sqlalchemy.engine.Engine - INFO - [cached since 0.1215s ago] ('65062bd3-6c13-481f-896d-5277bca4ca03', 1, '{"success": true, "message": "打印成功", "output": {"message": 1}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 237959), datetime.datetime(2025, 4, 29, 16, 27, 19, 237959), 0)
2025-04-29 16:27:19,239 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,246 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,246 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,247 - sqlalchemy.engine.Engine - INFO - [cached since 0.2507s ago] ('189793b5-a7b3-43c6-8343-9a4da29ac99e',)
2025-04-29 16:27:19,248 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:27:19,248 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,249 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,250 - sqlalchemy.engine.Engine - INFO - [cached since 0.1148s ago] (datetime.datetime(2025, 4, 29, 16, 27, 19, 248477), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 27, 19, 249394), '189793b5-a7b3-43c6-8343-9a4da29ac99e')
2025-04-29 16:27:19,251 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,258 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:27:19,258 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,259 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,260 - sqlalchemy.engine.Engine - INFO - [cached since 0.3073s ago] ('71a155f2-577c-40a6-84b9-99e832de0dfd', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"index": 1, "item": 4}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 258841), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"index": 1, "item": 4}', 1, datetime.datetime(2025, 4, 29, 16, 27, 19, 259923), datetime.datetime(2025, 4, 29, 16, 27, 19, 259923), 0)
2025-04-29 16:27:19,261 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,267 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: 71a155f2-577c-40a6-84b9-99e832de0dfd
2025-04-29 16:27:19,267 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,268 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,268 - sqlalchemy.engine.Engine - INFO - [cached since 0.2716s ago] ('71a155f2-577c-40a6-84b9-99e832de0dfd',)
2025-04-29 16:27:19,269 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:27:19,269 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,270 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,271 - sqlalchemy.engine.Engine - INFO - [cached since 0.1685s ago] ('null', '执行中', "{'index': 1, 'item': 4}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 27, 19, 269042), '71a155f2-577c-40a6-84b9-99e832de0dfd')
2025-04-29 16:27:19,273 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,278 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:27:19,278 - services.execution.handlers.foundation - INFO - 任务 6440a75a-ef44-4232-b520-ff1e480cec54 打印: 4
2025-04-29 16:27:19,279 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,279 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,279 - sqlalchemy.engine.Engine - INFO - [cached since 0.1627s ago] ('2cb23e2c-254f-4a40-93e0-4e1ece21ee31', 1, '{"success": true, "message": "打印成功", "output": {"message": 4}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 279049), datetime.datetime(2025, 4, 29, 16, 27, 19, 279049), 0)
2025-04-29 16:27:19,280 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,288 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,289 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,290 - sqlalchemy.engine.Engine - INFO - [cached since 0.2947s ago] ('71a155f2-577c-40a6-84b9-99e832de0dfd',)
2025-04-29 16:27:19,294 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:27:19,295 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,296 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,297 - sqlalchemy.engine.Engine - INFO - [cached since 0.1622s ago] (datetime.datetime(2025, 4, 29, 16, 27, 19, 295852), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 27, 19, 296851), '71a155f2-577c-40a6-84b9-99e832de0dfd')
2025-04-29 16:27:19,299 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,308 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,308 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,308 - sqlalchemy.engine.Engine - INFO - [cached since 0.192s ago] ('50e59690-2e57-480a-bae2-864aa2f880a7', 1, '{"success": true, "message": "第2次循环, item=4"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 308535), datetime.datetime(2025, 4, 29, 16, 27, 19, 308535), 0)
2025-04-29 16:27:19,310 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,317 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:27:19,318 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:27:19,318 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:27:19,320 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,321 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,322 - sqlalchemy.engine.Engine - INFO - [cached since 0.3683s ago] ('e1492268-05ab-43a2-9e95-4c6a83c069f0', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"index": 2, "item": 5}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 319219), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"index": 2, "item": 5}', 1, datetime.datetime(2025, 4, 29, 16, 27, 19, 321217), datetime.datetime(2025, 4, 29, 16, 27, 19, 321217), 0)
2025-04-29 16:27:19,323 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,329 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: e1492268-05ab-43a2-9e95-4c6a83c069f0
2025-04-29 16:27:19,330 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,331 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,331 - sqlalchemy.engine.Engine - INFO - [cached since 0.3349s ago] ('e1492268-05ab-43a2-9e95-4c6a83c069f0',)
2025-04-29 16:27:19,333 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:27:19,333 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,333 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,334 - sqlalchemy.engine.Engine - INFO - [cached since 0.2312s ago] ('null', '执行中', "{'index': 2, 'item': 5}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 27, 19, 333026), 'e1492268-05ab-43a2-9e95-4c6a83c069f0')
2025-04-29 16:27:19,335 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,340 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:27:19,340 - services.execution.handlers.foundation - INFO - 任务 6440a75a-ef44-4232-b520-ff1e480cec54 打印: 2
2025-04-29 16:27:19,341 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,341 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,342 - sqlalchemy.engine.Engine - INFO - [cached since 0.225s ago] ('997a77cd-1c4c-44c8-8c69-b04a23714ecf', 1, '{"success": true, "message": "打印成功", "output": {"message": 2}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 341025), datetime.datetime(2025, 4, 29, 16, 27, 19, 341025), 0)
2025-04-29 16:27:19,342 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,350 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,351 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,351 - sqlalchemy.engine.Engine - INFO - [cached since 0.3547s ago] ('e1492268-05ab-43a2-9e95-4c6a83c069f0',)
2025-04-29 16:27:19,353 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:27:19,353 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,354 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,355 - sqlalchemy.engine.Engine - INFO - [cached since 0.22s ago] (datetime.datetime(2025, 4, 29, 16, 27, 19, 354215), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 27, 19, 354215), 'e1492268-05ab-43a2-9e95-4c6a83c069f0')
2025-04-29 16:27:19,357 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,363 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:27:19,365 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,365 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,365 - sqlalchemy.engine.Engine - INFO - [cached since 0.412s ago] ('b460c69e-0b0b-400f-845b-7ce86691c510', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"index": 2, "item": 5}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 363708), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"index": 2, "item": 5}', 1, datetime.datetime(2025, 4, 29, 16, 27, 19, 365029), datetime.datetime(2025, 4, 29, 16, 27, 19, 365029), 0)
2025-04-29 16:27:19,367 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,374 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: b460c69e-0b0b-400f-845b-7ce86691c510
2025-04-29 16:27:19,375 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,376 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,376 - sqlalchemy.engine.Engine - INFO - [cached since 0.3799s ago] ('b460c69e-0b0b-400f-845b-7ce86691c510',)
2025-04-29 16:27:19,378 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:27:19,378 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,379 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,379 - sqlalchemy.engine.Engine - INFO - [cached since 0.2763s ago] ('null', '执行中', "{'index': 2, 'item': 5}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 27, 19, 379033), 'b460c69e-0b0b-400f-845b-7ce86691c510')
2025-04-29 16:27:19,379 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,390 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:27:19,391 - services.execution.handlers.foundation - INFO - 任务 6440a75a-ef44-4232-b520-ff1e480cec54 打印: 5
2025-04-29 16:27:19,392 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,393 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,394 - sqlalchemy.engine.Engine - INFO - [cached since 0.2774s ago] ('25241a5a-f566-4e2f-8651-e5b9b9bcacb3', 1, '{"success": true, "message": "打印成功", "output": {"message": 5}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 393262), datetime.datetime(2025, 4, 29, 16, 27, 19, 393262), 0)
2025-04-29 16:27:19,397 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,407 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,408 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,409 - sqlalchemy.engine.Engine - INFO - [cached since 0.4129s ago] ('b460c69e-0b0b-400f-845b-7ce86691c510',)
2025-04-29 16:27:19,410 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:27:19,410 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,410 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,412 - sqlalchemy.engine.Engine - INFO - [cached since 0.2773s ago] (datetime.datetime(2025, 4, 29, 16, 27, 19, 410854), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 27, 19, 410854), 'b460c69e-0b0b-400f-845b-7ce86691c510')
2025-04-29 16:27:19,422 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,434 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,435 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,437 - sqlalchemy.engine.Engine - INFO - [cached since 0.3207s ago] ('3c4f79a9-3055-4013-a627-640a904e3ff3', 1, '{"success": true, "message": "第3次循环, item=5"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 435798), datetime.datetime(2025, 4, 29, 16, 27, 19, 435798), 0)
2025-04-29 16:27:19,442 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,453 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:27:19,454 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:27:19,455 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:27:19,458 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,460 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,461 - sqlalchemy.engine.Engine - INFO - [cached since 0.508s ago] ('8e8f917b-c856-4f82-ac4a-2748893e41fb', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"index": 3, "item": 6}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 455791), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"index": 3, "item": 6}', 1, datetime.datetime(2025, 4, 29, 16, 27, 19, 460785), datetime.datetime(2025, 4, 29, 16, 27, 19, 460785), 0)
2025-04-29 16:27:19,464 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,477 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 8e8f917b-c856-4f82-ac4a-2748893e41fb
2025-04-29 16:27:19,477 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,479 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,479 - sqlalchemy.engine.Engine - INFO - [cached since 0.4837s ago] ('8e8f917b-c856-4f82-ac4a-2748893e41fb',)
2025-04-29 16:27:19,481 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:27:19,483 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,484 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,485 - sqlalchemy.engine.Engine - INFO - [cached since 0.3833s ago] ('null', '执行中', "{'index': 3, 'item': 6}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 27, 19, 484665), '8e8f917b-c856-4f82-ac4a-2748893e41fb')
2025-04-29 16:27:19,487 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,499 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:27:19,499 - services.execution.handlers.foundation - INFO - 任务 6440a75a-ef44-4232-b520-ff1e480cec54 打印: 3
2025-04-29 16:27:19,501 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,503 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,503 - sqlalchemy.engine.Engine - INFO - [cached since 0.3873s ago] ('50e9e7fa-c8f8-40ff-809c-372e29322507', 1, '{"success": true, "message": "打印成功", "output": {"message": 3}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 502673), datetime.datetime(2025, 4, 29, 16, 27, 19, 502673), 0)
2025-04-29 16:27:19,505 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,517 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,519 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,519 - sqlalchemy.engine.Engine - INFO - [cached since 0.5235s ago] ('8e8f917b-c856-4f82-ac4a-2748893e41fb',)
2025-04-29 16:27:19,521 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:27:19,523 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,524 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,525 - sqlalchemy.engine.Engine - INFO - [cached since 0.3906s ago] (datetime.datetime(2025, 4, 29, 16, 27, 19, 523871), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 27, 19, 524863), '8e8f917b-c856-4f82-ac4a-2748893e41fb')
2025-04-29 16:27:19,527 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,534 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:27:19,535 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,536 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,537 - sqlalchemy.engine.Engine - INFO - [cached since 0.584s ago] ('11b4a88c-32d8-48b0-bdb2-bb15eca13117', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"index": 3, "item": 6}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 535863), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"index": 3, "item": 6}', 1, datetime.datetime(2025, 4, 29, 16, 27, 19, 536863), datetime.datetime(2025, 4, 29, 16, 27, 19, 536863), 0)
2025-04-29 16:27:19,539 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,545 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: 11b4a88c-32d8-48b0-bdb2-bb15eca13117
2025-04-29 16:27:19,546 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,547 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,548 - sqlalchemy.engine.Engine - INFO - [cached since 0.5522s ago] ('11b4a88c-32d8-48b0-bdb2-bb15eca13117',)
2025-04-29 16:27:19,549 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:27:19,550 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,550 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,554 - sqlalchemy.engine.Engine - INFO - [cached since 0.4525s ago] ('null', '执行中', "{'index': 3, 'item': 6}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 27, 19, 550994), '11b4a88c-32d8-48b0-bdb2-bb15eca13117')
2025-04-29 16:27:19,556 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,563 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:27:19,564 - services.execution.handlers.foundation - INFO - 任务 6440a75a-ef44-4232-b520-ff1e480cec54 打印: 6
2025-04-29 16:27:19,566 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,569 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,569 - sqlalchemy.engine.Engine - INFO - [cached since 0.4529s ago] ('97f9256b-6763-485b-b29b-1869a176baec', 1, '{"success": true, "message": "打印成功", "output": {"message": 6}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 569404), datetime.datetime(2025, 4, 29, 16, 27, 19, 569404), 0)
2025-04-29 16:27:19,571 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,578 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,579 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,580 - sqlalchemy.engine.Engine - INFO - [cached since 0.5835s ago] ('11b4a88c-32d8-48b0-bdb2-bb15eca13117',)
2025-04-29 16:27:19,581 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:27:19,582 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,583 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,583 - sqlalchemy.engine.Engine - INFO - [cached since 0.4485s ago] (datetime.datetime(2025, 4, 29, 16, 27, 19, 582182), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 27, 19, 583189), '11b4a88c-32d8-48b0-bdb2-bb15eca13117')
2025-04-29 16:27:19,585 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,592 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,593 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,594 - sqlalchemy.engine.Engine - INFO - [cached since 0.478s ago] ('1dc9cba2-e3a5-404e-89ba-5a01b86a5e33', 1, '{"success": true, "message": "第4次循环, item=6"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 593179), datetime.datetime(2025, 4, 29, 16, 27, 19, 593179), 0)
2025-04-29 16:27:19,596 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,601 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:27:19,602 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:27:19,602 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:27:19,603 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,603 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,604 - sqlalchemy.engine.Engine - INFO - [cached since 0.651s ago] ('f0d6bf28-cb04-4bae-a61e-0d59a1b9407f', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"index": 4, "item": 7}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 602853), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"index": 4, "item": 7}', 1, datetime.datetime(2025, 4, 29, 16, 27, 19, 603864), datetime.datetime(2025, 4, 29, 16, 27, 19, 603864), 0)
2025-04-29 16:27:19,605 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,611 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: f0d6bf28-cb04-4bae-a61e-0d59a1b9407f
2025-04-29 16:27:19,612 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,612 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,612 - sqlalchemy.engine.Engine - INFO - [cached since 0.6167s ago] ('f0d6bf28-cb04-4bae-a61e-0d59a1b9407f',)
2025-04-29 16:27:19,615 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:27:19,615 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,617 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,619 - sqlalchemy.engine.Engine - INFO - [cached since 0.517s ago] ('null', '执行中', "{'index': 4, 'item': 7}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 27, 19, 617635), 'f0d6bf28-cb04-4bae-a61e-0d59a1b9407f')
2025-04-29 16:27:19,620 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,628 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:27:19,628 - services.execution.handlers.foundation - INFO - 任务 6440a75a-ef44-4232-b520-ff1e480cec54 打印: 4
2025-04-29 16:27:19,629 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,629 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,632 - sqlalchemy.engine.Engine - INFO - [cached since 0.5152s ago] ('8052f3cb-a437-4a7f-877f-c182895da2ee', 1, '{"success": true, "message": "打印成功", "output": {"message": 4}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 629966), datetime.datetime(2025, 4, 29, 16, 27, 19, 629966), 0)
2025-04-29 16:27:19,633 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,642 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,643 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,644 - sqlalchemy.engine.Engine - INFO - [cached since 0.6477s ago] ('f0d6bf28-cb04-4bae-a61e-0d59a1b9407f',)
2025-04-29 16:27:19,647 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:27:19,647 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,647 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,648 - sqlalchemy.engine.Engine - INFO - [cached since 0.514s ago] (datetime.datetime(2025, 4, 29, 16, 27, 19, 647917), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 27, 19, 647917), 'f0d6bf28-cb04-4bae-a61e-0d59a1b9407f')
2025-04-29 16:27:19,652 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,658 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:27:19,661 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,664 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,664 - sqlalchemy.engine.Engine - INFO - [cached since 0.7118s ago] ('161a698c-9c5e-489b-ba2c-fd0467bee8dd', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"index": 4, "item": 7}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 659867), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"index": 4, "item": 7}', 1, datetime.datetime(2025, 4, 29, 16, 27, 19, 663952), datetime.datetime(2025, 4, 29, 16, 27, 19, 663952), 0)
2025-04-29 16:27:19,666 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,672 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: 161a698c-9c5e-489b-ba2c-fd0467bee8dd
2025-04-29 16:27:19,673 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,673 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,673 - sqlalchemy.engine.Engine - INFO - [cached since 0.6779s ago] ('161a698c-9c5e-489b-ba2c-fd0467bee8dd',)
2025-04-29 16:27:19,674 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:27:19,674 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,675 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,676 - sqlalchemy.engine.Engine - INFO - [cached since 0.5741s ago] ('null', '执行中', "{'index': 4, 'item': 7}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 27, 19, 675925), '161a698c-9c5e-489b-ba2c-fd0467bee8dd')
2025-04-29 16:27:19,677 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,684 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:27:19,685 - services.execution.handlers.foundation - INFO - 任务 6440a75a-ef44-4232-b520-ff1e480cec54 打印: 7
2025-04-29 16:27:19,685 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,686 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,686 - sqlalchemy.engine.Engine - INFO - [cached since 0.5702s ago] ('7e1dcd82-919f-4b96-a6cc-04e027e70386', 1, '{"success": true, "message": "打印成功", "output": {"message": 7}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 686734), datetime.datetime(2025, 4, 29, 16, 27, 19, 686734), 0)
2025-04-29 16:27:19,688 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,696 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,697 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,697 - sqlalchemy.engine.Engine - INFO - [cached since 0.701s ago] ('161a698c-9c5e-489b-ba2c-fd0467bee8dd',)
2025-04-29 16:27:19,698 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:27:19,698 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,699 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,699 - sqlalchemy.engine.Engine - INFO - [cached since 0.5649s ago] (datetime.datetime(2025, 4, 29, 16, 27, 19, 699665), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 27, 19, 699665), '161a698c-9c5e-489b-ba2c-fd0467bee8dd')
2025-04-29 16:27:19,701 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,710 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,710 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,711 - sqlalchemy.engine.Engine - INFO - [cached since 0.5948s ago] ('cf6bcc9f-7ce5-478f-a417-6e66e6097bb6', 1, '{"success": true, "message": "第5次循环, item=7"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 710657), datetime.datetime(2025, 4, 29, 16, 27, 19, 710657), 0)
2025-04-29 16:27:19,712 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,719 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:27:19,719 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:27:19,719 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:27:19,720 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,721 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,722 - sqlalchemy.engine.Engine - INFO - [cached since 0.7689s ago] ('371a7154-2b82-4b69-a357-527b406a16e2', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"index": 5, "item": 8}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 720658), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"index": 5, "item": 8}', 1, datetime.datetime(2025, 4, 29, 16, 27, 19, 721673), datetime.datetime(2025, 4, 29, 16, 27, 19, 721673), 0)
2025-04-29 16:27:19,723 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,730 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 371a7154-2b82-4b69-a357-527b406a16e2
2025-04-29 16:27:19,731 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,732 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,732 - sqlalchemy.engine.Engine - INFO - [cached since 0.736s ago] ('371a7154-2b82-4b69-a357-527b406a16e2',)
2025-04-29 16:27:19,733 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:27:19,734 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,734 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,736 - sqlalchemy.engine.Engine - INFO - [cached since 0.6335s ago] ('null', '执行中', "{'index': 5, 'item': 8}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 27, 19, 734165), '371a7154-2b82-4b69-a357-527b406a16e2')
2025-04-29 16:27:19,737 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,744 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:27:19,745 - services.execution.handlers.foundation - INFO - 任务 6440a75a-ef44-4232-b520-ff1e480cec54 打印: 5
2025-04-29 16:27:19,746 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,747 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,747 - sqlalchemy.engine.Engine - INFO - [cached since 0.6306s ago] ('22a403ac-f084-4c83-8c1f-886c91bd3ad6', 1, '{"success": true, "message": "打印成功", "output": {"message": 5}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 747165), datetime.datetime(2025, 4, 29, 16, 27, 19, 747165), 0)
2025-04-29 16:27:19,748 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,755 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,755 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,756 - sqlalchemy.engine.Engine - INFO - [cached since 0.7601s ago] ('371a7154-2b82-4b69-a357-527b406a16e2',)
2025-04-29 16:27:19,757 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:27:19,757 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,757 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,758 - sqlalchemy.engine.Engine - INFO - [cached since 0.6232s ago] (datetime.datetime(2025, 4, 29, 16, 27, 19, 757871), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 27, 19, 757871), '371a7154-2b82-4b69-a357-527b406a16e2')
2025-04-29 16:27:19,758 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,766 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:27:19,767 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,768 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,768 - sqlalchemy.engine.Engine - INFO - [cached since 0.815s ago] ('a2f173ef-2de5-4fab-91b9-f4116de9562f', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"index": 5, "item": 8}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 767333), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"index": 5, "item": 8}', 1, datetime.datetime(2025, 4, 29, 16, 27, 19, 768337), datetime.datetime(2025, 4, 29, 16, 27, 19, 768337), 0)
2025-04-29 16:27:19,772 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,778 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: a2f173ef-2de5-4fab-91b9-f4116de9562f
2025-04-29 16:27:19,778 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,779 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,779 - sqlalchemy.engine.Engine - INFO - [cached since 0.7835s ago] ('a2f173ef-2de5-4fab-91b9-f4116de9562f',)
2025-04-29 16:27:19,780 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:27:19,781 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,781 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,781 - sqlalchemy.engine.Engine - INFO - [cached since 0.6793s ago] ('null', '执行中', "{'index': 5, 'item': 8}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 27, 19, 781586), 'a2f173ef-2de5-4fab-91b9-f4116de9562f')
2025-04-29 16:27:19,782 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,791 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:27:19,791 - services.execution.handlers.foundation - INFO - 任务 6440a75a-ef44-4232-b520-ff1e480cec54 打印: 8
2025-04-29 16:27:19,791 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,792 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,793 - sqlalchemy.engine.Engine - INFO - [cached since 0.6772s ago] ('eca17067-f0c7-4eae-ba4e-6bf96f883e7e', 1, '{"success": true, "message": "打印成功", "output": {"message": 8}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 792831), datetime.datetime(2025, 4, 29, 16, 27, 19, 792831), 0)
2025-04-29 16:27:19,795 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,803 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,804 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,804 - sqlalchemy.engine.Engine - INFO - [cached since 0.8085s ago] ('a2f173ef-2de5-4fab-91b9-f4116de9562f',)
2025-04-29 16:27:19,805 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:27:19,806 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,806 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,807 - sqlalchemy.engine.Engine - INFO - [cached since 0.6725s ago] (datetime.datetime(2025, 4, 29, 16, 27, 19, 806840), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 27, 19, 806840), 'a2f173ef-2de5-4fab-91b9-f4116de9562f')
2025-04-29 16:27:19,808 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,815 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,816 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,816 - sqlalchemy.engine.Engine - INFO - [cached since 0.7005s ago] ('ed7b84e2-46c1-4ef6-951f-e201603fbdb7', 1, '{"success": true, "message": "第6次循环, item=8"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 816922), datetime.datetime(2025, 4, 29, 16, 27, 19, 816922), 0)
2025-04-29 16:27:19,819 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,828 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-29 16:27:19,828 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 2 个子块
2025-04-29 16:27:19,833 - services.execution.block_executor - INFO - 执行子块 [1/2] - 名称: b2, ID: 2, 类型: PrintBp
2025-04-29 16:27:19,834 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,836 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,837 - sqlalchemy.engine.Engine - INFO - [cached since 0.8835s ago] ('78a5107b-4fec-4467-ac88-3ebf16a6f703', 'b2', '2', '', '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"message": "blocks.b1.index"}', '{"index": 6, "item": 9}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 834175), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.index", "required": null}}', '{"index": 6, "item": 9}', 1, datetime.datetime(2025, 4, 29, 16, 27, 19, 836187), datetime.datetime(2025, 4, 29, 16, 27, 19, 836187), 0)
2025-04-29 16:27:19,838 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,848 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 78a5107b-4fec-4467-ac88-3ebf16a6f703
2025-04-29 16:27:19,849 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,850 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,851 - sqlalchemy.engine.Engine - INFO - [cached since 0.8551s ago] ('78a5107b-4fec-4467-ac88-3ebf16a6f703',)
2025-04-29 16:27:19,852 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:27:19,853 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,855 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,856 - sqlalchemy.engine.Engine - INFO - [cached since 0.7545s ago] ('null', '执行中', "{'index': 6, 'item': 9}", '{"blocks": {"b2": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 27, 19, 855690), '78a5107b-4fec-4467-ac88-3ebf16a6f703')
2025-04-29 16:27:19,858 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,864 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-29 16:27:19,864 - services.execution.handlers.foundation - INFO - 任务 6440a75a-ef44-4232-b520-ff1e480cec54 打印: 6
2025-04-29 16:27:19,865 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,867 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,868 - sqlalchemy.engine.Engine - INFO - [cached since 0.7508s ago] ('d34bcd23-f75f-45df-8de0-449ebd7bc16f', 1, '{"success": true, "message": "打印成功", "output": {"message": 6}}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 867091), datetime.datetime(2025, 4, 29, 16, 27, 19, 867091), 0)
2025-04-29 16:27:19,869 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,879 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,879 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,880 - sqlalchemy.engine.Engine - INFO - [cached since 0.8847s ago] ('78a5107b-4fec-4467-ac88-3ebf16a6f703',)
2025-04-29 16:27:19,882 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-29 16:27:19,882 - services.execution.block_executor - INFO - 为块 b2 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,884 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,885 - sqlalchemy.engine.Engine - INFO - [cached since 0.75s ago] (datetime.datetime(2025, 4, 29, 16, 27, 19, 884137), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 27, 19, 884137), '78a5107b-4fec-4467-ac88-3ebf16a6f703')
2025-04-29 16:27:19,888 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,898 - services.execution.block_executor - INFO - 执行子块 [2/2] - 名称: b3, ID: 3, 类型: PrintBp
2025-04-29 16:27:19,899 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,901 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,901 - sqlalchemy.engine.Engine - INFO - [cached since 0.9478s ago] ('44b2bead-fdb6-4528-be43-4237fde3c653', 'b3', '3', '', '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"message": "blocks.b1.item"}', '{"index": 6, "item": 9}', 'PrintBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 899140), <TaskBlockRecordStatus.RUNNING: 1001>, '{"message": {"type": "Expression", "value": "blocks.b1.item", "required": null}}', '{"index": 6, "item": 9}', 1, datetime.datetime(2025, 4, 29, 16, 27, 19, 900150), datetime.datetime(2025, 4, 29, 16, 27, 19, 900150), 0)
2025-04-29 16:27:19,904 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,911 - services.execution.block_executor - DEBUG - 为子块 3 创建记录, 记录ID: 44b2bead-fdb6-4528-be43-4237fde3c653
2025-04-29 16:27:19,911 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,913 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,914 - sqlalchemy.engine.Engine - INFO - [cached since 0.9179s ago] ('44b2bead-fdb6-4528-be43-4237fde3c653',)
2025-04-29 16:27:19,915 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:27:19,916 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,917 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,918 - sqlalchemy.engine.Engine - INFO - [cached since 0.8158s ago] ('null', '执行中', "{'index': 6, 'item': 9}", '{"blocks": {"b3": null}}', '执行中', datetime.datetime(2025, 4, 29, 16, 27, 19, 917663), '44b2bead-fdb6-4528-be43-4237fde3c653')
2025-04-29 16:27:19,919 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,926 - services.execution.block_executor - INFO - 开始执行子块 3 的处理逻辑
2025-04-29 16:27:19,926 - services.execution.handlers.foundation - INFO - 任务 6440a75a-ef44-4232-b520-ff1e480cec54 打印: 9
2025-04-29 16:27:19,928 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,930 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 16:27:19,930 - sqlalchemy.engine.Engine - INFO - [generated in 0.00119s] ('6440a75a-ef44-4232-b520-ff1e480cec54',)
2025-04-29 16:27:19,933 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,934 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,935 - sqlalchemy.engine.Engine - INFO - [cached since 0.8186s ago] ('efd0cd7b-7c53-4648-b5e6-9b4b5ed79acc', 1, '{"success": true, "message": "打印成功", "output": {"message": 9}}', 3, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 934195), datetime.datetime(2025, 4, 29, 16, 27, 19, 934195), 0)
2025-04-29 16:27:19,938 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,939 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,947 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,947 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,948 - sqlalchemy.engine.Engine - INFO - [cached since 0.9517s ago] ('44b2bead-fdb6-4528-be43-4237fde3c653',)
2025-04-29 16:27:19,949 - services.execution.block_executor - INFO - 块 b3 (ID: 3) 设置的变量: []
2025-04-29 16:27:19,949 - services.execution.block_executor - INFO - 为块 b3 存储输出: <class 'NoneType'>
2025-04-29 16:27:19,950 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,951 - sqlalchemy.engine.Engine - INFO - [cached since 0.8167s ago] (datetime.datetime(2025, 4, 29, 16, 27, 19, 950729), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, '执行成功', datetime.datetime(2025, 4, 29, 16, 27, 19, 950729), '44b2bead-fdb6-4528-be43-4237fde3c653')
2025-04-29 16:27:19,953 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,961 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,964 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,965 - sqlalchemy.engine.Engine - INFO - [cached since 0.8481s ago] ('40052721-8907-4272-a1d7-adfb8c49b139', 1, '{"success": true, "message": "第7次循环, item=9"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 964352), datetime.datetime(2025, 4, 29, 16, 27, 19, 964352), 0)
2025-04-29 16:27:19,967 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,976 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,978 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:19,978 - sqlalchemy.engine.Engine - INFO - [cached since 0.8624s ago] ('61b2a4f0-1011-4109-b58c-f94c688c8c77', 1, '{"success": true, "message": "数组遍历成功，共遍历了 7 个元素", "output": {"iterationResults": [{"index": 0, "success": true, "result": {"success": true, "message" ... (1750 characters truncated) ... "results": [{"child_id": 2, "success": true, "output": {"message": 6}}, {"child_id": 3, "success": true, "output": {"message": 9}}]}}}], "count": 7}}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 19, 978858), datetime.datetime(2025, 4, 29, 16, 27, 19, 978858), 0)
2025-04-29 16:27:19,981 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:19,988 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:19,989 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,989 - sqlalchemy.engine.Engine - INFO - [cached since 0.9933s ago] ('472e415a-ed55-41a3-a60b-cdb5077caa1c',)
2025-04-29 16:27:19,990 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 16:27:19,991 - services.execution.block_executor - INFO - 为块 b1 存储输出: ['index', 'item']
2025-04-29 16:27:19,991 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:19,992 - sqlalchemy.engine.Engine - INFO - [generated in 0.00062s] ('{"index": 6, "item": 9}', datetime.datetime(2025, 4, 29, 16, 27, 19, 991633), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, "{'index': 6, 'item': 9}", '{"blocks": {"b1": {"index": 6, "item": 9}}}', '执行成功', datetime.datetime(2025, 4, 29, 16, 27, 19, 991633), '472e415a-ed55-41a3-a60b-cdb5077caa1c')
2025-04-29 16:27:19,994 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:20,000 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:20,000 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 16:27:20,001 - sqlalchemy.engine.Engine - INFO - [cached since 0.8848s ago] ('3b69b0a2-5079-4ae4-81ea-44ee870c3c40', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, " ... (1851 characters truncated) ... sults": [{"child_id": 2, "success": true, "output": {"message": 6}}, {"child_id": 3, "success": true, "output": {"message": 9}}]}}}], "count": 7}}]}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6440a75a-ef44-4232-b520-ff1e480cec54', datetime.datetime(2025, 4, 29, 16, 27, 20, 947), datetime.datetime(2025, 4, 29, 16, 27, 20, 947), 0)
2025-04-29 16:27:20,001 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:20,007 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:20,007 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:20,007 - sqlalchemy.engine.Engine - INFO - [cached since 1.012s ago] ('241cc097-39fd-4777-8d01-b3da107a3483',)
2025-04-29 16:27:20,008 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 16:27:20,008 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 16:27:20,009 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 16:27:20,010 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (datetime.datetime(2025, 4, 29, 16, 27, 20, 9946), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, "{'index': 6, 'item': 9}", '执行成功', datetime.datetime(2025, 4, 29, 16, 27, 20, 9946), '241cc097-39fd-4777-8d01-b3da107a3483')
2025-04-29 16:27:20,010 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:20,017 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:27:20,018 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 16:27:20,018 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (datetime.datetime(2025, 4, 29, 16, 27, 20, 16976), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 1076, 1, datetime.datetime(2025, 4, 29, 16, 27, 20, 18970), '6440a75a-ef44-4232-b520-ff1e480cec54')
2025-04-29 16:27:20,019 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:27:20,025 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 6440a75a-ef44-4232-b520-ff1e480cec54, 结果: True
2025-04-29 16:28:15,323 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 16:28:15,326 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 16:28:15,326 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 16:28:15,329 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 16:28:15,335 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 16:28:15,337 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 16:28:15,338 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:28:15,339 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 16:28:15,342 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 28, 15, 326889))
2025-04-29 16:28:15,343 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 16:28:15,343 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 16:28:15,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 16:28:15,348 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 16:28:15,355 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 16:28:15,355 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 16:28:15,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 16:28:15,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 16:28:15,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 16:28:15,360 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:28:15,360 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 16:28:15,360 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 16:28:15,364 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 16:28:15,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 16:28:15,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 16:28:15,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 16:28:15,373 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 16:28:15,374 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 16:28:15,380 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 16:28:30,400 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 16:28:30,401 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 16:28:30,401 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 16:28:30,401 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 16:28:30,402 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 16:28:30,402 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 16:29:15,395 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:29:15,395 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 16:29:15,396 - sqlalchemy.engine.Engine - INFO - [cached since 120.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 29, 15, 394277))
2025-04-29 16:29:15,399 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:29:15,442 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 16:29:15,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 16:29:15,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 16:29:15,447 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 16:29:15,449 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 16:29:15,451 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 16:29:15,453 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 16:29:15,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 16:29:15,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 16:29:15,454 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 16:29:15,454 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 16:29:15,454 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 16:29:15,455 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 16:29:15,455 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 16:29:15,455 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 16:29:15,455 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 16:29:15,455 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 16:29:15,455 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 16:29:15,455 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 16:29:15,455 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 16:29:15,455 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 16:29:15,455 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 16:29:15,455 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 16:29:15,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 16:29:30,470 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 16:29:30,471 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 16:29:30,471 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 16:29:30,471 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 16:29:30,472 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 16:29:30,472 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 16:30:15,411 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:30:15,412 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 16:30:15,417 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 30, 15, 411275))
2025-04-29 16:30:15,421 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:30:15,488 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 16:30:15,489 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 16:30:15,489 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 16:30:15,489 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 16:30:15,489 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 16:30:15,489 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 16:30:15,489 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 16:30:15,489 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 16:30:15,489 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 16:30:15,489 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 16:30:15,489 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 16:30:15,489 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 16:30:15,489 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 16:30:15,489 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 16:30:15,489 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 16:30:15,489 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 16:30:15,489 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 16:30:15,489 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 16:30:15,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 16:30:15,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 16:30:15,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 16:30:15,491 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 16:30:15,491 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 16:30:15,497 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 16:30:30,490 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 16:30:30,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 16:30:30,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 16:30:30,492 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 16:30:30,493 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 16:30:30,495 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 16:31:15,434 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:31:15,435 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 16:31:15,436 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 31, 15, 433364))
2025-04-29 16:31:15,438 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:31:15,525 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 16:31:15,528 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 16:31:15,529 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 16:31:15,530 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 16:31:15,530 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 16:31:15,530 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 16:31:15,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 16:31:15,532 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 16:31:15,535 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 16:31:15,537 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 16:31:15,539 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 16:31:15,540 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 16:31:15,543 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 16:31:15,545 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 16:31:15,547 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 16:31:15,549 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 16:31:15,551 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 16:31:15,553 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 16:31:15,555 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 16:31:15,555 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 16:31:15,556 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 16:31:15,558 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 16:31:15,560 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 16:31:15,569 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 16:31:30,565 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 16:31:30,566 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 16:31:30,566 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 16:31:30,566 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 16:31:30,567 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 16:31:30,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 16:32:15,453 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:32:15,454 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 16:32:15,454 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 32, 15, 452200))
2025-04-29 16:32:15,456 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:32:15,590 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 16:32:15,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 16:32:15,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 16:32:15,590 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 16:32:15,590 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 16:32:15,590 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 16:32:15,592 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 16:32:15,592 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 16:32:15,592 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 16:32:15,592 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 16:32:15,592 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 16:32:15,592 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 16:32:15,592 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 16:32:15,592 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 16:32:15,592 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 16:32:15,592 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 16:32:15,592 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 16:32:15,592 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 16:32:15,592 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 16:32:15,592 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 16:32:15,593 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 16:32:15,593 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 16:32:15,593 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 16:32:15,598 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 16:32:30,601 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 16:32:30,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 16:32:30,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 16:32:30,604 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 16:32:30,604 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 16:32:30,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 16:32:30,817 - app - INFO - 应用程序关闭中...
2025-04-29 16:32:30,818 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 16:32:30,818 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 16:32:30,818 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 16:32:30,818 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 16:32:30,819 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 16:32:30,819 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 16:32:30,819 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 16:32:30,819 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 16:32:30,819 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 16:32:30,819 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 16:32:30,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 16:32:30,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 16:32:30,820 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 16:32:30,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 16:32:30,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 16:32:30,820 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-29 16:32:30,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 16:32:30,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 16:32:30,820 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-29 16:32:30,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 16:32:30,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 16:32:30,820 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-29 16:32:30,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 16:32:30,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 16:32:30,821 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-29 16:32:30,821 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 16:32:30,821 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 16:32:30,821 - app - INFO - 增强版任务调度器已停止
2025-04-29 16:32:30,821 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 16:32:30,822 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 16:32:30,822 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 16:32:30,822 - data.session - INFO - 数据库连接已关闭
2025-04-29 16:32:32,102 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 16:32:32,161 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 16:32:32,161 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 16:32:32,226 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 16:32:32,289 - data.session - INFO - 正在初始化数据库...
2025-04-29 16:32:32,315 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 16:32:32,338 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 16:32:32,339 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:32:32,340 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 16:32:32,340 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:32:32,340 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 16:32:32,341 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:32:32,342 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:32:32,342 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 16:32:32,343 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:32:32,344 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 16:32:32,345 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:32:32,347 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 16:32:32,347 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:32:32,348 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 16:32:32,349 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:32:32,350 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 16:32:32,352 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:32:32,353 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 16:32:32,354 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:32:32,357 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 16:32:32,360 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:32:32,361 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 16:32:32,362 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:32:32,364 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 16:32:32,364 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:32:32,365 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 16:32:32,366 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:32:32,367 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 16:32:32,367 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:32:32,368 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:32:32,370 - data.session - INFO - 数据库表初始化完成
2025-04-29 16:32:32,723 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 16:32:32,724 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 16:32:32,724 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 16:32:32,724 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 16:32:32,724 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 16:32:32,724 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 16:32:32,725 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 16:32:32,725 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 16:32:32,725 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 16:32:32,725 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 16:32:32,725 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 16:32:32,725 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 16:32:32,726 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 16:32:32,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 16:32:32,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 16:32:32,728 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 16:32:32,728 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 16:32:32,728 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 16:32:32,728 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 16:32:32,728 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 16:32:32,729 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 16:32:32,729 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 16:32:32,729 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:32:32,730 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 16:32:32,730 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:32:32,731 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 16:32:32,731 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:32:32,734 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:32:32,744 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 16:32:32,744 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 16:32:32,745 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 16:32:32,745 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:32:32,746 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 16:32:32,746 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 16:32:32,746 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 16:32:32,747 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:32:32,750 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 16:32:32,751 - sqlalchemy.engine.Engine - INFO - [generated in 0.00053s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 16:32:32,752 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:32:32,752 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 16:32:32,752 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 16:32:32,752 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 16:32:32,752 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 16:32:32,753 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 16:32:32,753 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:32:32,754 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 16:32:32,755 - sqlalchemy.engine.Engine - INFO - [generated in 0.00094s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 32, 32, 747955))
2025-04-29 16:32:32,756 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:33:32,760 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 16:33:32,761 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 16:33:32,761 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 16:33:32,762 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 16:33:32,762 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 16:33:32,762 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 16:33:32,762 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 16:33:32,762 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 16:33:32,763 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 16:33:32,763 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:33:32,763 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 16:33:32,763 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 33, 32, 760089))
2025-04-29 16:33:32,765 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 16:33:32,765 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 16:33:32,765 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 16:33:32,766 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 16:33:32,766 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 16:33:32,766 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 16:33:32,766 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 16:33:32,766 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 16:33:32,766 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 16:33:32,767 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:33:32,767 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 16:33:32,767 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 16:33:32,767 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 16:33:32,767 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 16:33:32,767 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 16:33:32,767 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 16:33:32,767 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 16:33:32,768 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 16:33:32,768 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 16:33:32,768 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 16:33:32,768 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 16:33:32,774 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 16:33:32,868 - app - INFO - 应用程序关闭中...
2025-04-29 16:33:32,870 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 16:33:32,871 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 16:33:32,871 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 16:33:32,871 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 16:33:32,871 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 16:33:32,871 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 16:33:32,872 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 16:33:32,872 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 16:33:32,872 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 16:33:32,872 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 16:33:32,872 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 16:33:32,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 16:33:32,873 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 16:33:32,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 16:33:32,874 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 16:33:32,874 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 16:33:32,874 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 16:33:32,874 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 16:33:32,875 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 16:33:32,875 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 16:33:32,875 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 16:33:32,875 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 16:33:32,875 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 16:33:32,875 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 16:33:32,875 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 16:33:32,875 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 16:33:32,876 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 16:33:32,876 - app - INFO - 增强版任务调度器已停止
2025-04-29 16:33:32,876 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 16:33:32,876 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 16:33:32,876 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 16:33:32,876 - data.session - INFO - 数据库连接已关闭
2025-04-29 16:33:34,075 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 16:33:34,134 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 16:33:34,136 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 16:33:34,200 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 16:33:34,248 - data.session - INFO - 正在初始化数据库...
2025-04-29 16:33:34,284 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 16:33:34,308 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 16:33:34,308 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:33:34,309 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 16:33:34,309 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:33:34,310 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 16:33:34,310 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:33:34,311 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:33:34,314 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 16:33:34,315 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:33:34,317 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 16:33:34,317 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:33:34,320 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 16:33:34,320 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:33:34,321 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 16:33:34,321 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:33:34,322 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 16:33:34,325 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:33:34,326 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 16:33:34,326 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:33:34,327 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 16:33:34,327 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:33:34,328 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 16:33:34,328 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:33:34,329 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 16:33:34,329 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:33:34,334 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 16:33:34,335 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:33:34,338 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 16:33:34,338 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:33:34,339 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:33:34,342 - data.session - INFO - 数据库表初始化完成
2025-04-29 16:33:34,690 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 16:33:34,690 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 16:33:34,690 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 16:33:34,690 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 16:33:34,690 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 16:33:34,690 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 16:33:34,690 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 16:33:34,690 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 16:33:34,692 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 16:33:34,692 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 16:33:34,692 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 16:33:34,692 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 16:33:34,692 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 16:33:34,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 16:33:34,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 16:33:34,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 16:33:34,694 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 16:33:34,694 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 16:33:34,694 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 16:33:34,694 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 16:33:34,696 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 16:33:34,696 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 16:33:34,697 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:33:34,697 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 16:33:34,698 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:33:34,698 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 16:33:34,698 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:33:34,699 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:33:34,708 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 16:33:34,709 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 16:33:34,709 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 16:33:34,710 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:33:34,710 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 16:33:34,711 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 16:33:34,711 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 16:33:34,711 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:33:34,713 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 16:33:34,714 - sqlalchemy.engine.Engine - INFO - [generated in 0.00175s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 16:33:34,715 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:33:34,716 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 16:33:34,716 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 16:33:34,716 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 16:33:34,716 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 16:33:34,716 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 16:33:34,717 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:33:34,717 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 16:33:34,718 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 33, 34, 711364))
2025-04-29 16:33:34,719 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:34:34,724 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 16:34:34,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 16:34:34,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 16:34:34,726 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 16:34:34,726 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 16:34:34,726 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 16:34:34,726 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:34:34,726 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 16:34:34,726 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 34, 34, 724892))
2025-04-29 16:34:34,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 16:34:34,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 16:34:34,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 16:34:34,727 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 16:34:34,727 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 16:34:34,727 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 16:34:34,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 16:34:34,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 16:34:34,729 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 16:34:34,729 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:34:34,729 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 16:34:34,729 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 16:34:34,729 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 16:34:34,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 16:34:34,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 16:34:34,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 16:34:34,730 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 16:34:34,730 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 16:34:34,730 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 16:34:34,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 16:34:34,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 16:34:34,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 16:34:34,731 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 16:34:34,731 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 16:34:34,736 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 16:34:34,834 - app - INFO - 应用程序关闭中...
2025-04-29 16:34:34,834 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 16:34:34,834 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 16:34:34,834 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 16:34:34,835 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 16:34:34,835 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 16:34:34,835 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 16:34:34,835 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 16:34:34,835 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 16:34:34,835 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 16:34:34,835 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 16:34:34,836 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 16:34:34,836 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 16:34:34,836 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 16:34:34,836 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 16:34:34,836 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 16:34:34,837 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 16:34:34,837 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 16:34:34,837 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 16:34:34,837 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 16:34:34,837 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 16:34:34,838 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 16:34:34,838 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 16:34:34,838 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 16:34:34,838 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 16:34:34,838 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 16:34:34,838 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 16:34:34,838 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 16:34:34,838 - app - INFO - 增强版任务调度器已停止
2025-04-29 16:34:34,838 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 16:34:34,840 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 16:34:34,841 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 16:34:34,841 - data.session - INFO - 数据库连接已关闭
2025-04-29 16:34:35,952 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 16:34:36,011 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 16:34:36,014 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 16:34:36,075 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 16:34:36,124 - data.session - INFO - 正在初始化数据库...
2025-04-29 16:34:36,151 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 16:34:36,175 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 16:34:36,185 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:34:36,187 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 16:34:36,187 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:34:36,190 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 16:34:36,191 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:34:36,191 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:34:36,191 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 16:34:36,192 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:34:36,193 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 16:34:36,194 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:34:36,195 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 16:34:36,196 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:34:36,196 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 16:34:36,197 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:34:36,198 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 16:34:36,198 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:34:36,199 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 16:34:36,199 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:34:36,200 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 16:34:36,200 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:34:36,201 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 16:34:36,201 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:34:36,202 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 16:34:36,202 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:34:36,203 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 16:34:36,203 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:34:36,204 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 16:34:36,204 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 16:34:36,205 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:34:36,206 - data.session - INFO - 数据库表初始化完成
2025-04-29 16:34:36,557 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 16:34:36,558 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 16:34:36,558 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 16:34:36,558 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 16:34:36,558 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 16:34:36,559 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 16:34:36,559 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 16:34:36,559 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 16:34:36,559 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 16:34:36,559 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 16:34:36,560 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 16:34:36,560 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 16:34:36,560 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 16:34:36,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 16:34:36,563 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 16:34:36,564 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 16:34:36,564 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 16:34:36,564 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 16:34:36,564 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 16:34:36,565 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 16:34:36,566 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 16:34:36,566 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 16:34:36,567 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:34:36,567 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 16:34:36,567 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:34:36,568 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 16:34:36,568 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 16:34:36,569 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:34:36,579 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 16:34:36,579 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 16:34:36,580 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 16:34:36,580 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:34:36,580 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 16:34:36,581 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 16:34:36,581 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 16:34:36,582 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:34:36,583 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 16:34:36,584 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 16:34:36,584 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:34:36,585 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 16:34:36,585 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 16:34:36,585 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 16:34:36,585 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 16:34:36,586 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 16:34:36,586 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 16:34:36,588 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 16:34:36,588 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 15, 34, 36, 582137))
2025-04-29 16:34:36,588 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 16:35:13,851 - app - INFO - 应用程序关闭中...
2025-04-29 16:35:13,851 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 16:35:13,851 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 16:35:13,851 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 16:35:13,851 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 16:35:13,851 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 16:35:13,851 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 16:35:13,851 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 16:35:13,852 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 16:35:13,852 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 16:35:13,852 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 16:35:13,852 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 16:35:13,852 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 16:35:13,852 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 16:35:13,852 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 16:35:13,852 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 16:35:13,852 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 16:35:13,852 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 16:35:13,853 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 16:35:13,853 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 16:35:13,853 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 16:35:13,853 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 16:35:13,853 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 16:35:13,853 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 16:35:13,853 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 16:35:13,853 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 16:35:13,853 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 16:35:13,854 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 16:35:13,854 - app - INFO - 增强版任务调度器已停止
2025-04-29 16:35:13,854 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 16:35:13,854 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 16:35:13,854 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 16:35:13,855 - data.session - INFO - 数据库连接已关闭
2025-04-29 17:50:44,478 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 17:50:44,545 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 17:50:44,545 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 17:50:45,257 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 17:50:45,320 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 17:50:45,320 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 17:50:45,386 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 17:50:45,451 - data.session - INFO - 正在初始化数据库...
2025-04-29 17:50:45,479 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 17:50:45,496 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 17:50:45,496 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:50:45,496 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 17:50:45,496 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:50:45,496 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 17:50:45,496 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:50:45,496 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 17:50:45,496 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 17:50:45,496 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:50:45,503 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 17:50:45,503 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:50:45,503 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 17:50:45,503 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:50:45,503 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 17:50:45,509 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:50:45,511 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 17:50:45,511 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:50:45,511 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 17:50:45,511 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:50:45,511 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 17:50:45,511 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:50:45,511 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 17:50:45,511 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:50:45,511 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 17:50:45,511 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:50:45,511 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 17:50:45,511 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:50:45,526 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 17:50:45,527 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:50:45,527 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 17:50:45,527 - data.session - INFO - 数据库表初始化完成
2025-04-29 17:50:45,903 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 17:50:45,923 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 17:50:45,923 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 17:50:45,923 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 17:50:45,938 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 17:50:45,938 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 17:50:45,938 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 17:50:45,938 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 17:50:45,938 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 17:50:45,938 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 17:50:45,938 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 17:50:45,944 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 17:50:45,944 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 17:50:45,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 17:50:45,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 17:50:45,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 17:50:45,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 17:50:45,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 17:50:45,944 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 17:50:45,944 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 17:50:45,944 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 17:50:45,944 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 17:50:45,944 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 17:50:45,944 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 17:50:45,944 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 17:50:45,944 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 17:50:45,944 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 17:50:45,944 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 17:50:45,962 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 17:50:45,964 - sqlalchemy.engine.Engine - INFO - [generated in 0.00240s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 17:50:45,968 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 17:50:45,968 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 17:50:45,970 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 17:50:45,976 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 17:50:45,976 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 17:50:45,986 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 17:50:45,992 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 17:50:45,992 - sqlalchemy.engine.Engine - INFO - [generated in 0.00061s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 17:50:46,017 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 17:50:46,017 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 17:50:46,017 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 17:50:46,017 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 17:50:46,017 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 17:50:46,017 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 17:50:46,017 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 17:50:46,017 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 17:50:46,017 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 16, 50, 45, 986572))
2025-04-29 17:50:46,017 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 17:51:45,959 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 17:51:45,959 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 17:51:45,959 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 17:51:45,959 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 17:51:45,961 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 17:51:45,961 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 17:51:45,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 17:51:45,961 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 17:51:45,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 17:51:45,962 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 17:51:45,962 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 17:51:45,962 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 17:51:45,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 17:51:45,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 17:51:45,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 17:51:45,963 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 17:51:45,963 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 17:51:45,967 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 17:51:45,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 17:51:45,967 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 17:51:45,968 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 17:51:45,968 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 17:51:45,968 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 17:51:45,969 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 17:51:45,969 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 17:51:45,969 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 17:51:45,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 17:51:45,970 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 17:51:45,970 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 17:51:45,981 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 17:51:46,036 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 17:51:46,037 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 17:51:46,037 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 16, 51, 46, 36174))
2025-04-29 17:51:46,038 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 17:52:46,025 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 17:52:46,026 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 17:52:46,027 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 17:52:46,027 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 17:52:46,028 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 17:52:46,028 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 17:52:46,028 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 17:52:46,029 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 17:52:46,029 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 17:52:46,029 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 17:52:46,030 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 17:52:46,030 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 16, 52, 46, 27155))
2025-04-29 17:52:46,031 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 17:52:46,031 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 17:52:46,032 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 17:52:46,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 17:52:46,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 17:52:46,033 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 17:52:46,033 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 17:52:46,033 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 17:52:46,033 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 17:52:46,035 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 17:52:46,036 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 17:52:46,036 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 17:52:46,036 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 17:52:46,037 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 17:52:46,037 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 17:52:46,037 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 17:52:46,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 17:52:46,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 17:52:46,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 17:52:46,039 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 17:52:46,039 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 17:52:46,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 17:53:46,027 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 17:53:46,028 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 17:53:46,028 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 16, 53, 46, 26758))
2025-04-29 17:53:46,030 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 17:53:46,072 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 17:53:46,073 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 17:53:46,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 17:53:46,074 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 17:53:46,074 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 17:53:46,074 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 17:53:46,075 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 17:53:46,075 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 17:53:46,075 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 17:53:46,075 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 17:53:46,075 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 17:53:46,076 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 17:53:46,077 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 17:53:46,077 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 17:53:46,077 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 17:53:46,077 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 17:53:46,077 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 17:53:46,077 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 17:53:46,078 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 17:53:46,078 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 17:53:46,078 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 17:53:46,078 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 17:53:46,078 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 17:53:46,078 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 17:53:46,079 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 17:53:46,079 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 17:53:46,079 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 17:53:46,079 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 17:53:46,079 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 17:53:46,084 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 17:54:22,913 - app - INFO - 应用程序关闭中...
2025-04-29 17:54:22,914 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 17:54:22,914 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 17:54:22,914 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 17:54:22,914 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 17:54:22,914 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 17:54:22,914 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 17:54:22,914 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 17:54:22,914 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 17:54:22,915 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 17:54:22,915 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 17:54:22,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 17:54:22,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 17:54:22,915 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 17:54:22,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 17:54:22,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 17:54:22,917 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 17:54:22,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 17:54:22,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 17:54:22,917 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 17:54:22,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 17:54:22,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 17:54:22,918 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 17:54:22,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 17:54:22,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 17:54:22,918 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 17:54:22,918 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 17:54:22,918 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 17:54:22,918 - app - INFO - 增强版任务调度器已停止
2025-04-29 17:54:22,918 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 17:54:22,919 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 17:54:22,919 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 17:54:22,919 - data.session - INFO - 数据库连接已关闭
2025-04-29 17:54:25,392 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 17:54:25,451 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 17:54:25,453 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 17:54:26,128 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 17:54:26,188 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 17:54:26,189 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 17:54:26,253 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 17:54:26,297 - data.session - INFO - 正在初始化数据库...
2025-04-29 17:54:26,332 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 17:54:26,360 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 17:54:26,361 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:54:26,362 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 17:54:26,362 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:54:26,363 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 17:54:26,364 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:54:26,364 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 17:54:26,364 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 17:54:26,365 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:54:26,366 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 17:54:26,366 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:54:26,367 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 17:54:26,368 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:54:26,368 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 17:54:26,369 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:54:26,370 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 17:54:26,370 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:54:26,371 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 17:54:26,371 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:54:26,372 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 17:54:26,373 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:54:26,374 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 17:54:26,374 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:54:26,375 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 17:54:26,375 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:54:26,376 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 17:54:26,377 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:54:26,377 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 17:54:26,378 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 17:54:26,379 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 17:54:26,379 - data.session - INFO - 数据库表初始化完成
2025-04-29 17:54:26,717 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 17:54:26,717 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 17:54:26,718 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 17:54:26,718 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 17:54:26,719 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 17:54:26,719 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 17:54:26,719 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 17:54:26,720 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 17:54:26,720 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 17:54:26,720 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 17:54:26,721 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 17:54:26,721 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 17:54:26,721 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 17:54:26,723 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 17:54:26,723 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 17:54:26,723 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 17:54:26,724 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 17:54:26,724 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 17:54:26,724 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 17:54:26,724 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 17:54:26,747 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 17:54:26,749 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 17:54:26,749 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 17:54:26,750 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 17:54:26,750 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 17:54:26,751 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 17:54:26,751 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 17:54:26,751 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 17:54:26,761 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 17:54:26,762 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 17:54:26,763 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 17:54:26,763 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 17:54:26,773 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 17:54:26,774 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 17:54:26,774 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 17:54:26,775 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 17:54:26,777 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 17:54:26,797 - sqlalchemy.engine.Engine - INFO - [generated in 0.02073s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 17:54:26,799 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 17:54:26,810 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 17:54:26,811 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 17:54:26,813 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 17:54:26,813 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 17:54:26,814 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 17:54:26,815 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 17:54:26,816 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 17:54:26,816 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 16, 54, 26, 774193))
2025-04-29 17:54:26,818 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 17:55:26,743 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 17:55:26,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 17:55:26,747 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 17:55:26,748 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 17:55:26,750 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 17:55:26,752 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 17:55:26,754 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 17:55:26,754 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 17:55:26,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 17:55:26,756 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 17:55:26,759 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 17:55:26,759 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 17:55:26,760 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 17:55:26,760 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 17:55:26,761 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 17:55:26,763 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 17:55:26,765 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 17:55:26,766 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 17:55:26,770 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 17:55:26,772 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 17:55:26,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 17:55:26,774 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 17:55:26,774 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 17:55:26,777 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 17:55:26,781 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 17:55:26,782 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 17:55:26,782 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 17:55:26,782 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 17:55:26,782 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 17:55:26,789 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 17:55:26,835 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 17:55:26,836 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 17:55:26,836 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 16, 55, 26, 835393))
2025-04-29 17:55:26,837 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 17:56:26,818 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 17:56:26,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 17:56:26,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 17:56:26,819 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 17:56:26,819 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 17:56:26,819 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 17:56:26,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 17:56:26,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 17:56:26,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 17:56:26,821 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 17:56:26,821 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 17:56:26,821 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 16, 56, 26, 818963))
2025-04-29 17:56:26,821 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 17:56:26,822 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 17:56:26,822 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 17:56:26,822 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 17:56:26,822 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 17:56:26,822 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 17:56:26,822 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 17:56:26,823 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 17:56:26,823 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 17:56:26,823 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 17:56:26,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 17:56:26,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 17:56:26,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 17:56:26,824 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 17:56:26,824 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 17:56:26,824 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 17:56:26,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 17:56:26,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 17:56:26,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 17:56:26,825 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 17:56:26,825 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 17:56:26,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 17:57:18,889 - app - INFO - 应用程序关闭中...
2025-04-29 17:57:18,889 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 17:57:18,891 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 17:57:18,892 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 17:57:18,892 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 17:57:18,893 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 17:57:18,893 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 17:57:18,893 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 17:57:18,893 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 17:57:18,893 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 17:57:18,893 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 17:57:18,894 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 17:57:18,894 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 17:57:18,894 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 17:57:18,894 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 17:57:18,894 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 17:57:18,894 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 17:57:18,894 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 17:57:18,894 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 17:57:18,894 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 17:57:18,894 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 17:57:18,895 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 17:57:18,895 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 17:57:18,895 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 17:57:18,895 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 17:57:18,895 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 17:57:18,895 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 17:57:18,895 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 17:57:18,895 - app - INFO - 增强版任务调度器已停止
2025-04-29 17:57:18,896 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 17:57:18,896 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 17:57:18,896 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 17:57:18,897 - data.session - INFO - 数据库连接已关闭
2025-04-29 18:09:41,183 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 18:09:41,261 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 18:09:41,262 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 18:09:42,036 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 18:09:42,106 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 18:09:42,107 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 18:09:42,167 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 18:09:42,214 - data.session - INFO - 正在初始化数据库...
2025-04-29 18:09:42,253 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 18:09:42,280 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 18:09:42,280 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:09:42,280 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 18:09:42,281 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:09:42,283 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 18:09:42,283 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:09:42,283 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:09:42,283 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 18:09:42,283 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:09:42,285 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 18:09:42,285 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:09:42,286 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 18:09:42,287 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:09:42,287 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 18:09:42,288 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:09:42,289 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 18:09:42,289 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:09:42,290 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 18:09:42,290 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:09:42,291 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 18:09:42,291 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:09:42,291 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 18:09:42,294 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:09:42,295 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 18:09:42,296 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:09:42,297 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 18:09:42,298 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:09:42,299 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 18:09:42,299 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:09:42,300 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:09:42,300 - data.session - INFO - 数据库表初始化完成
2025-04-29 18:09:42,669 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 18:09:42,671 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 18:09:42,671 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 18:09:42,671 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 18:09:42,671 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 18:09:42,672 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 18:09:42,672 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 18:09:42,672 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 18:09:42,672 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 18:09:42,672 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 18:09:42,673 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:09:42,673 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 18:09:42,673 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 18:09:42,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:09:42,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:09:42,676 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:09:42,676 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:09:42,676 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:09:42,677 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 18:09:42,677 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 18:09:42,678 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 18:09:42,679 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 18:09:42,679 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 18:09:42,680 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 18:09:42,681 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 18:09:42,681 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 18:09:42,682 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 18:09:42,682 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:09:42,691 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 18:09:42,692 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 18:09:42,693 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 18:09:42,693 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:09:42,694 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 18:09:42,694 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 18:09:42,694 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 18:09:42,696 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:09:42,698 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 18:09:42,698 - sqlalchemy.engine.Engine - INFO - [generated in 0.00071s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 18:09:42,710 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:09:42,711 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 18:09:42,711 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 18:09:42,712 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 18:09:42,712 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 18:09:42,712 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 18:09:42,713 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:09:42,714 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:09:42,714 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 9, 42, 695334))
2025-04-29 18:09:42,715 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:10:42,710 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:10:42,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:10:42,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:10:42,715 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:10:42,717 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:10:42,719 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:10:42,723 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:10:42,724 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:10:42,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:10:42,725 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:10:42,729 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:10:42,732 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 10, 42, 711017))
2025-04-29 18:10:42,733 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:10:42,735 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:10:42,735 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:10:42,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:10:42,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:10:42,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:10:42,741 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:10:42,742 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:10:42,742 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:10:42,742 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:10:42,742 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:10:42,742 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:10:42,742 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:10:42,743 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:10:42,743 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:10:42,744 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:10:42,747 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:10:42,747 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:10:42,748 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:10:42,749 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:10:42,750 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:10:42,757 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:11:42,780 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:11:42,780 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:11:42,781 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:11:42,782 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:11:42,785 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:11:42,787 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:11:42,788 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:11:42,790 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:11:42,791 - sqlalchemy.engine.Engine - INFO - [cached since 120.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 11, 42, 779835))
2025-04-29 18:11:42,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:11:42,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:11:42,793 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:11:42,793 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:11:42,795 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:11:42,796 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:11:42,796 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:11:42,796 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:11:42,796 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:11:42,800 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:11:42,801 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:11:42,802 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:11:42,802 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:11:42,804 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:11:42,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:11:42,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:11:42,809 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:11:42,811 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:11:42,812 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:11:42,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:11:42,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:11:42,814 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:11:42,814 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:11:42,814 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:11:42,819 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:12:42,832 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:12:42,837 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:12:42,841 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 12, 42, 831539))
2025-04-29 18:12:42,844 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:12:42,847 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:12:42,851 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:12:42,852 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:12:42,853 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:12:42,855 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:12:42,856 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:12:42,857 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:12:42,858 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:12:42,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:12:42,861 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:12:42,862 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:12:42,862 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:12:42,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:12:42,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:12:42,863 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:12:42,863 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:12:42,863 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:12:42,863 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:12:42,864 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:12:42,864 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:12:42,864 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:12:42,864 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:12:42,864 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:12:42,864 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:12:42,865 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:12:42,865 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:12:42,865 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:12:42,865 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:12:42,865 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:12:42,870 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:13:42,864 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:13:42,864 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:13:42,865 - sqlalchemy.engine.Engine - INFO - [cached since 240.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 13, 42, 863672))
2025-04-29 18:13:42,866 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:13:42,910 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:13:42,910 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:13:42,910 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:13:42,912 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:13:42,912 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:13:42,912 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:13:42,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:13:42,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:13:42,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:13:42,914 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:13:42,914 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:13:42,914 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:13:42,914 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:13:42,914 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:13:42,914 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:13:42,915 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:13:42,915 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:13:42,915 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:13:42,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:13:42,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:13:42,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:13:42,915 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:13:42,915 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:13:42,915 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:13:42,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:13:42,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:13:42,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:13:42,916 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:13:42,916 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:13:42,921 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:14:42,872 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:14:42,873 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:14:42,875 - sqlalchemy.engine.Engine - INFO - [cached since 300.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 14, 42, 872420))
2025-04-29 18:14:42,875 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:14:42,921 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:14:42,921 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:14:42,921 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:14:42,921 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:14:42,921 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:14:42,927 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:14:42,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:14:42,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:14:42,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:14:42,927 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:14:42,927 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:14:42,927 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:14:42,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:14:42,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:14:42,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:14:42,936 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:14:42,936 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:14:42,936 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:14:42,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:14:42,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:14:42,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:14:42,936 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:14:42,936 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:14:42,936 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:14:42,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:14:42,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:14:42,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:14:42,936 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:14:42,936 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:14:42,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:15:42,874 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:15:42,874 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:15:42,874 - sqlalchemy.engine.Engine - INFO - [cached since 360.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 15, 42, 874462))
2025-04-29 18:15:42,883 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:15:42,954 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:15:42,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:15:42,955 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:15:42,955 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:15:42,956 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:15:42,957 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:15:42,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:15:42,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:15:42,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:15:42,957 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:15:42,957 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:15:42,957 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:15:42,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:15:42,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:15:42,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:15:42,957 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:15:42,957 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:15:42,957 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:15:42,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:15:42,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:15:42,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:15:42,957 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:15:42,957 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:15:42,957 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:15:42,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:15:42,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:15:42,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:15:42,957 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:15:42,957 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:15:42,969 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:16:42,891 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:16:42,894 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:16:42,895 - sqlalchemy.engine.Engine - INFO - [cached since 420.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 16, 42, 890998))
2025-04-29 18:16:42,900 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:16:42,991 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:16:43,007 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:16:43,008 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:16:43,008 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:16:43,008 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:16:43,016 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:16:43,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:16:43,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:16:43,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:16:43,024 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:16:43,030 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:16:43,030 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:16:43,030 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:16:43,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:16:43,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:16:43,034 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:16:43,034 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:16:43,034 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:16:43,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:16:43,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:16:43,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:16:43,034 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:16:43,034 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:16:43,034 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:16:43,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:16:43,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:16:43,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:16:43,034 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:16:43,040 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:16:43,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:17:42,900 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:17:42,901 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:17:42,901 - sqlalchemy.engine.Engine - INFO - [cached since 480.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 17, 42, 900380))
2025-04-29 18:17:42,902 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:17:43,063 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:17:43,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:17:43,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:17:43,066 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:17:43,074 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:17:43,078 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:17:43,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:17:43,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:17:43,081 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:17:43,082 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:17:43,082 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:17:43,083 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:17:43,097 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:17:43,097 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:17:43,100 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:17:43,101 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:17:43,102 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:17:43,112 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:17:43,113 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:17:43,113 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:17:43,114 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:17:43,114 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:17:43,114 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:17:43,115 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:17:43,118 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:17:43,119 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:17:43,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:17:43,123 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:17:43,125 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:17:43,134 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:18:42,912 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:18:42,914 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:18:42,914 - sqlalchemy.engine.Engine - INFO - [cached since 540.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 18, 42, 912833))
2025-04-29 18:18:42,928 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:18:43,163 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:18:43,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:18:43,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:18:43,163 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:18:43,163 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:18:43,163 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:18:43,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:18:43,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:18:43,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:18:43,163 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:18:43,163 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:18:43,163 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:18:43,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:18:43,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:18:43,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:18:43,163 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:18:43,163 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:18:43,163 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:18:43,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:18:43,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:18:43,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:18:43,163 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:18:43,163 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:18:43,163 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:18:43,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:18:43,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:18:43,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:18:43,163 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:18:43,163 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:18:43,181 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:19:42,927 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:19:42,928 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:19:42,928 - sqlalchemy.engine.Engine - INFO - [cached since 600.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 19, 42, 927671))
2025-04-29 18:19:42,928 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:19:43,203 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:19:43,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:19:43,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:19:43,203 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:19:43,203 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:19:43,203 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:19:43,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:19:43,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:19:43,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:19:43,203 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:19:43,203 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:19:43,203 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:19:43,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:19:43,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:19:43,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:19:43,203 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:19:43,203 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:19:43,203 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:19:43,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:19:43,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:19:43,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:19:43,203 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:19:43,203 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:19:43,203 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:19:43,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:19:43,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:19:43,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:19:43,203 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:19:43,203 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:19:43,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:20:42,928 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:20:42,928 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:20:42,928 - sqlalchemy.engine.Engine - INFO - [cached since 660.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 20, 42, 928290))
2025-04-29 18:20:42,928 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:20:43,205 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:20:43,205 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:20:43,205 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:20:43,205 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:20:43,205 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:20:43,205 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:20:43,205 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:20:43,205 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:20:43,205 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:20:43,205 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:20:43,205 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:20:43,221 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:20:43,221 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:20:43,221 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:20:43,221 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:20:43,221 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:20:43,221 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:20:43,221 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:20:43,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:20:43,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:20:43,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:20:43,236 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:20:43,236 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:20:43,236 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:20:43,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:20:43,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:20:43,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:20:43,236 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:20:43,252 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:20:43,265 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:21:42,924 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:21:42,925 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:21:42,925 - sqlalchemy.engine.Engine - INFO - [cached since 720.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 21, 42, 924725))
2025-04-29 18:21:42,926 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:21:43,267 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:21:43,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:21:43,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:21:43,268 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:21:43,269 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:21:43,269 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:21:43,269 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:21:43,269 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:21:43,269 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:21:43,269 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:21:43,270 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:21:43,270 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:21:43,270 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:21:43,270 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:21:43,270 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:21:43,270 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:21:43,270 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:21:43,270 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:21:43,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:21:43,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:21:43,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:21:43,271 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:21:43,271 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:21:43,271 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:21:43,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:21:43,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:21:43,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:21:43,272 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:21:43,272 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:21:43,277 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:22:42,953 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:22:42,953 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:22:42,953 - sqlalchemy.engine.Engine - INFO - [cached since 780.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 22, 42, 953085))
2025-04-29 18:22:42,953 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:22:43,288 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:22:43,288 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:22:43,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:22:43,290 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:22:43,290 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:22:43,290 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:22:43,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:22:43,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:22:43,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:22:43,290 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:22:43,290 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:22:43,290 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:22:43,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:22:43,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:22:43,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:22:43,290 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:22:43,290 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:22:43,290 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:22:43,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:22:43,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:22:43,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:22:43,290 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:22:43,292 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:22:43,292 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:22:43,292 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:22:43,292 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:22:43,292 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:22:43,292 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:22:43,292 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:22:43,300 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:23:42,961 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:23:42,962 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:23:42,962 - sqlalchemy.engine.Engine - INFO - [cached since 840.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 23, 42, 961584))
2025-04-29 18:23:42,963 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:23:43,307 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:23:43,308 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:23:43,308 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:23:43,309 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:23:43,309 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:23:43,309 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:23:43,310 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:23:43,310 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:23:43,310 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:23:43,310 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:23:43,310 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:23:43,310 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:23:43,310 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:23:43,310 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:23:43,310 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:23:43,310 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:23:43,310 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:23:43,311 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:23:43,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:23:43,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:23:43,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:23:43,311 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:23:43,311 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:23:43,311 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:23:43,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:23:43,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:23:43,311 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:23:43,311 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:23:43,311 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:23:43,316 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:24:42,979 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:24:42,979 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:24:42,980 - sqlalchemy.engine.Engine - INFO - [cached since 900.3s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 24, 42, 978333))
2025-04-29 18:24:42,981 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:24:43,369 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:24:43,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:24:43,372 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:24:43,374 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:24:43,384 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:24:43,385 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:24:43,386 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:24:43,388 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:24:43,388 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:24:43,388 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:24:43,389 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:24:43,390 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:24:43,391 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:24:43,391 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:24:43,391 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:24:43,392 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:24:43,393 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:24:43,394 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:24:43,395 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:24:43,396 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:24:43,397 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:24:43,398 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:24:43,400 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:24:43,401 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:24:43,401 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:24:43,401 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:24:43,402 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:24:43,402 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:24:43,402 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:24:43,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:25:42,991 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:25:42,997 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:25:42,998 - sqlalchemy.engine.Engine - INFO - [cached since 960.3s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 25, 42, 991442))
2025-04-29 18:25:43,029 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:25:43,433 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:25:43,435 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:25:43,438 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:25:43,438 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:25:43,440 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:25:43,441 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:25:43,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:25:43,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:25:43,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:25:43,442 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:25:43,443 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:25:43,443 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:25:43,443 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:25:43,443 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:25:43,443 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:25:43,443 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:25:43,443 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:25:43,444 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:25:43,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:25:43,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:25:43,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:25:43,444 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:25:43,444 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:25:43,444 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:25:43,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:25:43,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:25:43,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:25:43,444 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:25:43,444 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:25:43,449 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:26:43,047 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:26:43,049 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:26:43,049 - sqlalchemy.engine.Engine - INFO - [cached since 1020s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 26, 43, 46400))
2025-04-29 18:26:43,049 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:26:43,252 - app - INFO - 应用程序关闭中...
2025-04-29 18:26:43,258 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 18:26:43,258 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 18:26:43,258 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 18:26:43,258 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 18:26:43,258 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 18:26:43,258 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 18:26:43,258 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 18:26:43,258 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 18:26:43,258 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 18:26:43,258 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 18:26:43,258 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:26:43,258 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:26:43,258 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:26:43,258 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:26:43,258 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:26:43,258 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 18:26:43,258 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:26:43,258 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:26:43,258 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-29 18:26:43,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:26:43,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:26:43,268 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-29 18:26:43,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:26:43,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:26:43,268 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-29 18:26:43,268 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 18:26:43,268 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 18:26:43,268 - app - INFO - 增强版任务调度器已停止
2025-04-29 18:26:43,268 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 18:26:43,269 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 18:26:43,269 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 18:26:43,269 - data.session - INFO - 数据库连接已关闭
2025-04-29 18:26:44,561 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 18:26:44,630 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 18:26:44,630 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 18:26:44,692 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 18:26:44,736 - data.session - INFO - 正在初始化数据库...
2025-04-29 18:26:44,752 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 18:26:44,767 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 18:26:44,767 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:26:44,767 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 18:26:44,767 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:26:44,767 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 18:26:44,767 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:26:44,767 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:26:44,767 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 18:26:44,767 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:26:44,767 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 18:26:44,767 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:26:44,767 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 18:26:44,767 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:26:44,767 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 18:26:44,767 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:26:44,767 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 18:26:44,767 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:26:44,767 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 18:26:44,767 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:26:44,767 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 18:26:44,767 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:26:44,767 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 18:26:44,767 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:26:44,782 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 18:26:44,783 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:26:44,783 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 18:26:44,783 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:26:44,783 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 18:26:44,783 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:26:44,783 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:26:44,783 - data.session - INFO - 数据库表初始化完成
2025-04-29 18:26:45,129 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 18:26:45,129 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 18:26:45,129 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 18:26:45,129 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 18:26:45,129 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 18:26:45,129 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 18:26:45,129 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 18:26:45,129 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 18:26:45,129 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 18:26:45,129 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 18:26:45,129 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:26:45,129 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 18:26:45,141 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 18:26:45,141 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:26:45,141 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:26:45,141 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:26:45,141 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:26:45,141 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:26:45,141 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 18:26:45,141 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 18:26:45,141 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 18:26:45,141 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 18:26:45,141 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 18:26:45,141 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 18:26:45,141 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 18:26:45,156 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 18:26:45,156 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 18:26:45,156 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:26:45,172 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 18:26:45,172 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 18:26:45,172 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 18:26:45,172 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:26:45,172 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 18:26:45,172 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 18:26:45,172 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 18:26:45,172 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:26:45,172 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 18:26:45,172 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 18:26:45,172 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:26:45,172 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 18:26:45,172 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 18:26:45,172 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 18:26:45,172 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 18:26:45,172 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 18:26:45,172 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:26:45,188 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:26:45,188 - sqlalchemy.engine.Engine - INFO - [generated in 0.00125s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 26, 45, 172942))
2025-04-29 18:26:45,188 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:27:45,153 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:27:45,154 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:27:45,156 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:27:45,157 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:27:45,157 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:27:45,157 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:27:45,158 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:27:45,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:27:45,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:27:45,159 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:27:45,159 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:27:45,159 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:27:45,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:27:45,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:27:45,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:27:45,160 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:27:45,160 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:27:45,160 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:27:45,160 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:27:45,160 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:27:45,160 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:27:45,160 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:27:45,160 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:27:45,160 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:27:45,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:27:45,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:27:45,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:27:45,161 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:27:45,162 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:27:45,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:27:45,188 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:27:45,189 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:27:45,189 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 27, 45, 188021))
2025-04-29 18:27:45,191 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:28:45,203 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:28:45,203 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:28:45,203 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 28, 45, 201247))
2025-04-29 18:28:45,208 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:29:00,167 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:29:00,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:29:00,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:29:00,167 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:29:00,167 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:29:00,167 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:29:00,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:29:00,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:29:00,181 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:29:00,181 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:29:00,187 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:29:00,188 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:29:00,188 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:29:00,188 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:29:00,188 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:29:00,188 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:29:00,188 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:29:00,188 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:29:00,188 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:29:00,188 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:29:00,188 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:29:00,188 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:29:00,188 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:29:00,198 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:29:00,198 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:29:00,198 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:29:00,198 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:29:00,198 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:29:00,198 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:29:00,208 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:29:45,215 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:29:45,224 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:29:45,225 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 29, 45, 214773))
2025-04-29 18:29:45,232 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:30:00,228 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:30:00,231 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:30:00,232 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:30:00,234 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:30:00,234 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:30:00,236 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:30:00,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:30:00,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:30:00,238 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:30:00,238 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:30:00,239 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:30:00,239 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:30:00,240 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:30:00,240 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:30:00,241 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:30:00,241 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:30:00,241 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:30:00,242 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:30:00,244 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:30:00,245 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:30:00,245 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:30:00,245 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:30:00,246 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:30:00,246 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:30:00,246 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:30:00,246 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:30:00,247 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:30:00,247 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:30:00,247 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:30:00,253 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:30:38,047 - app - INFO - 请求开始: POST /api/vwed-task-edit/save 来自 127.0.0.1
2025-04-29 18:30:38,050 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:30:38,050 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 18:30:38,051 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 18:30:38,053 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:30:38,053 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:30:38,054 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 18:30:38,054 - sqlalchemy.engine.Engine - INFO - [cached since 0.003785s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 18:30:38,057 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET version=%s, detail=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 18:30:38,057 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] (7, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', datetime.datetime(2025, 4, 29, 18, 30, 38, 57088), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 18:30:38,058 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:30:38,065 - app - INFO - 请求完成: POST /api/vwed-task-edit/save 状态码: 200 耗时: 0.0183秒
2025-04-29 18:30:41,103 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 18:30:41,108 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:30:41,110 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 18:30:41,110 - sqlalchemy.engine.Engine - INFO - [cached since 3.059s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 18:30:41,112 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:30:41,113 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:30:41,114 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 18:30:41,118 - sqlalchemy.engine.Engine - INFO - [cached since 3.068s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 18:30:41,123 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:30:41,124 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 18:30:41,126 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 18:30:41,126 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 18:30:41,129 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:30:41,130 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 18:30:41,131 - sqlalchemy.engine.Engine - INFO - [generated in 0.00160s] (None, datetime.datetime(2025, 4, 29, 18, 30, 41, 130896), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 18:30:41,137 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:30:41,155 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:30:41,155 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 18:30:41,156 - sqlalchemy.engine.Engine - INFO - [cached since 3.105s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 18:30:41,158 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 18:30:41,159 - sqlalchemy.engine.Engine - INFO - [generated in 0.00144s] ('6f3c0d86-c645-4302-939a-274ac81353dd', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 18, 30, 41, 124903), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 18, 30, 41, 158902), datetime.datetime(2025, 4, 29, 18, 30, 41, 158902), 0)
2025-04-29 18:30:41,161 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:30:41,167 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:30:41,170 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 18:30:41,171 - sqlalchemy.engine.Engine - INFO - [generated in 0.00066s] ('6f3c0d86-c645-4302-939a-274ac81353dd',)
2025-04-29 18:30:41,176 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:30:41,177 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 6f3c0d86-c645-4302-939a-274ac81353dd (优先级 1) 添加到队列 0
2025-04-29 18:30:41,181 - services.sync_service - INFO - 正在同步创建任务到天风系统: 6f3c0d86-c645-4302-939a-274ac81353dd
2025-04-29 18:30:41,189 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"6f3c0d86-c645-4302-939a-274ac81353dd","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 18:30:41","sceneId":"1912043207186550785","needAmr":1}
2025-04-29 18:30:41,268 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 6f3c0d86-c645-4302-939a-274ac81353dd, 优先级: 1
2025-04-29 18:30:41,269 - services.execution.task_executor - DEBUG - 任务 6f3c0d86-c645-4302-939a-274ac81353dd 设置超时时间: 3600秒
2025-04-29 18:30:41,270 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:30:41,273 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 18:30:41,274 - sqlalchemy.engine.Engine - INFO - [cached since 0.1039s ago] ('6f3c0d86-c645-4302-939a-274ac81353dd',)
2025-04-29 18:30:41,278 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 18:30:41,279 - sqlalchemy.engine.Engine - INFO - [cached since 3.228s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 18:30:41,283 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 18:30:41,284 - sqlalchemy.engine.Engine - INFO - [generated in 0.00076s] (datetime.datetime(2025, 4, 29, 18, 30, 41, 283894), datetime.datetime(2025, 4, 29, 18, 30, 41, 283894), '6f3c0d86-c645-4302-939a-274ac81353dd')
2025-04-29 18:30:41,287 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:30:41,298 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:30:41,300 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 18:30:41,300 - sqlalchemy.engine.Engine - INFO - [generated in 0.00071s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 18, 30, 41, 300860), '6f3c0d86-c645-4302-939a-274ac81353dd')
2025-04-29 18:30:41,301 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:30:41,312 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 18:30:41,313 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:30:41,344 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 18:30:41,346 - sqlalchemy.engine.Engine - INFO - [generated in 0.00162s] ('99b20f70-54f8-4c24-a058-d96652757e4c', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6f3c0d86-c645-4302-939a-274ac81353dd', datetime.datetime(2025, 4, 29, 18, 30, 41, 312866), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 18, 30, 41, 344962), datetime.datetime(2025, 4, 29, 18, 30, 41, 344962), 0)
2025-04-29 18:30:41,348 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:30:41,355 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:30:41,357 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 18:30:41,358 - sqlalchemy.engine.Engine - INFO - [generated in 0.00089s] ('99b20f70-54f8-4c24-a058-d96652757e4c',)
2025-04-29 18:30:41,360 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 18:30:41,370 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 18:30:41,373 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 18:30:41,374 - sqlalchemy.engine.Engine - INFO - [generated in 0.00129s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 18, 30, 41, 373937), '99b20f70-54f8-4c24-a058-d96652757e4c')
2025-04-29 18:30:41,379 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:30:41,386 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 18:30:41,387 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 18:30:41,388 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-29 18:30:41,391 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:30:41,393 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 18:30:41,396 - sqlalchemy.engine.Engine - INFO - [cached since 0.05263s ago] ('a5af3a7d-24d6-4d83-ad94-f701a4d81911', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6f3c0d86-c645-4302-939a-274ac81353dd', datetime.datetime(2025, 4, 29, 18, 30, 41, 389870), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 29, 18, 30, 41, 393957), datetime.datetime(2025, 4, 29, 18, 30, 41, 393957), 0)
2025-04-29 18:30:41,399 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:30:41,407 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: a5af3a7d-24d6-4d83-ad94-f701a4d81911
2025-04-29 18:30:41,408 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:30:41,410 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 18:30:41,411 - sqlalchemy.engine.Engine - INFO - [cached since 0.05437s ago] ('a5af3a7d-24d6-4d83-ad94-f701a4d81911',)
2025-04-29 18:30:41,413 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 18:30:41,415 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 18:30:41,416 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 18:30:41,417 - sqlalchemy.engine.Engine - INFO - [cached since 0.04364s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 29, 18, 30, 41, 416945), 'a5af3a7d-24d6-4d83-ad94-f701a4d81911')
2025-04-29 18:30:41,419 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:30:41,429 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-29 18:30:41,431 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:30:41,435 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 18:30:41,436 - sqlalchemy.engine.Engine - INFO - [generated in 0.00147s] ('c8f255a0-0c34-4d9f-a237-cc7c6ef85162', 3, '{"success": false, "message": "选择执行机器人异常: 1 validation error for ChooseAmrRequest\\npriority\\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6f3c0d86-c645-4302-939a-274ac81353dd', datetime.datetime(2025, 4, 29, 18, 30, 41, 435763), datetime.datetime(2025, 4, 29, 18, 30, 41, 435763), 0)
2025-04-29 18:30:41,438 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:30:41,457 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人异常: 1 validation error for ChooseAmrRequest
priority
  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.10/v/int_type
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 759, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 18:30:41,462 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:30:41,463 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 18:30:41,465 - sqlalchemy.engine.Engine - INFO - [cached since 0.1082s ago] ('a5af3a7d-24d6-4d83-ad94-f701a4d81911',)
2025-04-29 18:30:41,467 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 18:30:41,467 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 18:30:41,470 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 18:30:41,487 - sqlalchemy.engine.Engine - INFO - [generated in 0.01590s] (datetime.datetime(2025, 4, 29, 18, 30, 41, 470755), '选择执行机器人异常: 1 validation error for ChooseAmrRequest\npriority\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人异常: 1 validation error for ChooseAmrRequest\npriority\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type', datetime.datetime(2025, 4, 29, 18, 30, 41, 470755), 'a5af3a7d-24d6-4d83-ad94-f701a4d81911')
2025-04-29 18:30:41,489 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:30:41,492 - services.sync_service - WARNING - 同步任务到系统任务失败: Token失效，请重新登录!
2025-04-29 18:30:41,494 - services.enhanced_scheduler.task_scheduler - WARNING - 同步任务到主任务系统失败: 6f3c0d86-c645-4302-939a-274ac81353dd
2025-04-29 18:30:41,496 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 6f3c0d86-c645-4302-939a-274ac81353dd
2025-04-29 18:30:41,497 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.3943秒
2025-04-29 18:30:41,501 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:30:41,503 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 18:30:41,505 - sqlalchemy.engine.Engine - INFO - [cached since 0.06942s ago] ('5d5bef4c-6dea-4b3a-8fa5-aa424df8144d', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人异常: 1 validation error for ChooseAmrRequest\\npriority\\n  Input should be a valid integer [type=int ... (7 characters truncated) ... input_value=None, input_type=NoneType]\\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6f3c0d86-c645-4302-939a-274ac81353dd', datetime.datetime(2025, 4, 29, 18, 30, 41, 503689), datetime.datetime(2025, 4, 29, 18, 30, 41, 503689), 0)
2025-04-29 18:30:41,507 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:30:41,516 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:30:41,517 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 18:30:41,518 - sqlalchemy.engine.Engine - INFO - [cached since 0.1609s ago] ('99b20f70-54f8-4c24-a058-d96652757e4c',)
2025-04-29 18:30:41,523 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 18:30:41,524 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 18:30:41,526 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 18:30:41,526 - sqlalchemy.engine.Engine - INFO - [cached since 0.05507s ago] (datetime.datetime(2025, 4, 29, 18, 30, 41, 525176), '子块 1 执行失败: 选择执行机器人异常: 1 validation error for ChooseAmrRequest\npriority\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人异常: 1 validation error for ChooseAmrRequest\npriority\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type', datetime.datetime(2025, 4, 29, 18, 30, 41, 526176), '99b20f70-54f8-4c24-a058-d96652757e4c')
2025-04-29 18:30:41,529 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:30:41,543 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:30:41,547 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 18:30:41,548 - sqlalchemy.engine.Engine - INFO - [generated in 0.00145s] (datetime.datetime(2025, 4, 29, 18, 30, 41, 542181), '子块 1 执行失败: 选择执行机器人异常: 1 validation error for ChooseAmrRequest\npriority\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type', <TaskStatus.FAILED: 2000>, 243, 1, datetime.datetime(2025, 4, 29, 18, 30, 41, 547575), '6f3c0d86-c645-4302-939a-274ac81353dd')
2025-04-29 18:30:41,551 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:30:41,559 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: 6f3c0d86-c645-4302-939a-274ac81353dd, 结果: False
2025-04-29 18:30:45,221 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:30:45,222 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:30:45,225 - sqlalchemy.engine.Engine - INFO - [cached since 240s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 30, 45, 221119))
2025-04-29 18:30:45,228 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:31:00,290 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:31:00,291 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:31:00,292 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:31:00,292 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:31:00,294 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:31:00,296 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:31:00,299 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:31:00,300 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:31:00,300 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:31:00,300 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:31:00,301 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:31:00,301 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:31:00,306 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:31:00,306 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:31:00,306 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:31:00,307 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:31:00,308 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:31:00,308 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:31:00,309 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:31:00,310 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:31:00,312 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:31:00,314 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:31:00,315 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:31:00,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:31:45,240 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:31:45,240 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:31:45,240 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 31, 45, 240129))
2025-04-29 18:31:45,241 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:31:45,365 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:31:45,365 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:31:45,366 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:31:45,366 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:31:45,366 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:31:45,366 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:31:57,442 - app - INFO - 应用程序关闭中...
2025-04-29 18:31:57,442 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-29 18:31:57,443 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-29 18:31:57,443 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-29 18:31:57,443 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-29 18:31:57,443 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-29 18:31:57,443 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-29 18:31:57,445 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-29 18:31:57,445 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-29 18:31:57,445 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-29 18:31:57,446 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-29 18:31:57,446 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:31:57,446 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:31:57,446 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:31:57,447 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:31:57,447 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:31:57,447 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-29 18:31:57,447 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:31:57,447 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:31:57,447 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-29 18:31:57,447 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:31:57,447 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:31:57,447 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-29 18:31:57,447 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:31:57,448 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:31:57,448 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 0
2025-04-29 18:31:57,448 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-29 18:31:57,448 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-29 18:31:57,448 - app - INFO - 增强版任务调度器已停止
2025-04-29 18:31:57,448 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-29 18:31:57,449 - data.session - INFO - 异步数据库连接已关闭
2025-04-29 18:31:57,449 - data.session - INFO - 正在关闭数据库连接...
2025-04-29 18:31:57,449 - data.session - INFO - 数据库连接已关闭
2025-04-29 18:31:58,708 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-29 18:31:58,774 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 18:31:58,776 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-29 18:31:58,834 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-29 18:31:58,888 - data.session - INFO - 正在初始化数据库...
2025-04-29 18:31:58,920 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-29 18:31:58,941 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 18:31:58,942 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:31:58,943 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 18:31:58,944 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:31:58,945 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 18:31:58,945 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:31:58,946 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:31:58,946 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-29 18:31:58,947 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:31:58,949 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-29 18:31:58,950 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:31:58,952 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-29 18:31:58,952 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:31:58,954 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-29 18:31:58,954 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:31:58,955 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-29 18:31:58,956 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:31:58,957 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-29 18:31:58,958 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:31:58,959 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-29 18:31:58,959 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:31:58,961 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-29 18:31:58,962 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:31:58,964 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-29 18:31:58,964 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:31:58,966 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-29 18:31:58,966 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:31:58,968 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-29 18:31:58,968 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-29 18:31:58,971 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:31:58,971 - data.session - INFO - 数据库表初始化完成
2025-04-29 18:31:59,340 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-29 18:31:59,340 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-29 18:31:59,341 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-29 18:31:59,341 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-29 18:31:59,341 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-29 18:31:59,341 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-29 18:31:59,341 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-29 18:31:59,341 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-29 18:31:59,342 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-29 18:31:59,342 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-29 18:31:59,342 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:31:59,342 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-29 18:31:59,342 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-29 18:31:59,345 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:31:59,345 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:31:59,345 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:31:59,345 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:31:59,347 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:31:59,348 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-29 18:31:59,348 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-29 18:31:59,350 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 18:31:59,350 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-29 18:31:59,350 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 18:31:59,351 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-29 18:31:59,351 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 18:31:59,351 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-29 18:31:59,352 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-29 18:31:59,352 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:31:59,368 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-29 18:31:59,368 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-29 18:31:59,368 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-29 18:31:59,368 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:31:59,369 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-29 18:31:59,369 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-29 18:31:59,371 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-29 18:31:59,371 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:31:59,373 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-29 18:31:59,373 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-29 18:31:59,393 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:31:59,396 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-29 18:31:59,396 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-29 18:31:59,396 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-29 18:31:59,397 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-29 18:31:59,397 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-29 18:31:59,399 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:31:59,400 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:31:59,400 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 31, 59, 371001))
2025-04-29 18:31:59,400 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:32:02,987 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-29 18:32:02,989 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:32:02,990 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 18:32:02,991 - sqlalchemy.engine.Engine - INFO - [generated in 0.00078s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 18:32:02,992 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:32:02,993 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:32:03,001 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 18:32:03,003 - sqlalchemy.engine.Engine - INFO - [cached since 0.01283s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 18:32:03,004 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:32:03,005 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-29 18:32:03,005 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-29 18:32:03,005 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-29 18:32:03,006 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:32:03,007 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-29 18:32:03,011 - sqlalchemy.engine.Engine - INFO - [generated in 0.00377s] (None, datetime.datetime(2025, 4, 29, 18, 32, 3, 7961), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-29 18:32:03,012 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:32:03,020 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:32:03,022 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 18:32:03,022 - sqlalchemy.engine.Engine - INFO - [cached since 0.0322s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 18:32:03,024 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 18:32:03,025 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] ('3ed7cd67-6a5b-4dcb-b615-4d214b813528', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 29, 18, 32, 3, 5942), '{"user_agent": "PostmanRuntime/7.43.3", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.3", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 29, 18, 32, 3, 24997), datetime.datetime(2025, 4, 29, 18, 32, 3, 24997), 0)
2025-04-29 18:32:03,026 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:32:03,033 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:32:03,035 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 18:32:03,040 - sqlalchemy.engine.Engine - INFO - [generated in 0.00451s] ('3ed7cd67-6a5b-4dcb-b615-4d214b813528',)
2025-04-29 18:32:03,049 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:32:03,050 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 3ed7cd67-6a5b-4dcb-b615-4d214b813528 (优先级 1) 添加到队列 0
2025-04-29 18:32:03,053 - services.sync_service - INFO - 正在同步创建任务到天风系统: 3ed7cd67-6a5b-4dcb-b615-4d214b813528
2025-04-29 18:32:03,053 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"3ed7cd67-6a5b-4dcb-b615-4d214b813528","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-29 18:32:03","sceneId":"1912043207186550785","needAmr":1}
2025-04-29 18:32:03,074 - services.sync_service - WARNING - 同步任务到系统任务失败: Token失效，请重新登录!
2025-04-29 18:32:03,074 - services.enhanced_scheduler.task_scheduler - WARNING - 同步任务到主任务系统失败: 3ed7cd67-6a5b-4dcb-b615-4d214b813528
2025-04-29 18:32:03,075 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 3ed7cd67-6a5b-4dcb-b615-4d214b813528
2025-04-29 18:32:03,075 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0884秒
2025-04-29 18:32:03,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 3ed7cd67-6a5b-4dcb-b615-4d214b813528, 优先级: 1
2025-04-29 18:32:03,173 - services.execution.task_executor - DEBUG - 任务 3ed7cd67-6a5b-4dcb-b615-4d214b813528 设置超时时间: 3600秒
2025-04-29 18:32:03,173 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:32:03,174 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-29 18:32:03,175 - sqlalchemy.engine.Engine - INFO - [cached since 0.1395s ago] ('3ed7cd67-6a5b-4dcb-b615-4d214b813528',)
2025-04-29 18:32:03,176 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-29 18:32:03,189 - sqlalchemy.engine.Engine - INFO - [cached since 0.1986s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-29 18:32:03,192 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 18:32:03,193 - sqlalchemy.engine.Engine - INFO - [generated in 0.00107s] (datetime.datetime(2025, 4, 29, 18, 32, 3, 191634), datetime.datetime(2025, 4, 29, 18, 32, 3, 192635), '3ed7cd67-6a5b-4dcb-b615-4d214b813528')
2025-04-29 18:32:03,194 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:32:03,203 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:32:03,204 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 18:32:03,204 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 18, 32, 3, 204843), '3ed7cd67-6a5b-4dcb-b615-4d214b813528')
2025-04-29 18:32:03,205 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:32:03,217 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-29 18:32:03,219 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:32:03,220 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 18:32:03,220 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] ('78afa43b-8a52-4222-bc1f-39daf819da8d', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '3ed7cd67-6a5b-4dcb-b615-4d214b813528', datetime.datetime(2025, 4, 29, 18, 32, 3, 218867), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 29, 18, 32, 3, 220844), datetime.datetime(2025, 4, 29, 18, 32, 3, 220844), 0)
2025-04-29 18:32:03,221 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:32:03,229 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:32:03,231 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 18:32:03,231 - sqlalchemy.engine.Engine - INFO - [generated in 0.00067s] ('78afa43b-8a52-4222-bc1f-39daf819da8d',)
2025-04-29 18:32:03,233 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 18:32:03,233 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 18:32:03,234 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 18:32:03,235 - sqlalchemy.engine.Engine - INFO - [generated in 0.00060s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 29, 18, 32, 3, 234844), '78afa43b-8a52-4222-bc1f-39daf819da8d')
2025-04-29 18:32:03,236 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:32:03,243 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-29 18:32:03,244 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-29 18:32:03,244 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-29 18:32:03,245 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:32:03,245 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 18:32:03,246 - sqlalchemy.engine.Engine - INFO - [cached since 0.02611s ago] ('4aa51b1b-0482-4390-b3b7-95dd2c7e8b72', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '3ed7cd67-6a5b-4dcb-b615-4d214b813528', datetime.datetime(2025, 4, 29, 18, 32, 3, 244845), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 29, 18, 32, 3, 245843), datetime.datetime(2025, 4, 29, 18, 32, 3, 245843), 0)
2025-04-29 18:32:03,247 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:32:03,254 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 4aa51b1b-0482-4390-b3b7-95dd2c7e8b72
2025-04-29 18:32:03,254 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:32:03,255 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 18:32:03,256 - sqlalchemy.engine.Engine - INFO - [cached since 0.02469s ago] ('4aa51b1b-0482-4390-b3b7-95dd2c7e8b72',)
2025-04-29 18:32:03,257 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 18:32:03,257 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 18:32:03,257 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 18:32:03,258 - sqlalchemy.engine.Engine - INFO - [cached since 0.0232s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 29, 18, 32, 3, 257593), '4aa51b1b-0482-4390-b3b7-95dd2c7e8b72')
2025-04-29 18:32:03,259 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:32:03,265 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-29 18:32:03,266 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:32:03,271 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 18:32:03,274 - sqlalchemy.engine.Engine - INFO - [generated in 0.00361s] ('027a079b-f227-44d7-9ad3-f35fe4dd8018', 3, '{"success": false, "message": "选择执行机器人异常: 1 validation error for ChooseAmrRequest\\npriority\\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '3ed7cd67-6a5b-4dcb-b615-4d214b813528', datetime.datetime(2025, 4, 29, 18, 32, 3, 271594), datetime.datetime(2025, 4, 29, 18, 32, 3, 271594), 0)
2025-04-29 18:32:03,278 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:32:03,286 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人异常: 1 validation error for ChooseAmrRequest
priority
  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.10/v/int_type
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 759, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-29 18:32:03,287 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:32:03,288 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 18:32:03,288 - sqlalchemy.engine.Engine - INFO - [cached since 0.05723s ago] ('4aa51b1b-0482-4390-b3b7-95dd2c7e8b72',)
2025-04-29 18:32:03,289 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-29 18:32:03,289 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-29 18:32:03,290 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 18:32:03,293 - sqlalchemy.engine.Engine - INFO - [generated in 0.00298s] (datetime.datetime(2025, 4, 29, 18, 32, 3, 290594), '选择执行机器人异常: 1 validation error for ChooseAmrRequest\npriority\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人异常: 1 validation error for ChooseAmrRequest\npriority\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type', datetime.datetime(2025, 4, 29, 18, 32, 3, 290594), '4aa51b1b-0482-4390-b3b7-95dd2c7e8b72')
2025-04-29 18:32:03,295 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:32:03,304 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:32:03,306 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-29 18:32:03,311 - sqlalchemy.engine.Engine - INFO - [cached since 0.03992s ago] ('aadb7899-9a14-4070-85ac-0d771a81f5d7', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人异常: 1 validation error for ChooseAmrRequest\\npriority\\n  Input should be a valid integer [type=int ... (7 characters truncated) ... input_value=None, input_type=NoneType]\\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '3ed7cd67-6a5b-4dcb-b615-4d214b813528', datetime.datetime(2025, 4, 29, 18, 32, 3, 306510), datetime.datetime(2025, 4, 29, 18, 32, 3, 306510), 0)
2025-04-29 18:32:03,315 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:32:03,324 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:32:03,324 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-29 18:32:03,325 - sqlalchemy.engine.Engine - INFO - [cached since 0.09397s ago] ('78afa43b-8a52-4222-bc1f-39daf819da8d',)
2025-04-29 18:32:03,326 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-29 18:32:03,327 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-29 18:32:03,327 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-29 18:32:03,328 - sqlalchemy.engine.Engine - INFO - [cached since 0.03741s ago] (datetime.datetime(2025, 4, 29, 18, 32, 3, 327702), '子块 1 执行失败: 选择执行机器人异常: 1 validation error for ChooseAmrRequest\npriority\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人异常: 1 validation error for ChooseAmrRequest\npriority\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type', datetime.datetime(2025, 4, 29, 18, 32, 3, 327702), '78afa43b-8a52-4222-bc1f-39daf819da8d')
2025-04-29 18:32:03,329 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:32:03,334 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:32:03,335 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-29 18:32:03,335 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (datetime.datetime(2025, 4, 29, 18, 32, 3, 334607), '子块 1 执行失败: 选择执行机器人异常: 1 validation error for ChooseAmrRequest\npriority\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type', <TaskStatus.FAILED: 2000>, 130, 1, datetime.datetime(2025, 4, 29, 18, 32, 3, 335607), '3ed7cd67-6a5b-4dcb-b615-4d214b813528')
2025-04-29 18:32:03,337 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:32:03,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 3ed7cd67-6a5b-4dcb-b615-4d214b813528, 结果: False
2025-04-29 18:32:59,365 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:32:59,366 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:32:59,366 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:32:59,366 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:32:59,366 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:32:59,366 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:32:59,367 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:32:59,368 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:32:59,368 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:32:59,369 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:32:59,369 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:32:59,369 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:32:59,369 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:32:59,369 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:32:59,369 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:32:59,370 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:32:59,370 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:32:59,370 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:32:59,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:32:59,373 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:32:59,375 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:32:59,375 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:32:59,376 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:32:59,382 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:32:59,411 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:32:59,413 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:32:59,414 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 32, 59, 411213))
2025-04-29 18:32:59,415 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:33:14,381 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:33:14,382 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:33:14,382 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:33:14,382 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:33:14,383 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:33:14,383 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:33:59,409 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:33:59,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:33:59,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:33:59,411 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:33:59,412 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:33:59,413 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:33:59,417 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:33:59,418 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:33:59,418 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:33:59,419 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:33:59,419 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:33:59,422 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 33, 59, 410859))
2025-04-29 18:33:59,425 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:33:59,425 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:33:59,426 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:33:59,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:33:59,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:33:59,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:33:59,430 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:33:59,431 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:33:59,431 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:33:59,434 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:33:59,435 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:33:59,436 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:33:59,436 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:33:59,436 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:33:59,438 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:33:59,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:34:14,455 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:34:14,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:34:14,458 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:34:14,470 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:34:14,471 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:34:14,473 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:34:59,456 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:34:59,457 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:34:59,459 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 34, 59, 455738))
2025-04-29 18:34:59,460 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:34:59,487 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:34:59,487 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:34:59,487 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:34:59,488 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:34:59,488 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:34:59,488 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:34:59,488 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:34:59,488 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:34:59,488 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:34:59,488 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:34:59,489 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:34:59,489 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:34:59,489 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:34:59,489 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:34:59,489 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:34:59,489 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:34:59,489 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:34:59,490 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:34:59,490 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:34:59,490 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:34:59,490 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:34:59,490 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:34:59,490 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:34:59,497 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:35:14,514 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:35:14,515 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:35:14,515 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:35:14,515 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:35:14,515 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:35:14,515 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:35:59,467 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:35:59,467 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:35:59,467 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 35, 59, 466917))
2025-04-29 18:35:59,468 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:35:59,545 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:35:59,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:35:59,547 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:35:59,547 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:35:59,547 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:35:59,547 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:35:59,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:35:59,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:35:59,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:35:59,549 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:35:59,549 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:35:59,550 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:35:59,550 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:35:59,550 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:35:59,550 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:35:59,550 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:35:59,550 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:35:59,550 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:35:59,550 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:35:59,551 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:35:59,551 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:35:59,551 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:35:59,551 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:35:59,557 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:36:14,579 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:36:14,580 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:36:14,580 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:36:14,580 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:36:14,580 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:36:14,581 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:36:59,471 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:36:59,472 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:36:59,472 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 36, 59, 471651))
2025-04-29 18:36:59,474 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:36:59,627 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:36:59,627 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:36:59,627 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:36:59,628 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:36:59,628 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:36:59,628 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:36:59,628 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:36:59,628 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:36:59,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:36:59,634 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:36:59,635 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:36:59,635 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:36:59,635 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:36:59,635 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:36:59,636 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:36:59,636 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:36:59,636 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:36:59,636 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:36:59,636 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:36:59,637 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:36:59,637 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:36:59,637 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:36:59,637 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:36:59,643 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:37:14,662 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:37:14,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:37:14,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:37:14,662 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:37:14,662 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:37:14,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:37:59,490 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:37:59,493 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:37:59,494 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 37, 59, 489243))
2025-04-29 18:37:59,496 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:37:59,690 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:37:59,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:37:59,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:37:59,692 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:37:59,692 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:37:59,695 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:37:59,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:37:59,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:37:59,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:37:59,695 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:37:59,695 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:37:59,695 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:37:59,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:37:59,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:37:59,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:37:59,701 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:37:59,701 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:37:59,701 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:37:59,701 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:37:59,702 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:37:59,702 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:37:59,702 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:37:59,702 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:37:59,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:38:14,720 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:38:14,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:38:14,723 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:38:14,724 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:38:14,724 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:38:14,724 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:38:59,509 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:38:59,511 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:38:59,512 - sqlalchemy.engine.Engine - INFO - [cached since 420.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 38, 59, 509198))
2025-04-29 18:38:59,514 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:38:59,742 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:38:59,742 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:38:59,742 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:38:59,742 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:38:59,742 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:38:59,743 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:38:59,743 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:38:59,743 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:38:59,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:38:59,744 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:38:59,744 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:38:59,744 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:38:59,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:38:59,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:38:59,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:38:59,745 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:38:59,745 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:38:59,745 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:38:59,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:38:59,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:38:59,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:38:59,746 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:38:59,746 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:38:59,751 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:39:14,762 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:39:14,762 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:39:14,762 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:39:14,763 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:39:14,763 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:39:14,763 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:39:59,505 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:39:59,506 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:39:59,507 - sqlalchemy.engine.Engine - INFO - [cached since 480.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 39, 59, 505345))
2025-04-29 18:39:59,508 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:39:59,782 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:39:59,784 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:39:59,784 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:39:59,785 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:39:59,785 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:39:59,785 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:39:59,785 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:39:59,786 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:39:59,786 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:39:59,786 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:39:59,786 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:39:59,786 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:39:59,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:39:59,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:39:59,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:39:59,788 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:39:59,788 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:39:59,788 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:39:59,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:39:59,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:39:59,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:39:59,789 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:39:59,789 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:39:59,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:40:14,774 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:40:14,775 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:40:14,775 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:40:14,775 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:40:14,775 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:40:14,775 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:40:59,524 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:40:59,524 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:40:59,524 - sqlalchemy.engine.Engine - INFO - [cached since 540.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 40, 59, 523201))
2025-04-29 18:40:59,526 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:40:59,803 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:40:59,806 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:40:59,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:40:59,807 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:40:59,807 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:40:59,808 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:40:59,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:40:59,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:40:59,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:40:59,810 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:40:59,810 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:40:59,811 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:40:59,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:40:59,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:40:59,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:40:59,814 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:40:59,814 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:40:59,814 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:40:59,815 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:40:59,815 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:40:59,816 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:40:59,816 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:40:59,816 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:40:59,825 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:41:14,837 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:41:14,838 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:41:14,839 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:41:14,840 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:41:14,840 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:41:14,841 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:41:59,536 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:41:59,537 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:41:59,537 - sqlalchemy.engine.Engine - INFO - [cached since 600.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 41, 59, 536655))
2025-04-29 18:41:59,539 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:41:59,832 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:41:59,834 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:41:59,834 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:41:59,835 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:41:59,835 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:41:59,835 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:41:59,836 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:41:59,836 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:41:59,836 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:41:59,836 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:41:59,836 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:41:59,836 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:41:59,836 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:41:59,836 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:41:59,836 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:41:59,837 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:41:59,837 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:41:59,837 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:41:59,837 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:41:59,837 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:41:59,837 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:41:59,837 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:41:59,838 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:41:59,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:42:14,849 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:42:14,850 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:42:14,850 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:42:14,850 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:42:14,850 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:42:14,850 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:42:59,542 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:42:59,543 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:42:59,545 - sqlalchemy.engine.Engine - INFO - [cached since 660.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 42, 59, 542262))
2025-04-29 18:42:59,546 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:42:59,863 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:42:59,866 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:42:59,869 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:42:59,870 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:42:59,870 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:42:59,872 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:42:59,872 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:42:59,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:42:59,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:42:59,873 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:42:59,873 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:42:59,873 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:42:59,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:42:59,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:42:59,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:42:59,874 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:42:59,874 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:42:59,874 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:42:59,874 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:42:59,874 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:42:59,874 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:42:59,875 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:42:59,875 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:42:59,882 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:43:14,880 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:43:14,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:43:14,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:43:14,881 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:43:14,882 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:43:14,882 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:43:59,557 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:43:59,559 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:43:59,562 - sqlalchemy.engine.Engine - INFO - [cached since 720.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 43, 59, 556209))
2025-04-29 18:43:59,565 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:43:59,914 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:43:59,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:43:59,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:43:59,915 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:43:59,915 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:43:59,915 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:43:59,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:43:59,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:43:59,916 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:43:59,916 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:43:59,916 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:43:59,916 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:43:59,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:43:59,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:43:59,917 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:43:59,917 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:43:59,917 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:43:59,917 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:43:59,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:43:59,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:43:59,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:43:59,919 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:43:59,919 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:43:59,925 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:44:14,945 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:44:14,946 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:44:14,947 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:44:14,947 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:44:14,948 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:44:14,948 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:44:59,568 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:44:59,572 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:44:59,575 - sqlalchemy.engine.Engine - INFO - [cached since 780.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 44, 59, 568881))
2025-04-29 18:44:59,576 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:44:59,977 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:44:59,979 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:44:59,981 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:44:59,982 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:44:59,983 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:44:59,985 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:44:59,988 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:44:59,988 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:44:59,988 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:44:59,988 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:44:59,989 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:44:59,989 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:44:59,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:44:59,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:44:59,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:44:59,990 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:44:59,990 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:44:59,990 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:44:59,990 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:44:59,990 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:44:59,991 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:44:59,991 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:44:59,991 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:44:59,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:45:14,993 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:45:15,003 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:45:15,011 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:45:15,011 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:45:15,011 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:45:15,012 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:45:59,584 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:45:59,584 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:45:59,584 - sqlalchemy.engine.Engine - INFO - [cached since 840.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 45, 59, 583575))
2025-04-29 18:45:59,586 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:46:00,034 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:46:00,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:46:00,036 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:46:00,036 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:46:00,036 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:46:00,036 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:46:00,037 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:46:00,037 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:46:00,037 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:46:00,037 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:46:00,038 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:46:00,038 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:46:00,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:46:00,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:46:00,039 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:46:00,039 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:46:00,039 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:46:00,040 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:46:00,040 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:46:00,041 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:46:00,041 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:46:00,043 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:46:00,043 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:46:00,049 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:46:15,058 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:46:15,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:46:15,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:46:15,060 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:46:15,061 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:46:15,061 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:46:59,572 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:46:59,573 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:46:59,577 - sqlalchemy.engine.Engine - INFO - [cached since 900.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 46, 59, 571459))
2025-04-29 18:46:59,581 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:47:00,084 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:47:00,085 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:47:00,085 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:47:00,085 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:47:00,086 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:47:00,086 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:47:00,086 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:47:00,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:47:00,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:47:00,088 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:47:00,088 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:47:00,088 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:47:00,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:47:00,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:47:00,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:47:00,090 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:47:00,090 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:47:00,090 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:47:00,090 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:47:00,090 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:47:00,090 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:47:00,090 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:47:00,090 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:47:00,095 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:47:15,112 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:47:15,114 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:47:15,116 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:47:15,118 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:47:15,118 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:47:15,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:47:59,585 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:47:59,585 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:47:59,586 - sqlalchemy.engine.Engine - INFO - [cached since 960.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 47, 59, 585326))
2025-04-29 18:47:59,587 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:48:00,125 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:48:00,126 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:48:00,126 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:48:00,126 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:48:00,128 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:48:00,130 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:48:00,133 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:48:00,135 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:48:00,137 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:48:00,139 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:48:00,139 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:48:00,142 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:48:00,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:48:00,142 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:48:00,143 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:48:00,143 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:48:00,143 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:48:00,144 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:48:00,144 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:48:00,145 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:48:00,146 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:48:00,147 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:48:00,147 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:48:00,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:48:15,148 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:48:15,150 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:48:15,151 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:48:15,153 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:48:15,155 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:48:15,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:48:59,608 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:48:59,608 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:48:59,609 - sqlalchemy.engine.Engine - INFO - [cached since 1020s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 48, 59, 607106))
2025-04-29 18:48:59,610 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:49:00,196 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:49:00,198 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:49:00,200 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:49:00,202 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:49:00,205 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:49:00,207 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:49:00,211 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:49:00,212 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:49:00,214 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:49:00,214 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:49:00,214 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:49:00,214 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:49:00,218 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:49:00,220 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:49:00,222 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:49:00,224 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:49:00,226 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:49:00,227 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:49:00,227 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:49:00,229 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:49:00,229 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:49:00,231 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:49:00,234 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:49:00,239 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:49:15,233 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:49:15,235 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:49:15,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:49:15,239 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:49:15,240 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:49:15,240 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:49:59,620 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:49:59,623 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:49:59,627 - sqlalchemy.engine.Engine - INFO - [cached since 1080s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 49, 59, 619811))
2025-04-29 18:49:59,632 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:50:00,269 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:50:00,269 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:50:00,270 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:50:00,270 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:50:00,270 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:50:00,270 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:50:00,270 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:50:00,270 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:50:00,270 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:50:00,270 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:50:00,270 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:50:00,270 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:50:00,270 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:50:00,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:50:00,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:50:00,272 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:50:00,272 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:50:00,272 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:50:00,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:50:00,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:50:00,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:50:00,273 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:50:00,273 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:50:00,278 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:50:15,281 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:50:15,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:50:15,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:50:15,284 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:50:15,284 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:50:15,284 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:50:59,632 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:50:59,634 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:50:59,636 - sqlalchemy.engine.Engine - INFO - [cached since 1140s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 50, 59, 631857))
2025-04-29 18:50:59,642 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:51:00,316 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:51:00,317 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:51:00,317 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:51:00,317 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:51:00,317 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:51:00,317 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:51:00,317 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:51:00,317 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:51:00,317 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:51:00,317 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:51:00,317 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:51:00,318 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:51:00,318 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:51:00,318 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:51:00,318 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:51:00,318 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:51:00,319 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:51:00,319 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:51:00,319 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:51:00,319 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:51:00,319 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:51:00,320 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:51:00,320 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:51:00,325 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:51:15,336 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:51:15,338 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:51:15,339 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:51:15,339 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:51:15,340 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:51:15,341 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:51:59,669 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:51:59,670 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:51:59,670 - sqlalchemy.engine.Engine - INFO - [cached since 1200s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 51, 59, 668529))
2025-04-29 18:51:59,674 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:52:00,340 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:52:00,340 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:52:00,341 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:52:00,343 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:52:00,343 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:52:00,343 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:52:00,343 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:52:00,343 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:52:00,343 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:52:00,343 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:52:00,343 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:52:00,343 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:52:00,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:52:00,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:52:00,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:52:00,344 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:52:00,344 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:52:00,344 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:52:00,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:52:00,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:52:00,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:52:00,344 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:52:00,344 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:52:00,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:52:15,370 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:52:15,372 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:52:15,372 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:52:15,373 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:52:15,373 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:52:15,374 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:52:59,695 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:52:59,700 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:52:59,703 - sqlalchemy.engine.Engine - INFO - [cached since 1260s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 52, 59, 694825))
2025-04-29 18:52:59,704 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:53:00,359 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:53:00,360 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:53:00,360 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:53:00,360 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:53:00,360 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:53:00,360 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:53:00,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:53:00,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:53:00,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:53:00,361 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:53:00,361 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:53:00,361 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:53:00,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:53:00,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:53:00,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:53:00,362 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:53:00,362 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:53:00,362 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:53:00,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:53:00,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:53:00,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:53:00,362 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:53:00,363 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:53:00,368 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:53:15,375 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:53:15,377 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:53:15,378 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:53:15,379 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:53:15,381 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:53:15,381 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:53:59,706 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:53:59,707 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:53:59,707 - sqlalchemy.engine.Engine - INFO - [cached since 1320s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 53, 59, 706004))
2025-04-29 18:53:59,708 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:54:00,410 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:54:00,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:54:00,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:54:00,412 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:54:00,412 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:54:00,412 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:54:00,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:54:00,413 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:54:00,413 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:54:00,414 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:54:00,417 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:54:00,417 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:54:00,418 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:54:00,418 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:54:00,421 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:54:00,423 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:54:00,425 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:54:00,425 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:54:00,425 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:54:00,425 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:54:00,426 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:54:00,426 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:54:00,426 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:54:00,432 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:54:15,431 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:54:15,431 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:54:15,432 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:54:15,432 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:54:15,433 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:54:15,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:54:59,729 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:54:59,732 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:54:59,733 - sqlalchemy.engine.Engine - INFO - [cached since 1380s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 54, 59, 729962))
2025-04-29 18:54:59,737 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:55:00,477 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:55:00,480 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:55:00,480 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:55:00,480 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:55:00,480 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:55:00,481 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:55:00,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:55:00,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:55:00,482 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:55:00,482 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:55:00,482 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:55:00,482 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:55:00,482 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:55:00,483 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:55:00,483 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:55:00,483 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:55:00,483 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:55:00,483 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:55:00,483 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:55:00,484 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:55:00,484 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:55:00,484 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:55:00,484 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:55:00,490 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:55:15,495 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:55:15,496 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:55:15,496 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:55:15,497 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:55:15,497 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:55:15,497 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:55:59,741 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:55:59,743 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:55:59,748 - sqlalchemy.engine.Engine - INFO - [cached since 1440s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 55, 59, 740936))
2025-04-29 18:55:59,750 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:56:00,497 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:56:00,498 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:56:00,499 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:56:00,499 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:56:00,499 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:56:00,502 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:56:00,506 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:56:00,508 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:56:00,509 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:56:00,511 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:56:00,513 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:56:00,514 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:56:00,514 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:56:00,514 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:56:00,515 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:56:00,515 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:56:00,515 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:56:00,515 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:56:00,516 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:56:00,517 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:56:00,517 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:56:00,517 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:56:00,519 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:56:00,524 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:56:15,538 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:56:15,540 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:56:15,540 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:56:15,542 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:56:15,544 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:56:15,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:56:59,778 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:56:59,779 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:56:59,780 - sqlalchemy.engine.Engine - INFO - [cached since 1500s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 56, 59, 778619))
2025-04-29 18:56:59,781 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:57:00,571 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:57:00,571 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:57:00,571 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:57:00,571 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:57:00,571 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:57:00,572 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:57:00,572 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:57:00,573 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:57:00,573 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:57:00,573 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:57:00,573 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:57:00,573 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:57:00,573 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:57:00,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:57:00,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:57:00,574 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:57:00,574 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:57:00,574 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:57:00,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:57:00,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:57:00,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:57:00,574 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:57:00,574 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:57:00,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:57:15,608 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:57:15,610 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:57:15,610 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:57:15,610 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:57:15,610 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:57:15,610 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:57:59,783 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:57:59,785 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:57:59,785 - sqlalchemy.engine.Engine - INFO - [cached since 1560s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 57, 59, 783337))
2025-04-29 18:57:59,786 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:58:00,637 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:58:00,638 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:58:00,638 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:58:00,638 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:58:00,638 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:58:00,638 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:58:00,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:58:00,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:58:00,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:58:00,639 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:58:00,639 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:58:00,640 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:58:00,640 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:58:00,640 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:58:00,640 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:58:00,640 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:58:00,640 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:58:00,640 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:58:00,642 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:58:00,642 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:58:00,642 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:58:00,642 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:58:00,643 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:58:00,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:58:15,661 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:58:15,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:58:15,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:58:15,663 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:58:15,664 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:58:15,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:58:59,783 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:58:59,785 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:58:59,789 - sqlalchemy.engine.Engine - INFO - [cached since 1620s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 58, 59, 782695))
2025-04-29 18:58:59,794 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 18:59:00,653 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 18:59:00,653 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 18:59:00,653 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 18:59:00,655 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 18:59:00,655 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 18:59:00,655 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 18:59:00,656 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 18:59:00,656 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 18:59:00,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 18:59:00,657 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 18:59:00,657 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 18:59:00,657 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 18:59:00,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 18:59:00,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 18:59:00,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 18:59:00,657 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 18:59:00,657 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 18:59:00,659 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 18:59:00,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 18:59:00,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 18:59:00,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 18:59:00,660 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 18:59:00,660 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 18:59:00,667 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 18:59:15,669 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 18:59:15,669 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 18:59:15,669 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 18:59:15,670 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 18:59:15,670 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 18:59:15,670 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 18:59:59,800 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 18:59:59,804 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 18:59:59,808 - sqlalchemy.engine.Engine - INFO - [cached since 1680s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 17, 59, 59, 799238))
2025-04-29 18:59:59,811 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 19:00:00,702 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 19:00:00,703 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 19:00:00,703 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 19:00:00,704 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 19:00:00,704 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 19:00:00,704 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 19:00:00,705 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 19:00:00,705 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 19:00:00,705 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 19:00:00,705 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 19:00:00,705 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 19:00:00,705 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 19:00:00,705 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 19:00:00,706 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 19:00:00,706 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 19:00:00,706 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 19:00:00,706 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 19:00:00,706 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 19:00:00,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 19:00:00,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 19:00:00,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 19:00:00,709 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 19:00:00,709 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 19:00:00,716 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 19:00:15,724 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 19:00:15,729 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 19:00:15,729 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 19:00:15,729 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 19:00:15,729 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 19:00:15,729 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 19:00:59,832 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 19:00:59,833 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 19:00:59,837 - sqlalchemy.engine.Engine - INFO - [cached since 1740s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 18, 0, 59, 831804))
2025-04-29 19:00:59,841 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 19:01:00,764 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 19:01:00,766 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 19:01:00,767 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 19:01:00,767 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 19:01:00,768 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 19:01:00,768 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 19:01:00,769 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 19:01:00,770 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 19:01:00,770 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 19:01:00,770 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 19:01:00,771 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 19:01:00,771 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 19:01:00,772 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 19:01:00,772 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 19:01:00,772 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 19:01:00,772 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 19:01:00,773 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 19:01:00,773 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 19:01:00,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 19:01:00,774 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 19:01:00,774 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 19:01:00,774 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 19:01:00,774 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 19:01:00,780 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 19:01:15,790 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 19:01:15,795 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 19:01:15,796 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 19:01:15,797 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 19:01:15,798 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 19:01:15,798 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 19:01:59,859 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 19:01:59,861 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 19:01:59,861 - sqlalchemy.engine.Engine - INFO - [cached since 1800s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 18, 1, 59, 859550))
2025-04-29 19:01:59,861 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 19:02:00,802 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 19:02:00,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 19:02:00,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 19:02:00,802 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 19:02:00,802 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 19:02:00,802 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 19:02:00,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 19:02:00,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 19:02:00,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 19:02:00,812 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 19:02:00,812 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 19:02:00,812 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 19:02:00,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 19:02:00,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 19:02:00,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 19:02:00,812 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 19:02:00,812 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 19:02:00,812 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 19:02:00,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 19:02:00,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 19:02:00,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 19:02:00,812 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 19:02:00,812 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 19:02:00,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 19:02:15,826 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 19:02:15,828 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 19:02:15,829 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 19:02:15,831 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 19:02:15,831 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 19:02:15,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 19:02:59,856 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 19:02:59,856 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 19:02:59,856 - sqlalchemy.engine.Engine - INFO - [cached since 1860s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 18, 2, 59, 856030))
2025-04-29 19:02:59,856 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 19:03:00,883 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 19:03:00,883 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 19:03:00,883 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 19:03:00,883 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 19:03:00,883 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 19:03:00,883 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 19:03:00,883 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 19:03:00,883 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 19:03:00,883 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 19:03:00,883 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 19:03:00,893 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 19:03:00,893 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 19:03:00,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 19:03:00,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 19:03:00,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 19:03:00,893 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 19:03:00,893 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 19:03:00,893 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 19:03:00,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 19:03:00,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 19:03:00,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 19:03:00,893 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 19:03:00,893 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 19:03:00,900 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 19:03:15,905 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 19:03:15,906 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 19:03:15,906 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 19:03:15,907 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 19:03:15,907 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 19:03:15,907 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 19:03:59,856 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 19:03:59,856 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 19:03:59,856 - sqlalchemy.engine.Engine - INFO - [cached since 1920s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 18, 3, 59, 856239))
2025-04-29 19:03:59,866 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 19:04:00,905 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 19:04:00,905 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 19:04:00,905 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 19:04:00,905 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 19:04:00,905 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 19:04:00,905 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 19:04:00,905 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 19:04:00,905 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 19:04:00,905 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 19:04:00,905 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 19:04:00,905 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 19:04:00,905 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 19:04:00,905 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 19:04:00,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 19:04:00,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 19:04:00,915 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 19:04:00,915 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 19:04:00,915 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 19:04:00,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 19:04:00,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 19:04:00,915 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 19:04:00,915 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 19:04:00,915 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 19:04:00,926 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 19:04:15,938 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 19:04:15,938 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 19:04:15,938 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 19:04:15,938 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 19:04:15,938 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 19:04:15,938 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 19:04:59,880 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 19:04:59,880 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 19:04:59,880 - sqlalchemy.engine.Engine - INFO - [cached since 1980s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 18, 4, 59, 880246))
2025-04-29 19:04:59,880 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 19:05:00,952 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 19:05:00,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 19:05:00,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 19:05:00,952 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 19:05:00,952 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 19:05:00,952 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 19:05:00,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 19:05:00,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 19:05:00,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 19:05:00,952 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 19:05:00,952 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 19:05:00,952 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 19:05:00,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 19:05:00,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 19:05:00,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 19:05:00,952 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 19:05:00,952 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 19:05:00,952 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 19:05:00,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 19:05:00,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 19:05:00,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 19:05:00,952 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 19:05:00,952 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 19:05:00,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-29 19:05:15,953 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-29 19:05:15,954 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-29 19:05:15,954 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-29 19:05:15,954 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-29 19:05:15,954 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-29 19:05:15,954 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-29 19:05:59,899 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-29 19:05:59,899 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-29 19:05:59,899 - sqlalchemy.engine.Engine - INFO - [cached since 2040s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 29, 18, 5, 59, 898933))
2025-04-29 19:05:59,901 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-29 19:06:00,968 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-29 19:06:00,968 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-29 19:06:00,968 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-29 19:06:00,970 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-29 19:06:00,970 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-29 19:06:00,973 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-29 19:06:00,973 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-29 19:06:00,973 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-29 19:06:00,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-29 19:06:00,975 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-29 19:06:00,975 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-29 19:06:00,977 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-29 19:06:00,979 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-29 19:06:00,979 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-29 19:06:00,979 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-29 19:06:00,979 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-29 19:06:00,985 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-29 19:06:00,985 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-29 19:06:00,985 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-29 19:06:00,985 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-29 19:06:00,985 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-29 19:06:00,985 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-29 19:06:00,985 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-29 19:06:00,991 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:22:10,988 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 08:22:11,056 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 08:22:11,059 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 08:22:11,723 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 08:22:11,795 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 08:22:11,797 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 08:22:11,868 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 08:22:11,922 - data.session - INFO - 正在初始化数据库...
2025-04-30 08:22:11,947 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 08:22:11,973 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 08:22:11,974 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:22:11,977 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 08:22:11,977 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:22:11,980 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 08:22:11,981 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:22:11,983 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:22:11,984 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 08:22:11,984 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:22:11,987 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 08:22:11,988 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:22:11,990 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 08:22:11,990 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:22:11,991 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 08:22:11,992 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:22:11,993 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 08:22:11,994 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:22:11,995 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 08:22:11,996 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:22:11,997 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 08:22:11,997 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:22:11,999 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 08:22:12,000 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:22:12,001 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 08:22:12,002 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:22:12,003 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 08:22:12,003 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:22:12,004 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 08:22:12,005 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:22:12,005 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:22:12,006 - data.session - INFO - 数据库表初始化完成
2025-04-30 08:22:12,400 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 08:22:12,400 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 08:22:12,400 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 08:22:12,400 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 08:22:12,401 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 08:22:12,401 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 08:22:12,401 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 08:22:12,402 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 08:22:12,402 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 08:22:12,402 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 08:22:12,402 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:22:12,402 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 08:22:12,405 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 08:22:12,406 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:22:12,406 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:22:12,407 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:22:12,407 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:22:12,407 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:22:12,407 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 08:22:12,407 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 08:22:12,425 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 08:22:12,426 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 08:22:12,427 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:22:12,428 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 08:22:12,428 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:22:12,429 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 08:22:12,429 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:22:12,430 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:22:12,441 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 08:22:12,442 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 08:22:12,444 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 08:22:12,444 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:22:12,446 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 08:22:12,446 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 08:22:12,446 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 08:22:12,446 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:22:12,448 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 08:22:12,448 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 08:22:12,474 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:22:12,475 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 08:22:12,475 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 08:22:12,475 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 08:22:12,475 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 08:22:12,476 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 08:22:12,480 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:22:12,480 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:22:12,480 - sqlalchemy.engine.Engine - INFO - [generated in 0.00068s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 22, 12, 446124))
2025-04-30 08:22:12,482 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:23:12,441 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:23:12,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:23:12,443 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:23:12,443 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:23:12,446 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:23:12,448 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:23:12,452 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:23:12,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:23:12,455 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:23:12,455 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:23:12,457 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:23:12,458 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:23:12,462 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:23:12,464 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:23:12,466 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:23:12,468 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:23:12,470 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:23:12,472 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:23:12,474 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:23:12,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:23:12,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:23:12,476 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:23:12,478 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:23:12,480 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:23:12,484 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:23:12,486 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:23:12,488 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:23:12,489 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:23:12,490 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:23:12,496 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:23:12,498 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:23:12,502 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:23:12,506 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 23, 12, 484120))
2025-04-30 08:23:12,507 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:23:48,813 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 08:23:48,818 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:23:48,821 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 08:23:48,824 - sqlalchemy.engine.Engine - INFO - [generated in 0.00334s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 08:23:48,826 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:23:48,829 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:23:48,830 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 08:23:48,830 - sqlalchemy.engine.Engine - INFO - [cached since 0.00955s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 08:23:48,831 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:23:48,833 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 08:23:48,833 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 08:23:48,833 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 08:23:48,835 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:23:48,836 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 08:23:48,836 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] (None, datetime.datetime(2025, 4, 30, 8, 23, 48, 836447), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 08:23:48,838 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:23:48,849 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:23:48,849 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 08:23:48,849 - sqlalchemy.engine.Engine - INFO - [cached since 0.02859s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 08:23:48,851 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 08:23:48,852 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] ('2f5c2891-03f6-4eed-9cad-24055c254fb8', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 8, 23, 48, 833284), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.4", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 8, 23, 48, 851321), datetime.datetime(2025, 4, 30, 8, 23, 48, 851321), 0)
2025-04-30 08:23:48,853 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:23:48,859 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:23:48,862 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 08:23:48,863 - sqlalchemy.engine.Engine - INFO - [generated in 0.00068s] ('2f5c2891-03f6-4eed-9cad-24055c254fb8',)
2025-04-30 08:23:48,865 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:23:48,866 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 2f5c2891-03f6-4eed-9cad-24055c254fb8 (优先级 1) 添加到队列 0
2025-04-30 08:23:48,869 - services.sync_service - INFO - 正在同步创建任务到天风系统: 2f5c2891-03f6-4eed-9cad-24055c254fb8
2025-04-30 08:23:48,870 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"2f5c2891-03f6-4eed-9cad-24055c254fb8","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 08:23:48","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 08:23:48,938 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 2f5c2891-03f6-4eed-9cad-24055c254fb8, 优先级: 1
2025-04-30 08:23:48,938 - services.execution.task_executor - DEBUG - 任务 2f5c2891-03f6-4eed-9cad-24055c254fb8 设置超时时间: 3600秒
2025-04-30 08:23:48,939 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:23:48,939 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 08:23:48,940 - sqlalchemy.engine.Engine - INFO - [cached since 0.07824s ago] ('2f5c2891-03f6-4eed-9cad-24055c254fb8',)
2025-04-30 08:23:48,941 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 08:23:48,941 - sqlalchemy.engine.Engine - INFO - [cached since 0.1208s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 08:23:48,943 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 08:23:48,943 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (datetime.datetime(2025, 4, 30, 8, 23, 48, 942762), datetime.datetime(2025, 4, 30, 8, 23, 48, 943767), '2f5c2891-03f6-4eed-9cad-24055c254fb8')
2025-04-30 08:23:48,944 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:23:48,952 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:23:48,953 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 08:23:48,953 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 23, 48, 953879), '2f5c2891-03f6-4eed-9cad-24055c254fb8')
2025-04-30 08:23:48,955 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:23:48,962 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 08:23:48,963 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:23:48,965 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 08:23:48,965 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] ('ba0f2688-8205-41f8-8f67-f95f059f3fa6', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '2f5c2891-03f6-4eed-9cad-24055c254fb8', datetime.datetime(2025, 4, 30, 8, 23, 48, 963292), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 8, 23, 48, 965306), datetime.datetime(2025, 4, 30, 8, 23, 48, 965306), 0)
2025-04-30 08:23:48,966 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:23:48,980 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:23:48,982 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 08:23:48,983 - sqlalchemy.engine.Engine - INFO - [generated in 0.00087s] ('ba0f2688-8205-41f8-8f67-f95f059f3fa6',)
2025-04-30 08:23:48,985 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 08:23:48,985 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 08:23:48,986 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 08:23:48,987 - sqlalchemy.engine.Engine - INFO - [generated in 0.00122s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 8, 23, 48, 986219), 'ba0f2688-8205-41f8-8f67-f95f059f3fa6')
2025-04-30 08:23:48,988 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:23:48,994 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 08:23:48,994 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 08:23:48,994 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 08:23:48,996 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:23:48,996 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 08:23:48,996 - sqlalchemy.engine.Engine - INFO - [cached since 0.0315s ago] ('09caa7ec-16f2-4bd9-92ef-de2b784ca409', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '2f5c2891-03f6-4eed-9cad-24055c254fb8', datetime.datetime(2025, 4, 30, 8, 23, 48, 994712), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 8, 23, 48, 996000), datetime.datetime(2025, 4, 30, 8, 23, 48, 996000), 0)
2025-04-30 08:23:48,997 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:23:49,003 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 09caa7ec-16f2-4bd9-92ef-de2b784ca409
2025-04-30 08:23:49,004 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:23:49,005 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 08:23:49,005 - sqlalchemy.engine.Engine - INFO - [cached since 0.02244s ago] ('09caa7ec-16f2-4bd9-92ef-de2b784ca409',)
2025-04-30 08:23:49,006 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 08:23:49,009 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 08:23:49,009 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 08:23:49,009 - sqlalchemy.engine.Engine - INFO - [cached since 0.02385s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 8, 23, 49, 9469), '09caa7ec-16f2-4bd9-92ef-de2b784ca409')
2025-04-30 08:23:49,010 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:23:49,018 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 08:23:49,019 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:23:49,021 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 08:23:49,022 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] ('287938d6-5ce3-49c3-baa7-719d1f9e81aa', 3, '{"success": false, "message": "选择执行机器人异常: 1 validation error for ChooseAmrRequest\\npriority\\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '2f5c2891-03f6-4eed-9cad-24055c254fb8', datetime.datetime(2025, 4, 30, 8, 23, 49, 21105), datetime.datetime(2025, 4, 30, 8, 23, 49, 21105), 0)
2025-04-30 08:23:49,022 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:23:49,032 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人异常: 1 validation error for ChooseAmrRequest
priority
  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.10/v/int_type
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 759, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 08:23:49,033 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:23:49,033 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 08:23:49,034 - sqlalchemy.engine.Engine - INFO - [cached since 0.05177s ago] ('09caa7ec-16f2-4bd9-92ef-de2b784ca409',)
2025-04-30 08:23:49,035 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 08:23:49,035 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 08:23:49,035 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 08:23:49,036 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] (datetime.datetime(2025, 4, 30, 8, 23, 49, 35892), '选择执行机器人异常: 1 validation error for ChooseAmrRequest\npriority\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人异常: 1 validation error for ChooseAmrRequest\npriority\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type', datetime.datetime(2025, 4, 30, 8, 23, 49, 35892), '09caa7ec-16f2-4bd9-92ef-de2b784ca409')
2025-04-30 08:23:49,036 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:23:49,043 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:23:49,044 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 08:23:49,044 - sqlalchemy.engine.Engine - INFO - [cached since 0.02365s ago] ('ae8852cf-048b-4818-b8df-bc2b7c61cfeb', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人异常: 1 validation error for ChooseAmrRequest\\npriority\\n  Input should be a valid integer [type=int ... (7 characters truncated) ... input_value=None, input_type=NoneType]\\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '2f5c2891-03f6-4eed-9cad-24055c254fb8', datetime.datetime(2025, 4, 30, 8, 23, 49, 44904), datetime.datetime(2025, 4, 30, 8, 23, 49, 44904), 0)
2025-04-30 08:23:49,045 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:23:49,052 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:23:49,054 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 08:23:49,054 - sqlalchemy.engine.Engine - INFO - [cached since 0.07189s ago] ('ba0f2688-8205-41f8-8f67-f95f059f3fa6',)
2025-04-30 08:23:49,055 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 08:23:49,055 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 08:23:49,055 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 08:23:49,055 - sqlalchemy.engine.Engine - INFO - [cached since 0.02014s ago] (datetime.datetime(2025, 4, 30, 8, 23, 49, 55794), '子块 1 执行失败: 选择执行机器人异常: 1 validation error for ChooseAmrRequest\npriority\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人异常: 1 validation error for ChooseAmrRequest\npriority\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type', datetime.datetime(2025, 4, 30, 8, 23, 49, 55794), 'ba0f2688-8205-41f8-8f67-f95f059f3fa6')
2025-04-30 08:23:49,057 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:23:49,063 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:23:49,065 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 08:23:49,065 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (datetime.datetime(2025, 4, 30, 8, 23, 49, 62152), '子块 1 执行失败: 选择执行机器人异常: 1 validation error for ChooseAmrRequest\npriority\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type', <TaskStatus.FAILED: 2000>, 109, 1, datetime.datetime(2025, 4, 30, 8, 23, 49, 65373), '2f5c2891-03f6-4eed-9cad-24055c254fb8')
2025-04-30 08:23:49,066 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:23:49,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: 2f5c2891-03f6-4eed-9cad-24055c254fb8, 结果: False
2025-04-30 08:23:49,153 - services.sync_service - WARNING - 同步任务到系统任务失败: Token失效，请重新登录!
2025-04-30 08:23:49,158 - services.enhanced_scheduler.task_scheduler - WARNING - 同步任务到主任务系统失败: 2f5c2891-03f6-4eed-9cad-24055c254fb8
2025-04-30 08:23:49,161 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 2f5c2891-03f6-4eed-9cad-24055c254fb8
2025-04-30 08:23:49,163 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.3500秒
2025-04-30 08:24:12,476 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:24:12,476 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:24:12,476 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:24:12,477 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:24:12,477 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:24:12,477 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:24:12,477 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:24:12,477 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:24:12,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:24:12,478 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:24:12,478 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:24:12,484 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:24:12,524 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:24:12,527 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:24:12,529 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 24, 12, 523133))
2025-04-30 08:24:12,531 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:24:27,479 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:24:27,480 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:24:27,480 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:24:27,481 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:24:27,482 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:24:27,482 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:24:27,482 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:24:27,482 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:24:27,482 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:24:27,482 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:24:27,482 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:24:27,483 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:24:57,514 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:24:57,517 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:24:57,517 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:24:57,517 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:24:57,517 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:24:57,518 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:25:12,530 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:25:12,533 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:25:12,534 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:25:12,534 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:25:12,535 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:25:12,537 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:25:12,543 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:25:12,545 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:25:12,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:25:12,547 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:25:12,548 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:25:12,551 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 25, 12, 533862))
2025-04-30 08:25:12,553 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:25:12,555 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:25:12,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:25:12,569 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:25:27,582 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:25:27,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:25:27,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:25:27,583 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:25:27,583 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:25:27,583 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:25:27,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:25:27,585 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:25:27,585 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:25:27,585 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:25:27,585 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:25:27,585 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:25:57,616 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:25:57,620 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:25:57,620 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:25:57,620 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:25:57,621 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:25:57,621 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:25:57,755 - app - INFO - 应用程序关闭中...
2025-04-30 08:25:57,755 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 08:25:57,755 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 08:25:57,757 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 08:25:57,757 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 08:25:57,757 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 08:25:57,758 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 08:25:57,758 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 08:25:57,758 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 08:25:57,758 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 08:25:57,759 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 08:25:57,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:25:57,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:25:57,759 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:25:57,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:25:57,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:25:57,759 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 08:25:57,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:25:57,760 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:25:57,760 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-30 08:25:57,760 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:25:57,760 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:25:57,760 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-30 08:25:57,760 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:25:57,760 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:25:57,760 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 0
2025-04-30 08:25:57,761 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 08:25:57,761 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 08:25:57,761 - app - INFO - 增强版任务调度器已停止
2025-04-30 08:25:57,761 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 08:25:57,762 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 08:25:57,762 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 08:25:57,762 - data.session - INFO - 数据库连接已关闭
2025-04-30 08:25:59,020 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 08:25:59,084 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 08:25:59,086 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 08:25:59,144 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 08:25:59,190 - data.session - INFO - 正在初始化数据库...
2025-04-30 08:25:59,210 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 08:25:59,223 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 08:25:59,224 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:25:59,225 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 08:25:59,228 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:25:59,232 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 08:25:59,233 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:25:59,235 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:25:59,238 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 08:25:59,239 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:25:59,244 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 08:25:59,245 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:25:59,248 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 08:25:59,249 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:25:59,251 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 08:25:59,251 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:25:59,253 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 08:25:59,254 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:25:59,255 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 08:25:59,256 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:25:59,257 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 08:25:59,259 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:25:59,261 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 08:25:59,263 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:25:59,266 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 08:25:59,269 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:25:59,271 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 08:25:59,275 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:25:59,278 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 08:25:59,279 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:25:59,282 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:25:59,285 - data.session - INFO - 数据库表初始化完成
2025-04-30 08:25:59,657 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 08:25:59,658 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 08:25:59,658 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 08:25:59,658 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 08:25:59,658 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 08:25:59,658 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 08:25:59,658 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 08:25:59,659 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 08:25:59,659 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 08:25:59,660 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 08:25:59,661 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:25:59,661 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 08:25:59,662 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 08:25:59,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:25:59,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:25:59,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:25:59,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:25:59,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:25:59,665 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 08:25:59,665 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 08:25:59,666 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 08:25:59,667 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 08:25:59,667 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:25:59,667 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 08:25:59,667 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:25:59,667 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 08:25:59,669 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:25:59,669 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:25:59,678 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 08:25:59,681 - sqlalchemy.engine.Engine - INFO - [generated in 0.00343s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 08:25:59,683 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 08:25:59,683 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:25:59,683 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 08:25:59,684 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 08:25:59,684 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 08:25:59,684 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:25:59,686 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 08:25:59,687 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 08:25:59,688 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:25:59,688 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 08:25:59,688 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 08:25:59,689 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 08:25:59,689 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 08:25:59,689 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 08:25:59,689 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:25:59,691 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:25:59,691 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 25, 59, 684898))
2025-04-30 08:25:59,692 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:26:59,699 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:26:59,700 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:26:59,700 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:26:59,700 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:26:59,701 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:26:59,701 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:26:59,703 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:26:59,703 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:26:59,705 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 26, 59, 698944))
2025-04-30 08:26:59,705 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:26:59,705 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:26:59,706 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:26:59,706 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:26:59,706 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:26:59,707 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:26:59,707 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:26:59,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:26:59,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:26:59,713 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:26:59,720 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:26:59,720 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:26:59,722 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:26:59,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:26:59,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:26:59,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:26:59,722 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:26:59,722 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:26:59,722 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:26:59,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:26:59,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:26:59,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:26:59,723 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:26:59,723 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:26:59,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:26:59,825 - app - INFO - 应用程序关闭中...
2025-04-30 08:26:59,826 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 08:26:59,826 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 08:26:59,827 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 08:26:59,827 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 08:26:59,828 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 08:26:59,828 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 08:26:59,828 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 08:26:59,829 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 08:26:59,829 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 08:26:59,829 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 08:26:59,830 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:26:59,830 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:26:59,830 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:26:59,830 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:26:59,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:26:59,831 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 08:26:59,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:26:59,831 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:26:59,832 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 08:26:59,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:26:59,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:26:59,832 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 08:26:59,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:26:59,833 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:26:59,833 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 08:26:59,833 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 08:26:59,833 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 08:26:59,833 - app - INFO - 增强版任务调度器已停止
2025-04-30 08:26:59,833 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 08:26:59,834 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 08:26:59,834 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 08:26:59,834 - data.session - INFO - 数据库连接已关闭
2025-04-30 08:27:00,953 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 08:27:01,011 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 08:27:01,013 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 08:27:01,078 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 08:27:01,126 - data.session - INFO - 正在初始化数据库...
2025-04-30 08:27:01,158 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 08:27:01,177 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 08:27:01,178 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:01,185 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 08:27:01,187 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:01,187 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 08:27:01,188 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:01,188 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:01,189 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 08:27:01,190 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:01,192 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 08:27:01,193 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:01,194 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 08:27:01,195 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:01,196 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 08:27:01,198 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:01,200 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 08:27:01,204 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:01,205 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 08:27:01,206 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:01,207 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 08:27:01,207 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:01,209 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 08:27:01,209 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:01,210 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 08:27:01,210 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:01,211 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 08:27:01,212 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:01,213 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 08:27:01,215 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:01,216 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:01,216 - data.session - INFO - 数据库表初始化完成
2025-04-30 08:27:01,610 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 08:27:01,610 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 08:27:01,610 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 08:27:01,611 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 08:27:01,611 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 08:27:01,612 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 08:27:01,612 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 08:27:01,612 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 08:27:01,612 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 08:27:01,612 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 08:27:01,619 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:27:01,619 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 08:27:01,620 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 08:27:01,622 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:27:01,622 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:27:01,623 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:27:01,624 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:27:01,625 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:27:01,625 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 08:27:01,626 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 08:27:01,628 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 08:27:01,629 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 08:27:01,629 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:27:01,630 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 08:27:01,630 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:27:01,631 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 08:27:01,631 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:27:01,633 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:01,642 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 08:27:01,644 - sqlalchemy.engine.Engine - INFO - [generated in 0.00133s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 08:27:01,645 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 08:27:01,646 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:01,648 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 08:27:01,649 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 08:27:01,650 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 08:27:01,650 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:01,652 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 08:27:01,652 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 08:27:01,666 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:01,667 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 08:27:01,667 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 08:27:01,668 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 08:27:01,668 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 08:27:01,669 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 08:27:01,669 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:01,670 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:27:01,671 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 27, 1, 650228))
2025-04-30 08:27:01,672 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:10,439 - app - INFO - 应用程序关闭中...
2025-04-30 08:27:10,440 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 08:27:10,441 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 08:27:10,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:27:10,443 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:27:10,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:27:10,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:27:10,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:27:10,446 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 08:27:10,446 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 08:27:10,447 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 08:27:10,449 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 08:27:10,449 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 08:27:10,449 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 08:27:10,449 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 08:27:10,449 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 08:27:10,449 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:27:10,449 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 08:27:10,449 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 08:27:10,449 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 08:27:10,449 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 08:27:10,449 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 08:27:10,449 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 08:27:10,449 - app - INFO - 增强版任务调度器已停止
2025-04-30 08:27:10,449 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 08:27:10,450 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 08:27:10,450 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 08:27:10,450 - data.session - INFO - 数据库连接已关闭
2025-04-30 08:27:11,542 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 08:27:11,611 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 08:27:11,614 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 08:27:11,672 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 08:27:11,718 - data.session - INFO - 正在初始化数据库...
2025-04-30 08:27:11,759 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 08:27:11,777 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 08:27:11,778 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:11,778 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 08:27:11,778 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:11,778 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 08:27:11,780 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:11,780 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:11,780 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 08:27:11,781 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:11,783 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 08:27:11,783 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:11,784 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 08:27:11,784 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:11,786 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 08:27:11,786 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:11,788 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 08:27:11,788 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:11,789 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 08:27:11,789 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:11,789 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 08:27:11,790 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:11,790 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 08:27:11,791 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:11,791 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 08:27:11,792 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:11,793 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 08:27:11,793 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:11,794 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 08:27:11,794 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:11,796 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:11,796 - data.session - INFO - 数据库表初始化完成
2025-04-30 08:27:12,150 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 08:27:12,150 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 08:27:12,150 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 08:27:12,150 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 08:27:12,151 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 08:27:12,151 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 08:27:12,151 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 08:27:12,151 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 08:27:12,152 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 08:27:12,152 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 08:27:12,162 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:27:12,162 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 08:27:12,163 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 08:27:12,166 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:27:12,166 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:27:12,166 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:27:12,168 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:27:12,168 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:27:12,168 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 08:27:12,168 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 08:27:12,172 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 08:27:12,173 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 08:27:12,173 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:27:12,176 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 08:27:12,176 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:27:12,177 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 08:27:12,177 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:27:12,178 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:12,190 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 08:27:12,190 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 08:27:12,192 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 08:27:12,192 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:12,192 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 08:27:12,193 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 08:27:12,193 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 08:27:12,193 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:12,194 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 08:27:12,196 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 08:27:12,197 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:12,197 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 08:27:12,197 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 08:27:12,198 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 08:27:12,198 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 08:27:12,198 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 08:27:12,198 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:12,198 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:27:12,198 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 27, 12, 193469))
2025-04-30 08:27:12,199 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:35,146 - app - INFO - 应用程序关闭中...
2025-04-30 08:27:35,146 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 08:27:35,146 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 08:27:35,147 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 08:27:35,147 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 08:27:35,148 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 08:27:35,149 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 08:27:35,152 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 08:27:35,154 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 08:27:35,155 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 08:27:35,156 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 08:27:35,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:27:35,158 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:27:35,160 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:27:35,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:27:35,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:27:35,162 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 08:27:35,162 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:27:35,164 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:27:35,166 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 08:27:35,168 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:27:35,170 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:27:35,172 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 08:27:35,175 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:27:35,176 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:27:35,176 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 08:27:35,177 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 08:27:35,177 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 08:27:35,177 - app - INFO - 增强版任务调度器已停止
2025-04-30 08:27:35,178 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 08:27:35,178 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 08:27:35,179 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 08:27:35,181 - data.session - INFO - 数据库连接已关闭
2025-04-30 08:27:36,319 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 08:27:36,384 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 08:27:36,388 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 08:27:36,455 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 08:27:36,502 - data.session - INFO - 正在初始化数据库...
2025-04-30 08:27:36,542 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 08:27:36,564 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 08:27:36,564 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:36,565 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 08:27:36,565 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:36,565 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 08:27:36,565 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:36,566 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:36,566 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 08:27:36,566 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:36,567 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 08:27:36,567 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:36,569 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 08:27:36,570 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:36,571 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 08:27:36,572 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:36,573 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 08:27:36,573 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:36,573 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 08:27:36,574 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:36,574 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 08:27:36,575 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:36,575 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 08:27:36,576 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:36,577 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 08:27:36,577 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:36,578 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 08:27:36,578 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:36,579 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 08:27:36,579 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:27:36,580 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:36,581 - data.session - INFO - 数据库表初始化完成
2025-04-30 08:27:36,989 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 08:27:36,990 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 08:27:36,990 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 08:27:36,990 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 08:27:36,990 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 08:27:36,991 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 08:27:36,991 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 08:27:36,991 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 08:27:36,991 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 08:27:36,991 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 08:27:36,992 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:27:36,992 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 08:27:36,992 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 08:27:36,994 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:27:36,994 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:27:36,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:27:36,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:27:36,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:27:36,995 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 08:27:36,995 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 08:27:37,019 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 08:27:37,020 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 08:27:37,020 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:27:37,021 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 08:27:37,022 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:27:37,022 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 08:27:37,022 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:27:37,023 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:37,039 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 08:27:37,039 - sqlalchemy.engine.Engine - INFO - [generated in 0.00082s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 08:27:37,041 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 08:27:37,041 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:37,042 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 08:27:37,043 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 08:27:37,043 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 08:27:37,044 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:37,045 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 08:27:37,049 - sqlalchemy.engine.Engine - INFO - [generated in 0.00342s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 08:27:37,050 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:37,050 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 08:27:37,051 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 08:27:37,051 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 08:27:37,051 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 08:27:37,051 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 08:27:37,052 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:37,053 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:27:37,053 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 27, 37, 43181))
2025-04-30 08:27:37,054 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:39,839 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 08:27:39,841 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:39,842 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 08:27:39,842 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 08:27:39,843 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:39,844 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:39,844 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 08:27:39,845 - sqlalchemy.engine.Engine - INFO - [cached since 0.002549s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 08:27:39,845 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:39,846 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 08:27:39,846 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 08:27:39,846 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 08:27:39,846 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:39,848 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 08:27:39,848 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (None, datetime.datetime(2025, 4, 30, 8, 27, 39, 848724), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 08:27:39,850 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:39,858 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:39,858 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 08:27:39,858 - sqlalchemy.engine.Engine - INFO - [cached since 0.01616s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 08:27:39,860 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 08:27:39,860 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] ('87cc8fbd-ac89-4667-a79a-22bb4910fe29', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 8, 27, 39, 846122), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.4", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 8, 27, 39, 860648), datetime.datetime(2025, 4, 30, 8, 27, 39, 860648), 0)
2025-04-30 08:27:39,861 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:39,867 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:39,869 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 08:27:39,872 - sqlalchemy.engine.Engine - INFO - [generated in 0.00284s] ('87cc8fbd-ac89-4667-a79a-22bb4910fe29',)
2025-04-30 08:27:39,873 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:39,876 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 87cc8fbd-ac89-4667-a79a-22bb4910fe29 (优先级 1) 添加到队列 0
2025-04-30 08:27:39,882 - services.sync_service - INFO - 正在同步创建任务到天风系统: 87cc8fbd-ac89-4667-a79a-22bb4910fe29
2025-04-30 08:27:39,884 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"87cc8fbd-ac89-4667-a79a-22bb4910fe29","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 08:27:39","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 08:27:39,900 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 87cc8fbd-ac89-4667-a79a-22bb4910fe29, 优先级: 1
2025-04-30 08:27:39,901 - services.execution.task_executor - DEBUG - 任务 87cc8fbd-ac89-4667-a79a-22bb4910fe29 设置超时时间: 3600秒
2025-04-30 08:27:39,901 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:39,902 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 08:27:39,902 - sqlalchemy.engine.Engine - INFO - [cached since 0.03355s ago] ('87cc8fbd-ac89-4667-a79a-22bb4910fe29',)
2025-04-30 08:27:39,904 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 08:27:39,904 - sqlalchemy.engine.Engine - INFO - [cached since 0.06202s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 08:27:39,909 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 08:27:39,911 - sqlalchemy.engine.Engine - INFO - [generated in 0.00199s] (datetime.datetime(2025, 4, 30, 8, 27, 39, 908086), datetime.datetime(2025, 4, 30, 8, 27, 39, 909089), '87cc8fbd-ac89-4667-a79a-22bb4910fe29')
2025-04-30 08:27:39,915 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:39,926 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:39,929 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 08:27:39,933 - sqlalchemy.engine.Engine - INFO - [generated in 0.00390s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 27, 39, 929079), '87cc8fbd-ac89-4667-a79a-22bb4910fe29')
2025-04-30 08:27:39,936 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:39,947 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 08:27:39,950 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:39,958 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 08:27:39,959 - sqlalchemy.engine.Engine - INFO - [generated in 0.00155s] ('496ca9d1-4f71-49eb-848c-07f8eb9f4047', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '87cc8fbd-ac89-4667-a79a-22bb4910fe29', datetime.datetime(2025, 4, 30, 8, 27, 39, 948712), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 8, 27, 39, 958709), datetime.datetime(2025, 4, 30, 8, 27, 39, 958709), 0)
2025-04-30 08:27:39,962 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:39,970 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:39,975 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 08:27:39,977 - sqlalchemy.engine.Engine - INFO - [generated in 0.00176s] ('496ca9d1-4f71-49eb-848c-07f8eb9f4047',)
2025-04-30 08:27:39,982 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 08:27:39,983 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 08:27:39,985 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 08:27:39,988 - sqlalchemy.engine.Engine - INFO - [generated in 0.00282s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 8, 27, 39, 985600), '496ca9d1-4f71-49eb-848c-07f8eb9f4047')
2025-04-30 08:27:39,990 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:39,995 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 08:27:39,996 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 08:27:39,996 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 08:27:39,997 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:40,000 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 08:27:40,009 - sqlalchemy.engine.Engine - INFO - [cached since 0.05117s ago] ('ea13a40e-c765-4fc5-8701-f91e6f312022', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '87cc8fbd-ac89-4667-a79a-22bb4910fe29', datetime.datetime(2025, 4, 30, 8, 27, 39, 996367), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 8, 27, 40, 299), datetime.datetime(2025, 4, 30, 8, 27, 40, 299), 0)
2025-04-30 08:27:40,011 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:40,017 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: ea13a40e-c765-4fc5-8701-f91e6f312022
2025-04-30 08:27:40,017 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:40,022 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 08:27:40,023 - sqlalchemy.engine.Engine - INFO - [cached since 0.04833s ago] ('ea13a40e-c765-4fc5-8701-f91e6f312022',)
2025-04-30 08:27:40,025 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 08:27:40,025 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 08:27:40,025 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 08:27:40,026 - sqlalchemy.engine.Engine - INFO - [cached since 0.04053s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 8, 27, 40, 25611), 'ea13a40e-c765-4fc5-8701-f91e6f312022')
2025-04-30 08:27:40,026 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:40,036 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 08:27:40,037 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:40,038 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 08:27:40,038 - sqlalchemy.engine.Engine - INFO - [generated in 0.00057s] ('0cf3634f-a498-402d-a558-790ff5c6ada4', 3, '{"success": false, "message": "选择执行机器人异常: 1 validation error for ChooseAmrRequest\\npriority\\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '87cc8fbd-ac89-4667-a79a-22bb4910fe29', datetime.datetime(2025, 4, 30, 8, 27, 40, 38533), datetime.datetime(2025, 4, 30, 8, 27, 40, 38533), 0)
2025-04-30 08:27:40,040 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:40,053 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人异常: 1 validation error for ChooseAmrRequest
priority
  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.10/v/int_type
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 759, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 08:27:40,056 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:40,056 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 08:27:40,057 - sqlalchemy.engine.Engine - INFO - [cached since 0.08128s ago] ('ea13a40e-c765-4fc5-8701-f91e6f312022',)
2025-04-30 08:27:40,059 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 08:27:40,060 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 08:27:40,060 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 08:27:40,060 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] (datetime.datetime(2025, 4, 30, 8, 27, 40, 60044), '选择执行机器人异常: 1 validation error for ChooseAmrRequest\npriority\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人异常: 1 validation error for ChooseAmrRequest\npriority\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type', datetime.datetime(2025, 4, 30, 8, 27, 40, 60044), 'ea13a40e-c765-4fc5-8701-f91e6f312022')
2025-04-30 08:27:40,063 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:40,070 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:40,072 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 08:27:40,072 - sqlalchemy.engine.Engine - INFO - [cached since 0.03406s ago] ('916feec8-79cc-4041-9c20-5ed4a551e873', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人异常: 1 validation error for ChooseAmrRequest\\npriority\\n  Input should be a valid integer [type=int ... (7 characters truncated) ... input_value=None, input_type=NoneType]\\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '87cc8fbd-ac89-4667-a79a-22bb4910fe29', datetime.datetime(2025, 4, 30, 8, 27, 40, 72268), datetime.datetime(2025, 4, 30, 8, 27, 40, 72268), 0)
2025-04-30 08:27:40,073 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:40,081 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:40,081 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 08:27:40,081 - sqlalchemy.engine.Engine - INFO - [cached since 0.1062s ago] ('496ca9d1-4f71-49eb-848c-07f8eb9f4047',)
2025-04-30 08:27:40,082 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 08:27:40,082 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 08:27:40,083 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 08:27:40,085 - sqlalchemy.engine.Engine - INFO - [cached since 0.02436s ago] (datetime.datetime(2025, 4, 30, 8, 27, 40, 83962), '子块 1 执行失败: 选择执行机器人异常: 1 validation error for ChooseAmrRequest\npriority\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人异常: 1 validation error for ChooseAmrRequest\npriority\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type', datetime.datetime(2025, 4, 30, 8, 27, 40, 83962), '496ca9d1-4f71-49eb-848c-07f8eb9f4047')
2025-04-30 08:27:40,086 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:40,093 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:27:40,099 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 08:27:40,100 - sqlalchemy.engine.Engine - INFO - [generated in 0.00135s] (datetime.datetime(2025, 4, 30, 8, 27, 40, 92865), '子块 1 执行失败: 选择执行机器人异常: 1 validation error for ChooseAmrRequest\npriority\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type', <TaskStatus.FAILED: 2000>, 166, 1, datetime.datetime(2025, 4, 30, 8, 27, 40, 99873), '87cc8fbd-ac89-4667-a79a-22bb4910fe29')
2025-04-30 08:27:40,103 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:27:40,110 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 87cc8fbd-ac89-4667-a79a-22bb4910fe29, 结果: False
2025-04-30 08:27:40,126 - services.sync_service - INFO - 成功同步任务到系统任务: 87cc8fbd-ac89-4667-a79a-22bb4910fe29
2025-04-30 08:27:40,127 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 87cc8fbd-ac89-4667-a79a-22bb4910fe29
2025-04-30 08:27:40,127 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 87cc8fbd-ac89-4667-a79a-22bb4910fe29
2025-04-30 08:27:40,129 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.2905秒
2025-04-30 08:28:37,008 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:28:37,009 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:28:37,010 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:28:37,010 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:28:37,011 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:28:37,012 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:28:37,012 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:28:37,013 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:28:37,015 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:28:37,016 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:28:37,016 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:28:37,016 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:28:37,019 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:28:37,021 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:28:37,022 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:28:37,023 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:28:37,023 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:28:37,024 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:28:37,025 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:28:37,025 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:28:37,026 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:28:37,026 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:28:37,027 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:28:37,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:28:37,055 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:28:37,056 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:28:37,057 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 28, 37, 55535))
2025-04-30 08:28:37,059 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:28:52,039 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:28:52,039 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:28:52,039 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:28:52,040 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:28:52,040 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:28:52,040 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:29:37,061 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:29:37,062 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:29:37,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:29:37,064 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:29:37,064 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:29:37,065 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:29:37,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:29:37,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:29:37,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:29:37,066 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:29:37,066 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:29:37,066 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:29:37,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:29:37,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:29:37,069 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:29:37,071 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:29:37,071 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:29:37,071 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:29:37,075 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:29:37,075 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:29:37,075 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:29:37,075 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:29:37,077 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:29:37,078 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 29, 37, 69342))
2025-04-30 08:29:37,078 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:29:37,078 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:29:37,081 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:29:37,084 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:29:52,065 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:29:52,065 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:29:52,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:29:52,071 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:29:52,073 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:29:52,075 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:30:37,100 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:30:37,101 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:30:37,101 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:30:37,102 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:30:37,102 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:30:37,102 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:30:37,102 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:30:37,102 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:30:37,102 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:30:37,102 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:30:37,103 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:30:37,103 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 30, 37, 100700))
2025-04-30 08:30:37,104 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:30:37,104 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:30:37,104 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:30:37,104 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:30:37,104 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:30:37,104 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:30:37,105 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:30:37,105 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:30:37,105 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:30:37,106 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:30:37,106 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:30:37,106 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:30:37,106 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:30:37,106 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:30:37,106 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:30:37,114 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:30:52,112 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:30:52,113 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:30:52,113 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:30:52,113 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:30:52,113 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:30:52,113 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:31:37,118 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:31:37,120 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:31:37,120 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 31, 37, 117533))
2025-04-30 08:31:37,123 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:31:37,148 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:31:37,150 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:31:37,151 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:31:37,151 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:31:37,151 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:31:37,152 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:31:37,152 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:31:37,152 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:31:37,153 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:31:37,153 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:31:37,153 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:31:37,153 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:31:37,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:31:37,156 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:31:37,156 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:31:37,158 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:31:37,159 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:31:37,159 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:31:37,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:31:37,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:31:37,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:31:37,159 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:31:37,159 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:31:37,164 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:31:52,154 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:31:52,156 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:31:52,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:31:52,160 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:31:52,161 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:31:52,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:32:37,121 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:32:37,121 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:32:37,122 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 32, 37, 120089))
2025-04-30 08:32:37,123 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:32:37,185 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:32:37,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:32:37,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:32:37,190 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:32:37,190 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:32:37,190 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:32:37,190 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:32:37,190 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:32:37,191 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:32:37,191 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:32:37,191 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:32:37,191 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:32:37,191 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:32:37,192 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:32:37,192 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:32:37,192 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:32:37,192 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:32:37,193 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:32:37,193 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:32:37,193 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:32:37,193 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:32:37,193 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:32:37,193 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:32:37,197 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:32:52,206 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:32:52,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:32:52,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:32:52,207 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:32:52,208 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:32:52,208 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:33:24,885 - app - INFO - 应用程序关闭中...
2025-04-30 08:33:24,885 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 08:33:24,885 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 08:33:24,886 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 08:33:24,886 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 08:33:24,886 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 08:33:24,886 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 08:33:24,886 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 08:33:24,886 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 08:33:24,893 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 08:33:24,893 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 08:33:24,894 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:33:24,894 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:33:24,896 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:33:24,898 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:33:24,899 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:33:24,901 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-30 08:33:24,901 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:33:24,901 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:33:24,902 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-30 08:33:24,902 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:33:24,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:33:24,903 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-30 08:33:24,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:33:24,904 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:33:24,904 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-30 08:33:24,904 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 08:33:24,905 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 08:33:24,905 - app - INFO - 增强版任务调度器已停止
2025-04-30 08:33:24,906 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 08:33:24,907 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 08:33:24,908 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 08:33:24,908 - data.session - INFO - 数据库连接已关闭
2025-04-30 08:33:27,280 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 08:33:27,335 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 08:33:27,339 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 08:33:28,015 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 08:33:28,087 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 08:33:28,088 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 08:33:28,156 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 08:33:28,207 - data.session - INFO - 正在初始化数据库...
2025-04-30 08:33:28,250 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 08:33:28,269 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 08:33:28,269 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:33:28,269 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 08:33:28,270 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:33:28,270 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 08:33:28,270 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:33:28,271 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:33:28,271 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 08:33:28,271 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:33:28,272 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 08:33:28,272 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:33:28,275 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 08:33:28,275 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:33:28,277 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 08:33:28,278 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:33:28,280 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 08:33:28,280 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:33:28,281 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 08:33:28,281 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:33:28,283 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 08:33:28,283 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:33:28,283 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 08:33:28,284 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:33:28,285 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 08:33:28,285 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:33:28,286 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 08:33:28,286 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:33:28,287 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 08:33:28,287 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:33:28,288 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:33:28,288 - data.session - INFO - 数据库表初始化完成
2025-04-30 08:33:28,647 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 08:33:28,648 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 08:33:28,648 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 08:33:28,648 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 08:33:28,649 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 08:33:28,649 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 08:33:28,650 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 08:33:28,650 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 08:33:28,650 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 08:33:28,650 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 08:33:28,650 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:33:28,650 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 08:33:28,650 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 08:33:28,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:33:28,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:33:28,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:33:28,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:33:28,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:33:28,652 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 08:33:28,652 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 08:33:28,654 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 08:33:28,655 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 08:33:28,655 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:33:28,655 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 08:33:28,655 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:33:28,655 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 08:33:28,655 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:33:28,656 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:33:28,666 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 08:33:28,667 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 08:33:28,668 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 08:33:28,668 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:33:28,668 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 08:33:28,670 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 08:33:28,670 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 08:33:28,672 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:33:28,673 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 08:33:28,673 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 08:33:28,674 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:33:28,678 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 08:33:28,679 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 08:33:28,680 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 08:33:28,680 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 08:33:28,680 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 08:33:28,680 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:33:28,682 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:33:28,682 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 33, 28, 670267))
2025-04-30 08:33:28,683 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:33:30,740 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 08:33:30,742 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:33:30,744 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 08:33:30,744 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 08:33:30,745 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:33:30,746 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:33:30,746 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 08:33:30,746 - sqlalchemy.engine.Engine - INFO - [cached since 0.002788s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 08:33:30,747 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:33:30,748 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 08:33:30,748 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 08:33:30,748 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 08:33:30,749 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:33:30,749 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 08:33:30,749 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (None, datetime.datetime(2025, 4, 30, 8, 33, 30, 749547), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 08:33:30,750 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:33:30,756 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:33:30,756 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 08:33:30,757 - sqlalchemy.engine.Engine - INFO - [cached since 0.01317s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 08:33:30,759 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 08:33:30,759 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] ('bea207a5-666c-46bd-9ca7-f800cbbb8428', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 8, 33, 30, 748546), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.4", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 8, 33, 30, 758631), datetime.datetime(2025, 4, 30, 8, 33, 30, 758631), 0)
2025-04-30 08:33:30,760 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:33:30,767 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:33:30,768 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 08:33:30,769 - sqlalchemy.engine.Engine - INFO - [generated in 0.00137s] ('bea207a5-666c-46bd-9ca7-f800cbbb8428',)
2025-04-30 08:33:30,771 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:33:30,772 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 bea207a5-666c-46bd-9ca7-f800cbbb8428 (优先级 1) 添加到队列 0
2025-04-30 08:33:30,780 - services.sync_service - INFO - 正在同步创建任务到天风系统: bea207a5-666c-46bd-9ca7-f800cbbb8428
2025-04-30 08:33:30,780 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"bea207a5-666c-46bd-9ca7-f800cbbb8428","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 08:33:30","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 08:33:30,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: bea207a5-666c-46bd-9ca7-f800cbbb8428, 优先级: 1
2025-04-30 08:33:30,825 - services.execution.task_executor - DEBUG - 任务 bea207a5-666c-46bd-9ca7-f800cbbb8428 设置超时时间: 3600秒
2025-04-30 08:33:30,825 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:33:30,827 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 08:33:30,828 - sqlalchemy.engine.Engine - INFO - [cached since 0.06005s ago] ('bea207a5-666c-46bd-9ca7-f800cbbb8428',)
2025-04-30 08:33:30,829 - services.sync_service - INFO - 成功同步任务到系统任务: bea207a5-666c-46bd-9ca7-f800cbbb8428
2025-04-30 08:33:30,829 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: bea207a5-666c-46bd-9ca7-f800cbbb8428
2025-04-30 08:33:30,830 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: bea207a5-666c-46bd-9ca7-f800cbbb8428
2025-04-30 08:33:30,830 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 08:33:30,831 - sqlalchemy.engine.Engine - INFO - [cached since 0.08739s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 08:33:30,831 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0907秒
2025-04-30 08:33:30,833 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 08:33:30,833 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] (datetime.datetime(2025, 4, 30, 8, 33, 30, 832718), datetime.datetime(2025, 4, 30, 8, 33, 30, 833722), 'bea207a5-666c-46bd-9ca7-f800cbbb8428')
2025-04-30 08:33:30,834 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:33:30,843 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:33:30,844 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 08:33:30,844 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 33, 30, 843250), 'bea207a5-666c-46bd-9ca7-f800cbbb8428')
2025-04-30 08:33:30,844 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:33:30,857 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 08:33:30,858 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:33:30,859 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 08:33:30,860 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] ('39b18a14-b002-43fb-a3ce-2e7860132388', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'bea207a5-666c-46bd-9ca7-f800cbbb8428', datetime.datetime(2025, 4, 30, 8, 33, 30, 857536), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 8, 33, 30, 859751), datetime.datetime(2025, 4, 30, 8, 33, 30, 859751), 0)
2025-04-30 08:33:30,862 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:33:30,869 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:33:30,872 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 08:33:30,872 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] ('39b18a14-b002-43fb-a3ce-2e7860132388',)
2025-04-30 08:33:30,873 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 08:33:30,875 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 08:33:30,877 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 08:33:30,878 - sqlalchemy.engine.Engine - INFO - [generated in 0.00092s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 8, 33, 30, 877755), '39b18a14-b002-43fb-a3ce-2e7860132388')
2025-04-30 08:33:30,880 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:33:30,888 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 08:33:30,889 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 08:33:30,889 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 08:33:30,890 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:33:30,892 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 08:33:30,892 - sqlalchemy.engine.Engine - INFO - [cached since 0.033s ago] ('29f76b96-cfda-44c6-906a-902aa91720a1', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'bea207a5-666c-46bd-9ca7-f800cbbb8428', datetime.datetime(2025, 4, 30, 8, 33, 30, 890756), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 8, 33, 30, 892756), datetime.datetime(2025, 4, 30, 8, 33, 30, 892756), 0)
2025-04-30 08:33:30,894 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:33:30,902 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 29f76b96-cfda-44c6-906a-902aa91720a1
2025-04-30 08:33:30,902 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:33:30,903 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 08:33:30,903 - sqlalchemy.engine.Engine - INFO - [cached since 0.03204s ago] ('29f76b96-cfda-44c6-906a-902aa91720a1',)
2025-04-30 08:33:30,904 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 08:33:30,905 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 08:33:30,905 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 08:33:30,905 - sqlalchemy.engine.Engine - INFO - [cached since 0.02873s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 8, 33, 30, 905844), '29f76b96-cfda-44c6-906a-902aa91720a1')
2025-04-30 08:33:30,906 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:33:30,914 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 08:33:30,916 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:33:30,917 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 08:33:30,917 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] ('c6bf7083-606c-4f85-bb16-90c896cb6819', 3, '{"success": false, "message": "选择执行机器人异常: 1 validation error for ChooseAmrRequest\\npriority\\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'bea207a5-666c-46bd-9ca7-f800cbbb8428', datetime.datetime(2025, 4, 30, 8, 33, 30, 917030), datetime.datetime(2025, 4, 30, 8, 33, 30, 917030), 0)
2025-04-30 08:33:30,919 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:33:30,927 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人异常: 1 validation error for ChooseAmrRequest
priority
  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.10/v/int_type
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 759, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 08:33:30,928 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:33:30,928 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 08:33:30,929 - sqlalchemy.engine.Engine - INFO - [cached since 0.05783s ago] ('29f76b96-cfda-44c6-906a-902aa91720a1',)
2025-04-30 08:33:30,931 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 08:33:30,931 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 08:33:30,932 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 08:33:30,932 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (datetime.datetime(2025, 4, 30, 8, 33, 30, 931458), '选择执行机器人异常: 1 validation error for ChooseAmrRequest\npriority\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人异常: 1 validation error for ChooseAmrRequest\npriority\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type', datetime.datetime(2025, 4, 30, 8, 33, 30, 932544), '29f76b96-cfda-44c6-906a-902aa91720a1')
2025-04-30 08:33:30,934 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:33:30,941 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:33:30,942 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 08:33:30,944 - sqlalchemy.engine.Engine - INFO - [cached since 0.02697s ago] ('3f1f066d-03f5-4b3f-b1ac-5d254739b48b', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人异常: 1 validation error for ChooseAmrRequest\\npriority\\n  Input should be a valid integer [type=int ... (7 characters truncated) ... input_value=None, input_type=NoneType]\\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'bea207a5-666c-46bd-9ca7-f800cbbb8428', datetime.datetime(2025, 4, 30, 8, 33, 30, 942180), datetime.datetime(2025, 4, 30, 8, 33, 30, 942180), 0)
2025-04-30 08:33:30,947 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:33:30,952 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:33:30,953 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 08:33:30,955 - sqlalchemy.engine.Engine - INFO - [cached since 0.08363s ago] ('39b18a14-b002-43fb-a3ce-2e7860132388',)
2025-04-30 08:33:30,957 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 08:33:30,959 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 08:33:30,959 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 08:33:30,960 - sqlalchemy.engine.Engine - INFO - [cached since 0.02884s ago] (datetime.datetime(2025, 4, 30, 8, 33, 30, 959891), '子块 1 执行失败: 选择执行机器人异常: 1 validation error for ChooseAmrRequest\npriority\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人异常: 1 validation error for ChooseAmrRequest\npriority\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type', datetime.datetime(2025, 4, 30, 8, 33, 30, 959891), '39b18a14-b002-43fb-a3ce-2e7860132388')
2025-04-30 08:33:30,964 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:33:30,974 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:33:30,975 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 08:33:30,976 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (datetime.datetime(2025, 4, 30, 8, 33, 30, 972127), '子块 1 执行失败: 选择执行机器人异常: 1 validation error for ChooseAmrRequest\npriority\n  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.10/v/int_type', <TaskStatus.FAILED: 2000>, 129, 1, datetime.datetime(2025, 4, 30, 8, 33, 30, 975239), 'bea207a5-666c-46bd-9ca7-f800cbbb8428')
2025-04-30 08:33:30,978 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:33:30,987 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: bea207a5-666c-46bd-9ca7-f800cbbb8428, 结果: False
2025-04-30 08:34:28,686 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:34:28,688 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:34:28,688 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:34:28,689 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:34:28,690 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:34:28,690 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:34:28,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:34:28,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:34:28,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:34:28,690 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:34:28,690 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:34:28,690 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:34:28,691 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:34:28,691 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:34:28,691 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 34, 28, 689268))
2025-04-30 08:34:28,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:34:28,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:34:28,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:34:28,693 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:34:28,693 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:34:28,693 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:34:28,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:34:28,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:34:28,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:34:28,694 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:34:28,694 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:34:28,696 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:34:28,706 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:34:28,878 - app - INFO - 应用程序关闭中...
2025-04-30 08:34:28,878 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 08:34:28,878 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 08:34:28,878 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 08:34:28,880 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 08:34:28,880 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 08:34:28,880 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 08:34:28,880 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 08:34:28,880 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 08:34:28,880 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 08:34:28,881 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 08:34:28,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:34:28,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:34:28,881 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:34:28,882 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:34:28,882 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:34:28,882 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 08:34:28,882 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:34:28,882 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:34:28,882 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 08:34:28,883 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:34:28,883 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:34:28,883 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 08:34:28,883 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:34:28,883 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:34:28,883 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 08:34:28,883 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 08:34:28,883 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 08:34:28,884 - app - INFO - 增强版任务调度器已停止
2025-04-30 08:34:28,884 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 08:34:28,884 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 08:34:28,884 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 08:34:28,884 - data.session - INFO - 数据库连接已关闭
2025-04-30 08:34:29,970 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 08:34:30,038 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 08:34:30,040 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 08:34:30,098 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 08:34:30,145 - data.session - INFO - 正在初始化数据库...
2025-04-30 08:34:30,172 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 08:34:30,199 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 08:34:30,199 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:30,199 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 08:34:30,199 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:30,200 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 08:34:30,201 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:30,201 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:34:30,201 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 08:34:30,201 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:30,202 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 08:34:30,202 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:30,203 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 08:34:30,203 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:30,205 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 08:34:30,205 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:30,206 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 08:34:30,206 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:30,207 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 08:34:30,207 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:30,208 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 08:34:30,208 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:30,212 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 08:34:30,212 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:30,216 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 08:34:30,216 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:30,217 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 08:34:30,217 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:30,218 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 08:34:30,219 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:30,221 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:34:30,221 - data.session - INFO - 数据库表初始化完成
2025-04-30 08:34:30,594 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 08:34:30,595 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 08:34:30,595 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 08:34:30,596 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 08:34:30,596 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 08:34:30,596 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 08:34:30,597 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 08:34:30,597 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 08:34:30,598 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 08:34:30,598 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 08:34:30,598 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:34:30,598 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 08:34:30,598 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 08:34:30,600 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:34:30,600 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:34:30,600 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:34:30,600 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:34:30,600 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:34:30,601 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 08:34:30,601 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 08:34:30,601 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 08:34:30,602 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 08:34:30,602 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:34:30,602 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 08:34:30,603 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:34:30,603 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 08:34:30,603 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:34:30,604 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:34:30,612 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 08:34:30,614 - sqlalchemy.engine.Engine - INFO - [generated in 0.00158s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 08:34:30,615 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 08:34:30,615 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:34:30,616 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 08:34:30,617 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 08:34:30,617 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 08:34:30,618 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:34:30,619 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 08:34:30,620 - sqlalchemy.engine.Engine - INFO - [generated in 0.00076s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 08:34:30,633 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:34:30,633 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 08:34:30,634 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 08:34:30,634 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 08:34:30,634 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 08:34:30,635 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 08:34:30,635 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:34:30,638 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:34:30,638 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 34, 30, 617459))
2025-04-30 08:34:30,639 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:34:36,501 - app - INFO - 应用程序关闭中...
2025-04-30 08:34:36,501 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 08:34:36,501 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 08:34:36,501 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 08:34:36,501 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 08:34:36,501 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 08:34:36,501 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 08:34:36,501 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 08:34:36,503 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 08:34:36,503 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 08:34:36,503 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 08:34:36,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:34:36,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:34:36,503 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:34:36,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:34:36,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:34:36,505 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 08:34:36,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:34:36,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:34:36,505 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 08:34:36,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:34:36,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:34:36,505 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 08:34:36,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:34:36,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:34:36,505 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 08:34:36,505 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 08:34:36,505 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 08:34:36,505 - app - INFO - 增强版任务调度器已停止
2025-04-30 08:34:36,506 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 08:34:36,506 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 08:34:36,506 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 08:34:36,506 - data.session - INFO - 数据库连接已关闭
2025-04-30 08:34:38,117 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 08:34:38,172 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 08:34:38,173 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 08:34:38,863 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 08:34:38,924 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 08:34:38,924 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 08:34:38,989 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 08:34:39,044 - data.session - INFO - 正在初始化数据库...
2025-04-30 08:34:39,089 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 08:34:39,106 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 08:34:39,107 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:39,110 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 08:34:39,110 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:39,111 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 08:34:39,111 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:39,111 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:34:39,113 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 08:34:39,114 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:39,115 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 08:34:39,115 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:39,117 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 08:34:39,117 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:39,118 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 08:34:39,119 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:39,120 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 08:34:39,121 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:39,122 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 08:34:39,122 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:39,123 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 08:34:39,123 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:39,124 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 08:34:39,124 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:39,126 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 08:34:39,126 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:39,127 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 08:34:39,127 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:39,128 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 08:34:39,129 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:34:39,130 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:34:39,130 - data.session - INFO - 数据库表初始化完成
2025-04-30 08:34:39,493 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 08:34:39,494 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 08:34:39,494 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 08:34:39,494 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 08:34:39,495 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 08:34:39,495 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 08:34:39,495 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 08:34:39,495 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 08:34:39,496 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 08:34:39,496 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 08:34:39,496 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:34:39,496 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 08:34:39,496 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 08:34:39,498 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:34:39,498 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:34:39,498 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:34:39,498 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:34:39,498 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:34:39,498 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 08:34:39,499 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 08:34:39,513 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 08:34:39,514 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 08:34:39,514 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:34:39,515 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 08:34:39,516 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:34:39,516 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 08:34:39,516 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:34:39,517 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:34:39,526 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 08:34:39,527 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 08:34:39,528 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 08:34:39,528 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:34:39,529 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 08:34:39,529 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 08:34:39,530 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 08:34:39,531 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:34:39,533 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 08:34:39,536 - sqlalchemy.engine.Engine - INFO - [generated in 0.00261s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 08:34:39,538 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:34:39,542 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 08:34:39,542 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 08:34:39,544 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 08:34:39,545 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 08:34:39,551 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 08:34:39,552 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:34:39,555 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:34:39,559 - sqlalchemy.engine.Engine - INFO - [generated in 0.00373s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 34, 39, 530975))
2025-04-30 08:34:39,563 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:34:59,601 - app - INFO - 请求开始: POST /api/vwed-task-edit/save 来自 127.0.0.1
2025-04-30 08:34:59,603 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:34:59,604 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 08:34:59,605 - sqlalchemy.engine.Engine - INFO - [generated in 0.00069s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 08:34:59,607 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:34:59,608 - app - INFO - 请求完成: POST /api/vwed-task-edit/save 状态码: 200 耗时: 0.0070秒
2025-04-30 08:35:08,534 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 08:35:08,537 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:35:08,537 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 08:35:08,537 - sqlalchemy.engine.Engine - INFO - [cached since 8.933s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 08:35:08,538 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:35:08,539 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:35:08,540 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 08:35:08,540 - sqlalchemy.engine.Engine - INFO - [cached since 8.936s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 08:35:08,541 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:35:08,541 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 08:35:08,542 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 08:35:08,542 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 08:35:08,542 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:35:08,543 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 08:35:08,544 - sqlalchemy.engine.Engine - INFO - [generated in 0.00129s] (None, datetime.datetime(2025, 4, 30, 8, 35, 8, 543612), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 08:35:08,551 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:35:08,557 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:35:08,557 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 08:35:08,557 - sqlalchemy.engine.Engine - INFO - [cached since 8.953s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 08:35:08,559 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 08:35:08,561 - sqlalchemy.engine.Engine - INFO - [generated in 0.00140s] ('10018a3c-d408-40f3-924b-92429661251e', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 8, 35, 8, 541620), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.4", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 8, 35, 8, 559613), datetime.datetime(2025, 4, 30, 8, 35, 8, 559613), 0)
2025-04-30 08:35:08,566 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:35:08,574 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:35:08,575 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 08:35:08,576 - sqlalchemy.engine.Engine - INFO - [generated in 0.00171s] ('10018a3c-d408-40f3-924b-92429661251e',)
2025-04-30 08:35:08,579 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:35:08,581 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 10018a3c-d408-40f3-924b-92429661251e (优先级 1) 添加到队列 0
2025-04-30 08:35:08,584 - services.sync_service - INFO - 正在同步创建任务到天风系统: 10018a3c-d408-40f3-924b-92429661251e
2025-04-30 08:35:08,587 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"10018a3c-d408-40f3-924b-92429661251e","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 08:35:08","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 08:35:08,615 - services.sync_service - INFO - 成功同步任务到系统任务: 10018a3c-d408-40f3-924b-92429661251e
2025-04-30 08:35:08,617 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 10018a3c-d408-40f3-924b-92429661251e
2025-04-30 08:35:08,618 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 10018a3c-d408-40f3-924b-92429661251e
2025-04-30 08:35:08,620 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0864秒
2025-04-30 08:35:08,684 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: 10018a3c-d408-40f3-924b-92429661251e, 优先级: 1
2025-04-30 08:35:08,684 - services.execution.task_executor - DEBUG - 任务 10018a3c-d408-40f3-924b-92429661251e 设置超时时间: 3600秒
2025-04-30 08:35:08,685 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:35:08,687 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 08:35:08,689 - sqlalchemy.engine.Engine - INFO - [cached since 0.1152s ago] ('10018a3c-d408-40f3-924b-92429661251e',)
2025-04-30 08:35:08,692 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 08:35:08,693 - sqlalchemy.engine.Engine - INFO - [cached since 9.089s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 08:35:08,697 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 08:35:08,698 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (datetime.datetime(2025, 4, 30, 8, 35, 8, 696973), datetime.datetime(2025, 4, 30, 8, 35, 8, 697972), '10018a3c-d408-40f3-924b-92429661251e')
2025-04-30 08:35:08,700 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:35:08,706 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:35:08,707 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 08:35:08,712 - sqlalchemy.engine.Engine - INFO - [generated in 0.00423s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 35, 8, 707974), '10018a3c-d408-40f3-924b-92429661251e')
2025-04-30 08:35:08,713 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:35:08,725 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 08:35:08,727 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:35:08,729 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 08:35:08,734 - sqlalchemy.engine.Engine - INFO - [generated in 0.00412s] ('bd955189-1f8d-4504-a9cc-7a2827440fcb', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '10018a3c-d408-40f3-924b-92429661251e', datetime.datetime(2025, 4, 30, 8, 35, 8, 727056), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 8, 35, 8, 729966), datetime.datetime(2025, 4, 30, 8, 35, 8, 729966), 0)
2025-04-30 08:35:08,736 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:35:08,741 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:35:08,744 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 08:35:08,746 - sqlalchemy.engine.Engine - INFO - [generated in 0.00201s] ('bd955189-1f8d-4504-a9cc-7a2827440fcb',)
2025-04-30 08:35:08,749 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 08:35:08,751 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 08:35:08,752 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 08:35:08,755 - sqlalchemy.engine.Engine - INFO - [generated in 0.00244s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 8, 35, 8, 752090), 'bd955189-1f8d-4504-a9cc-7a2827440fcb')
2025-04-30 08:35:08,758 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:35:08,764 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 08:35:08,765 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 08:35:08,766 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 08:35:08,766 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:35:08,767 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 08:35:08,772 - sqlalchemy.engine.Engine - INFO - [cached since 0.04166s ago] ('38dcc574-5cb3-493c-8044-cbc1d8dfe02e', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '10018a3c-d408-40f3-924b-92429661251e', datetime.datetime(2025, 4, 30, 8, 35, 8, 766056), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 8, 35, 8, 767966), datetime.datetime(2025, 4, 30, 8, 35, 8, 767966), 0)
2025-04-30 08:35:08,774 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:35:08,780 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 38dcc574-5cb3-493c-8044-cbc1d8dfe02e
2025-04-30 08:35:08,781 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:35:08,781 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 08:35:08,782 - sqlalchemy.engine.Engine - INFO - [cached since 0.03799s ago] ('38dcc574-5cb3-493c-8044-cbc1d8dfe02e',)
2025-04-30 08:35:08,783 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 08:35:08,783 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 08:35:08,783 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 08:35:08,785 - sqlalchemy.engine.Engine - INFO - [cached since 0.03302s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 8, 35, 8, 783984), '38dcc574-5cb3-493c-8044-cbc1d8dfe02e')
2025-04-30 08:35:08,786 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:35:08,795 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 08:35:08,800 - services.sync_service - INFO - 正在创建选择AMR任务: 10018a3c-d408-40f3-924b-92429661251e, 站点: TK01
2025-04-30 08:35:08,912 - services.sync_service - WARNING - 为任务选择AMR失败: 执行数据库异常,违反了完整性例如：违反惟一约束、违反非空限制、字段内容超出长度等
2025-04-30 08:35:08,918 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:35:08,919 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 08:35:08,922 - sqlalchemy.engine.Engine - INFO - [generated in 0.00257s] ('790c170c-3eab-4054-9ab9-791a5af0ea0f', 3, '{"success": false, "message": "选择执行机器人失败: 执行数据库异常,违反了完整性例如：违反惟一约束、违反非空限制、字段内容超出长度等", "code": 500, "result": null, "timestamp": 1745973308202}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '10018a3c-d408-40f3-924b-92429661251e', datetime.datetime(2025, 4, 30, 8, 35, 8, 919557), datetime.datetime(2025, 4, 30, 8, 35, 8, 919557), 0)
2025-04-30 08:35:08,924 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:35:08,936 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人失败: 执行数据库异常,违反了完整性例如：违反惟一约束、违反非空限制、字段内容超出长度等
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 759, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 08:35:08,940 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:35:08,941 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 08:35:08,941 - sqlalchemy.engine.Engine - INFO - [cached since 0.1983s ago] ('38dcc574-5cb3-493c-8044-cbc1d8dfe02e',)
2025-04-30 08:35:08,942 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 08:35:08,943 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 08:35:08,946 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 08:35:08,946 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (datetime.datetime(2025, 4, 30, 8, 35, 8, 945704), '选择执行机器人失败: 执行数据库异常,违反了完整性例如：违反惟一约束、违反非空限制、字段内容超出长度等', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人失败: 执行数据库异常,违反了完整性例如：违反惟一约束、违反非空限制、字段内容超出长度等', datetime.datetime(2025, 4, 30, 8, 35, 8, 946669), '38dcc574-5cb3-493c-8044-cbc1d8dfe02e')
2025-04-30 08:35:08,947 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:35:08,954 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:35:08,955 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 08:35:08,955 - sqlalchemy.engine.Engine - INFO - [cached since 0.03588s ago] ('46ce6016-3319-4f72-8488-3ba8bed9fddf', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人失败: 执行数据库异常,违反了完整性例如：违反惟一约束、违反非空限制、字段内容超出长度等", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '10018a3c-d408-40f3-924b-92429661251e', datetime.datetime(2025, 4, 30, 8, 35, 8, 955667), datetime.datetime(2025, 4, 30, 8, 35, 8, 955667), 0)
2025-04-30 08:35:08,956 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:35:08,963 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:35:08,968 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 08:35:08,969 - sqlalchemy.engine.Engine - INFO - [cached since 0.2256s ago] ('bd955189-1f8d-4504-a9cc-7a2827440fcb',)
2025-04-30 08:35:08,969 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 08:35:08,970 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 08:35:08,972 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 08:35:08,974 - sqlalchemy.engine.Engine - INFO - [cached since 0.02826s ago] (datetime.datetime(2025, 4, 30, 8, 35, 8, 972745), '子块 1 执行失败: 选择执行机器人失败: 执行数据库异常,违反了完整性例如：违反惟一约束、违反非空限制、字段内容超出长度等', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人失败: 执行数据库异常,违反了完整性例如：违反惟一约束、违反非空限制、字段内容超出长度等', datetime.datetime(2025, 4, 30, 8, 35, 8, 972745), 'bd955189-1f8d-4504-a9cc-7a2827440fcb')
2025-04-30 08:35:08,975 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:35:08,983 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:35:08,984 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 08:35:08,984 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (datetime.datetime(2025, 4, 30, 8, 35, 8, 983669), '子块 1 执行失败: 选择执行机器人失败: 执行数据库异常,违反了完整性例如：违反惟一约束、违反非空限制、字段内容超出长度等', <TaskStatus.FAILED: 2000>, 277, 1, datetime.datetime(2025, 4, 30, 8, 35, 8, 984674), '10018a3c-d408-40f3-924b-92429661251e')
2025-04-30 08:35:08,985 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:35:08,992 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 完成任务: 10018a3c-d408-40f3-924b-92429661251e, 结果: False
2025-04-30 08:35:39,573 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:35:39,574 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:35:39,576 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 35, 39, 573354))
2025-04-30 08:35:39,579 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:35:54,481 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:35:54,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:35:54,482 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:35:54,482 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:35:54,482 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:35:54,482 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:35:54,482 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:35:54,483 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:35:54,483 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:35:54,483 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:35:54,483 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:35:54,483 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:35:54,483 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:35:54,483 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:35:54,483 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:35:54,483 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:35:54,483 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:35:54,483 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:35:54,483 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:35:54,483 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:35:54,483 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:35:54,483 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:35:54,483 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:35:54,492 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:36:09,501 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:36:09,502 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:36:09,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:36:09,503 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:36:09,504 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:36:09,506 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:36:37,676 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 08:36:37,678 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:36:37,679 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 08:36:37,680 - sqlalchemy.engine.Engine - INFO - [cached since 98.08s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 08:36:37,684 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:36:37,688 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:36:37,689 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 08:36:37,693 - sqlalchemy.engine.Engine - INFO - [cached since 98.09s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 08:36:37,695 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:36:37,696 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 08:36:37,696 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 08:36:37,696 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 08:36:37,697 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:36:37,701 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 08:36:37,702 - sqlalchemy.engine.Engine - INFO - [cached since 89.16s ago] (None, datetime.datetime(2025, 4, 30, 8, 36, 37, 701654), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 08:36:37,703 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:36:37,718 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:36:37,721 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 08:36:37,721 - sqlalchemy.engine.Engine - INFO - [cached since 98.12s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 08:36:37,724 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 08:36:37,727 - sqlalchemy.engine.Engine - INFO - [cached since 89.17s ago] ('5ce20794-2b45-4031-8de0-9df922f91bd1', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 8, 36, 37, 696449), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.4", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 8, 36, 37, 724059), datetime.datetime(2025, 4, 30, 8, 36, 37, 724059), 0)
2025-04-30 08:36:37,728 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:36:37,738 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:36:37,739 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 08:36:37,739 - sqlalchemy.engine.Engine - INFO - [cached since 89.17s ago] ('5ce20794-2b45-4031-8de0-9df922f91bd1',)
2025-04-30 08:36:37,743 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:36:37,744 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 5ce20794-2b45-4031-8de0-9df922f91bd1 (优先级 1) 添加到队列 0
2025-04-30 08:36:37,744 - services.sync_service - INFO - 正在同步创建任务到天风系统: 5ce20794-2b45-4031-8de0-9df922f91bd1
2025-04-30 08:36:37,744 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"5ce20794-2b45-4031-8de0-9df922f91bd1","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 08:36:37","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 08:36:37,789 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 5ce20794-2b45-4031-8de0-9df922f91bd1, 优先级: 1
2025-04-30 08:36:37,789 - services.execution.task_executor - DEBUG - 任务 5ce20794-2b45-4031-8de0-9df922f91bd1 设置超时时间: 3600秒
2025-04-30 08:36:37,791 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:36:37,791 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 08:36:37,793 - sqlalchemy.engine.Engine - INFO - [cached since 89.22s ago] ('5ce20794-2b45-4031-8de0-9df922f91bd1',)
2025-04-30 08:36:37,794 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 08:36:37,794 - sqlalchemy.engine.Engine - INFO - [cached since 98.19s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 08:36:37,795 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 08:36:37,798 - sqlalchemy.engine.Engine - INFO - [cached since 89.1s ago] (datetime.datetime(2025, 4, 30, 8, 36, 37, 795056), datetime.datetime(2025, 4, 30, 8, 36, 37, 795056), '5ce20794-2b45-4031-8de0-9df922f91bd1')
2025-04-30 08:36:37,803 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:36:37,809 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:36:37,809 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 08:36:37,811 - sqlalchemy.engine.Engine - INFO - [cached since 89.1s ago] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 36, 37, 809972), '5ce20794-2b45-4031-8de0-9df922f91bd1')
2025-04-30 08:36:37,811 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:36:37,817 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 08:36:37,818 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:36:37,819 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 08:36:37,820 - sqlalchemy.engine.Engine - INFO - [cached since 89.09s ago] ('ca2b310f-809d-4b07-970e-83412581080c', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '5ce20794-2b45-4031-8de0-9df922f91bd1', datetime.datetime(2025, 4, 30, 8, 36, 37, 818439), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 8, 36, 37, 819433), datetime.datetime(2025, 4, 30, 8, 36, 37, 819433), 0)
2025-04-30 08:36:37,822 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:36:37,833 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:36:37,835 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 08:36:37,836 - sqlalchemy.engine.Engine - INFO - [cached since 89.09s ago] ('ca2b310f-809d-4b07-970e-83412581080c',)
2025-04-30 08:36:37,838 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 08:36:37,839 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 08:36:37,839 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 08:36:37,839 - sqlalchemy.engine.Engine - INFO - [cached since 89.09s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 8, 36, 37, 839013), 'ca2b310f-809d-4b07-970e-83412581080c')
2025-04-30 08:36:37,840 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:36:37,844 - services.sync_service - INFO - 成功同步任务到系统任务: 5ce20794-2b45-4031-8de0-9df922f91bd1
2025-04-30 08:36:37,845 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 5ce20794-2b45-4031-8de0-9df922f91bd1
2025-04-30 08:36:37,845 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 5ce20794-2b45-4031-8de0-9df922f91bd1
2025-04-30 08:36:37,845 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1689秒
2025-04-30 08:36:37,846 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 08:36:37,846 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 08:36:37,847 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 08:36:37,847 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:36:37,848 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 08:36:37,848 - sqlalchemy.engine.Engine - INFO - [cached since 89.12s ago] ('00b7dc0d-7c23-4dce-ae95-3618f2cad202', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '5ce20794-2b45-4031-8de0-9df922f91bd1', datetime.datetime(2025, 4, 30, 8, 36, 37, 847431), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 8, 36, 37, 848425), datetime.datetime(2025, 4, 30, 8, 36, 37, 848425), 0)
2025-04-30 08:36:37,849 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:36:37,855 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 00b7dc0d-7c23-4dce-ae95-3618f2cad202
2025-04-30 08:36:37,855 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:36:37,856 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 08:36:37,856 - sqlalchemy.engine.Engine - INFO - [cached since 89.11s ago] ('00b7dc0d-7c23-4dce-ae95-3618f2cad202',)
2025-04-30 08:36:37,857 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 08:36:37,857 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 08:36:37,857 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 08:36:37,858 - sqlalchemy.engine.Engine - INFO - [cached since 89.11s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 8, 36, 37, 857434), '00b7dc0d-7c23-4dce-ae95-3618f2cad202')
2025-04-30 08:36:37,859 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:36:37,865 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 08:36:37,866 - services.sync_service - INFO - 正在创建选择AMR任务: 5ce20794-2b45-4031-8de0-9df922f91bd1, 站点: TK01
2025-04-30 08:36:37,928 - services.sync_service - WARNING - 为任务选择AMR失败: 执行数据库异常,违反了完整性例如：违反惟一约束、违反非空限制、字段内容超出长度等
2025-04-30 08:36:37,932 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:36:37,933 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 08:36:37,936 - sqlalchemy.engine.Engine - INFO - [cached since 89.02s ago] ('8ea3c732-93cc-487a-92ca-6da8bb98e92e', 3, '{"success": false, "message": "选择执行机器人失败: 执行数据库异常,违反了完整性例如：违反惟一约束、违反非空限制、字段内容超出长度等", "code": 500, "result": null, "timestamp": 1745973397223}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '5ce20794-2b45-4031-8de0-9df922f91bd1', datetime.datetime(2025, 4, 30, 8, 36, 37, 933433), datetime.datetime(2025, 4, 30, 8, 36, 37, 933433), 0)
2025-04-30 08:36:37,940 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:36:37,953 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人失败: 执行数据库异常,违反了完整性例如：违反惟一约束、违反非空限制、字段内容超出长度等
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 759, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 08:36:37,955 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:36:37,955 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 08:36:37,956 - sqlalchemy.engine.Engine - INFO - [cached since 89.21s ago] ('00b7dc0d-7c23-4dce-ae95-3618f2cad202',)
2025-04-30 08:36:37,958 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 08:36:37,958 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 08:36:37,959 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 08:36:37,961 - sqlalchemy.engine.Engine - INFO - [cached since 89.01s ago] (datetime.datetime(2025, 4, 30, 8, 36, 37, 959064), '选择执行机器人失败: 执行数据库异常,违反了完整性例如：违反惟一约束、违反非空限制、字段内容超出长度等', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人失败: 执行数据库异常,违反了完整性例如：违反惟一约束、违反非空限制、字段内容超出长度等', datetime.datetime(2025, 4, 30, 8, 36, 37, 959064), '00b7dc0d-7c23-4dce-ae95-3618f2cad202')
2025-04-30 08:36:37,962 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:36:37,970 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:36:37,971 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 08:36:37,972 - sqlalchemy.engine.Engine - INFO - [cached since 89.05s ago] ('be3d055c-5ad0-4865-8f2c-9e22a681df61', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人失败: 执行数据库异常,违反了完整性例如：违反惟一约束、违反非空限制、字段内容超出长度等", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '5ce20794-2b45-4031-8de0-9df922f91bd1', datetime.datetime(2025, 4, 30, 8, 36, 37, 971463), datetime.datetime(2025, 4, 30, 8, 36, 37, 971463), 0)
2025-04-30 08:36:37,975 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:36:37,982 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:36:37,984 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 08:36:37,988 - sqlalchemy.engine.Engine - INFO - [cached since 89.24s ago] ('ca2b310f-809d-4b07-970e-83412581080c',)
2025-04-30 08:36:37,990 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 08:36:37,991 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 08:36:37,992 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 08:36:37,993 - sqlalchemy.engine.Engine - INFO - [cached since 89.05s ago] (datetime.datetime(2025, 4, 30, 8, 36, 37, 991395), '子块 1 执行失败: 选择执行机器人失败: 执行数据库异常,违反了完整性例如：违反惟一约束、违反非空限制、字段内容超出长度等', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人失败: 执行数据库异常,违反了完整性例如：违反惟一约束、违反非空限制、字段内容超出长度等', datetime.datetime(2025, 4, 30, 8, 36, 37, 991395), 'ca2b310f-809d-4b07-970e-83412581080c')
2025-04-30 08:36:37,996 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:36:38,002 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:36:38,002 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 08:36:38,003 - sqlalchemy.engine.Engine - INFO - [cached since 89.02s ago] (datetime.datetime(2025, 4, 30, 8, 36, 38, 2419), '子块 1 执行失败: 选择执行机器人失败: 执行数据库异常,违反了完整性例如：违反惟一约束、违反非空限制、字段内容超出长度等', <TaskStatus.FAILED: 2000>, 192, 1, datetime.datetime(2025, 4, 30, 8, 36, 38, 2419), '5ce20794-2b45-4031-8de0-9df922f91bd1')
2025-04-30 08:36:38,003 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:36:38,009 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 5ce20794-2b45-4031-8de0-9df922f91bd1, 结果: False
2025-04-30 08:36:39,586 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:36:39,588 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:36:39,593 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 36, 39, 585104))
2025-04-30 08:36:39,599 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:36:54,503 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:36:54,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:36:54,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:36:54,503 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:36:54,503 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:36:54,504 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:36:54,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:36:54,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:36:54,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:36:54,504 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:36:54,505 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:36:54,505 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:36:54,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:36:54,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:36:54,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:36:54,505 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:36:54,505 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:36:54,511 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:37:09,512 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:37:09,513 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:37:09,515 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:37:09,516 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:37:09,520 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:37:09,522 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:37:39,533 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:37:39,535 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:37:39,536 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:37:39,536 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:37:39,537 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:37:39,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:37:39,611 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:37:39,611 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:37:39,613 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 37, 39, 611671))
2025-04-30 08:37:39,614 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:37:54,538 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:37:54,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:37:54,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:37:54,540 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:37:54,540 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:37:54,540 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:37:54,540 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:37:54,540 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:37:54,540 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:37:54,541 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:37:54,541 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:37:54,541 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:37:54,542 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:37:54,542 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:37:54,542 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:37:54,542 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:37:54,542 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:37:54,547 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:38:09,553 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:38:09,553 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:38:09,553 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:38:09,554 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:38:09,554 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:38:09,555 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:38:39,578 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:38:39,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:38:39,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:38:39,578 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:38:39,578 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:38:39,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:38:39,628 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:38:39,628 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:38:39,628 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 38, 39, 626356))
2025-04-30 08:38:39,628 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:38:39,738 - app - INFO - 应用程序关闭中...
2025-04-30 08:38:39,738 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 08:38:39,738 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 08:38:39,738 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 08:38:39,738 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 08:38:39,738 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 08:38:39,740 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 08:38:39,740 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 08:38:39,740 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 08:38:39,740 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 08:38:39,740 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 08:38:39,742 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:38:39,743 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:38:39,744 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:38:39,746 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:38:39,750 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:38:39,750 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-30 08:38:39,752 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:38:39,752 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:38:39,753 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-30 08:38:39,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:38:39,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:38:39,755 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-30 08:38:39,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:38:39,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:38:39,755 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-30 08:38:39,755 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 08:38:39,755 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 08:38:39,755 - app - INFO - 增强版任务调度器已停止
2025-04-30 08:38:39,755 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 08:38:39,761 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 08:38:39,761 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 08:38:39,761 - data.session - INFO - 数据库连接已关闭
2025-04-30 08:38:41,108 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 08:38:41,173 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 08:38:41,173 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 08:38:41,229 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 08:38:41,277 - data.session - INFO - 正在初始化数据库...
2025-04-30 08:38:41,307 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 08:38:41,330 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 08:38:41,330 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:38:41,330 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 08:38:41,330 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:38:41,330 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 08:38:41,330 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:38:41,346 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:38:41,346 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 08:38:41,346 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:38:41,346 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 08:38:41,346 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:38:41,346 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 08:38:41,362 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:38:41,362 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 08:38:41,362 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:38:41,362 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 08:38:41,378 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:38:41,378 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 08:38:41,378 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:38:41,385 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 08:38:41,389 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:38:41,391 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 08:38:41,394 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:38:41,394 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 08:38:41,394 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:38:41,394 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 08:38:41,394 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:38:41,394 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 08:38:41,410 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 08:38:41,410 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:38:41,410 - data.session - INFO - 数据库表初始化完成
2025-04-30 08:38:41,755 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 08:38:41,755 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 08:38:41,755 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 08:38:41,755 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 08:38:41,755 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 08:38:41,755 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 08:38:41,755 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 08:38:41,755 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 08:38:41,755 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 08:38:41,771 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 08:38:41,773 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:38:41,773 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 08:38:41,775 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 08:38:41,775 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:38:41,775 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:38:41,775 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:38:41,775 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:38:41,775 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:38:41,775 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 08:38:41,775 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 08:38:41,775 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 08:38:41,775 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 08:38:41,789 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:38:41,792 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 08:38:41,792 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:38:41,792 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 08:38:41,792 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 08:38:41,792 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:38:41,803 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 08:38:41,803 - sqlalchemy.engine.Engine - INFO - [generated in 0.00070s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 08:38:41,803 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 08:38:41,803 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:38:41,803 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 08:38:41,803 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 08:38:41,803 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 08:38:41,803 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:38:41,803 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 08:38:41,803 - sqlalchemy.engine.Engine - INFO - [generated in 0.00244s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 08:38:41,835 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:38:41,835 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 08:38:41,835 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 08:38:41,835 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 08:38:41,835 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 08:38:41,835 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 08:38:41,835 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:38:41,835 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:38:41,835 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 38, 41, 803590))
2025-04-30 08:38:41,835 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:39:41,790 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:39:41,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:39:41,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:39:41,790 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:39:41,790 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:39:41,790 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:39:41,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:39:41,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:39:41,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:39:41,790 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:39:41,790 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:39:41,790 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:39:41,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:39:41,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:39:41,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:39:41,790 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:39:41,790 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:39:41,790 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:39:41,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:39:41,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:39:41,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:39:41,790 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:39:41,790 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:39:41,790 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:39:41,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:39:41,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:39:41,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:39:41,790 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:39:41,790 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:39:41,806 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:39:41,838 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:39:41,838 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:39:41,838 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 39, 41, 838144))
2025-04-30 08:39:41,838 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:40:41,812 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:40:41,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:40:41,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:40:41,812 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:40:41,812 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:40:41,812 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:40:41,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:40:41,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:40:41,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:40:41,812 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:40:41,812 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:40:41,812 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:40:41,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:40:41,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:40:41,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:40:41,812 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:40:41,812 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:40:41,812 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:40:41,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:40:41,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:40:41,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:40:41,812 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:40:41,812 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:40:41,812 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:40:41,812 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:40:41,828 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:40:41,828 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:40:41,828 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:40:41,828 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:40:41,828 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:40:41,860 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:40:41,860 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:40:41,860 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 40, 41, 860149))
2025-04-30 08:40:41,871 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:41:41,855 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:41:41,857 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:41:41,857 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 41, 41, 855180))
2025-04-30 08:41:41,857 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:41:41,903 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:41:41,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:41:41,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:41:41,903 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:41:41,903 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:41:41,903 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:41:41,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:41:41,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:41:41,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:41:41,903 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:41:41,903 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:41:41,919 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:41:41,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:41:41,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:41:41,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:41:41,919 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:41:41,919 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:41:41,919 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:41:41,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:41:41,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:41:41,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:41:41,919 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:41:41,919 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:41:41,919 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:41:41,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:41:41,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:41:41,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:41:41,936 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:41:41,936 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:41:41,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:42:41,861 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:42:41,862 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:42:41,863 - sqlalchemy.engine.Engine - INFO - [cached since 240s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 42, 41, 859765))
2025-04-30 08:42:41,865 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:42:41,973 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:42:41,973 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:42:41,973 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:42:41,973 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:42:41,973 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:42:41,973 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:42:41,973 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:42:41,973 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:42:41,973 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:42:41,973 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:42:41,973 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:42:41,973 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:42:41,973 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:42:41,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:42:41,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:42:41,989 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:42:41,989 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:42:41,989 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:42:41,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:42:41,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:42:41,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:42:41,989 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:42:41,989 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:42:41,989 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:42:41,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:42:41,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:42:41,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:42:41,989 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:42:41,989 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:42:42,005 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:43:41,873 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:43:41,873 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:43:41,874 - sqlalchemy.engine.Engine - INFO - [cached since 300s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 43, 41, 872162))
2025-04-30 08:43:41,876 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:43:42,020 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:43:42,022 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:43:42,022 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:43:42,022 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:43:42,022 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:43:42,022 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:43:42,023 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:43:42,023 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:43:42,023 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:43:42,023 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:43:42,023 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:43:42,023 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:43:42,023 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:43:42,023 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:43:42,023 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:43:42,023 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:43:42,025 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:43:42,025 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:43:42,025 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:43:42,025 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:43:42,026 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:43:42,026 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:43:42,026 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:43:42,026 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:43:42,026 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:43:42,026 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:43:42,026 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:43:42,026 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:43:42,026 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:43:42,036 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:44:41,881 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:44:41,883 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:44:41,885 - sqlalchemy.engine.Engine - INFO - [cached since 360s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 44, 41, 880710))
2025-04-30 08:44:41,888 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:44:42,053 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:44:42,054 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:44:42,054 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:44:42,055 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:44:42,055 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:44:42,057 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:44:42,057 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:44:42,057 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:44:42,057 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:44:42,057 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:44:42,057 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:44:42,057 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:44:42,059 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:44:42,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:44:42,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:44:42,060 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:44:42,060 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:44:42,060 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:44:42,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:44:42,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:44:42,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:44:42,061 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:44:42,061 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:44:42,061 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:44:42,061 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:44:42,061 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:44:42,061 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:44:42,061 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:44:42,061 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:44:42,068 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:45:41,883 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:45:41,883 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:45:41,884 - sqlalchemy.engine.Engine - INFO - [cached since 420s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 45, 41, 882294))
2025-04-30 08:45:41,885 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:45:42,103 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:45:42,103 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:45:42,103 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:45:42,103 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:45:42,105 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:45:42,105 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:45:42,105 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:45:42,106 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:45:42,106 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:45:42,106 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:45:42,106 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:45:42,106 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:45:42,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:45:42,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:45:42,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:45:42,108 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:45:42,108 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:45:42,108 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:45:42,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:45:42,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:45:42,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:45:42,109 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:45:42,109 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:45:42,109 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:45:42,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:45:42,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:45:42,109 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:45:42,110 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:45:42,110 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:45:42,114 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:46:41,881 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:46:41,884 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:46:41,886 - sqlalchemy.engine.Engine - INFO - [cached since 480s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 46, 41, 880611))
2025-04-30 08:46:41,892 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:46:42,145 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:46:42,150 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:46:42,151 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:46:42,152 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:46:42,152 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:46:42,152 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:46:42,153 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:46:42,153 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:46:42,154 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:46:42,154 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:46:42,154 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:46:42,154 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:46:42,154 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:46:42,154 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:46:42,154 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:46:42,154 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:46:42,155 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:46:42,155 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:46:42,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:46:42,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:46:42,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:46:42,155 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:46:42,155 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:46:42,155 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:46:42,155 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:46:42,156 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:46:42,156 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:46:42,156 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:46:42,156 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:46:42,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:47:41,894 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:47:41,896 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:47:41,896 - sqlalchemy.engine.Engine - INFO - [cached since 540.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 47, 41, 893895))
2025-04-30 08:47:41,898 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:47:42,189 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:47:42,192 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:47:42,194 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:47:42,194 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:47:42,194 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:47:42,194 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:47:42,195 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:47:42,195 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:47:42,195 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:47:42,197 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:47:42,197 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:47:42,197 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:47:42,197 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:47:42,197 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:47:42,197 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:47:42,198 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:47:42,198 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:47:42,198 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:47:42,198 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:47:42,198 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:47:42,198 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:47:42,198 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:47:42,198 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:47:42,199 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:47:42,199 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:47:42,199 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:47:42,201 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:47:42,201 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:47:42,201 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:47:42,206 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:48:41,918 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:48:41,919 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:48:41,920 - sqlalchemy.engine.Engine - INFO - [cached since 600.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 48, 41, 916308))
2025-04-30 08:48:41,923 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:48:42,276 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:48:42,278 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:48:42,278 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:48:42,279 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:48:42,279 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:48:42,279 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:48:42,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:48:42,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:48:42,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:48:42,280 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:48:42,280 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:48:42,280 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:48:42,281 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:48:42,281 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:48:42,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:48:42,283 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:48:42,283 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:48:42,283 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:48:42,285 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:48:42,285 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:48:42,285 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:48:42,285 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:48:42,286 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:48:42,286 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:48:42,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:48:42,287 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:48:42,288 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:48:42,289 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:48:42,289 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:48:42,295 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:49:41,937 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:49:41,943 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:49:41,948 - sqlalchemy.engine.Engine - INFO - [cached since 660.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 49, 41, 936208))
2025-04-30 08:49:41,951 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:49:42,312 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:49:42,319 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:49:42,319 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:49:42,319 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:49:42,319 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:49:42,319 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:49:42,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:49:42,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:49:42,322 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:49:42,322 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:49:42,322 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:49:42,323 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:49:42,324 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:49:42,324 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:49:42,324 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:49:42,324 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:49:42,324 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:49:42,324 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:49:42,324 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:49:42,324 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:49:42,325 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:49:42,325 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:49:42,325 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:49:42,325 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:49:42,325 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:49:42,325 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:49:42,325 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:49:42,327 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:49:42,327 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:49:42,333 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:50:41,957 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:50:41,959 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:50:41,960 - sqlalchemy.engine.Engine - INFO - [cached since 720.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 50, 41, 956164))
2025-04-30 08:50:41,963 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:50:42,346 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:50:42,347 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:50:42,348 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:50:42,348 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:50:42,348 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:50:42,349 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:50:42,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:50:42,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:50:42,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:50:42,350 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:50:42,350 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:50:42,350 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:50:42,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:50:42,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:50:42,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:50:42,350 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:50:42,350 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:50:42,350 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:50:42,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:50:42,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:50:42,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:50:42,351 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:50:42,351 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:50:42,351 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:50:42,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:50:42,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:50:42,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:50:42,351 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:50:42,351 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:50:42,355 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:51:41,967 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:51:41,968 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:51:41,970 - sqlalchemy.engine.Engine - INFO - [cached since 780.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 51, 41, 967012))
2025-04-30 08:51:41,973 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:51:42,399 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:51:42,401 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:51:42,404 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:51:42,405 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:51:42,407 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:51:42,409 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:51:42,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:51:42,413 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:51:42,413 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:51:42,414 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:51:42,414 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:51:42,414 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:51:42,416 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:51:42,416 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:51:42,417 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:51:42,418 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:51:42,420 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:51:42,422 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:51:42,426 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:51:42,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:51:42,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:51:42,428 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:51:42,430 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:51:42,430 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:51:42,431 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:51:42,431 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:51:42,431 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:51:42,431 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:51:42,431 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:51:42,436 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:52:41,984 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:52:41,984 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:52:41,986 - sqlalchemy.engine.Engine - INFO - [cached since 840.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 52, 41, 983168))
2025-04-30 08:52:41,989 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:52:42,480 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:52:42,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:52:42,483 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:52:42,484 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:52:42,485 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:52:42,485 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:52:42,486 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:52:42,486 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:52:42,486 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:52:42,486 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:52:42,486 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:52:42,487 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:52:42,487 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:52:42,487 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:52:42,487 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:52:42,487 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:52:42,487 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:52:42,487 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:52:42,488 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:52:42,488 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:52:42,488 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:52:42,488 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:52:42,488 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:52:42,489 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:52:42,489 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:52:42,490 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:52:42,490 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:52:42,490 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:52:42,491 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:52:42,495 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:53:42,012 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:53:42,014 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:53:42,018 - sqlalchemy.engine.Engine - INFO - [cached since 900.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 53, 42, 11103))
2025-04-30 08:53:42,020 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:53:42,528 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:53:42,530 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:53:42,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:53:42,532 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:53:42,532 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:53:42,532 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:53:42,533 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:53:42,534 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:53:42,534 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:53:42,534 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:53:42,535 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:53:42,535 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:53:42,535 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:53:42,536 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:53:42,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:53:42,537 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:53:42,537 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:53:42,537 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:53:42,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:53:42,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:53:42,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:53:42,538 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:53:42,538 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:53:42,538 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:53:42,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:53:42,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:53:42,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:53:42,538 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:53:42,538 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:53:42,544 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:54:42,030 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:54:42,030 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:54:42,036 - sqlalchemy.engine.Engine - INFO - [cached since 960.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 54, 42, 29544))
2025-04-30 08:54:42,037 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:54:42,592 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:54:42,594 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:54:42,594 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:54:42,595 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:54:42,595 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:54:42,595 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:54:42,595 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:54:42,596 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:54:42,596 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:54:42,596 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:54:42,596 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:54:42,596 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:54:42,596 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:54:42,596 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:54:42,596 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:54:42,596 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:54:42,596 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:54:42,598 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:54:42,598 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:54:42,598 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:54:42,598 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:54:42,598 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:54:42,599 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:54:42,599 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:54:42,600 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:54:42,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:54:42,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:54:42,601 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:54:42,601 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:54:42,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:55:42,031 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:55:42,033 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:55:42,033 - sqlalchemy.engine.Engine - INFO - [cached since 1020s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 55, 42, 30124))
2025-04-30 08:55:42,036 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:55:42,622 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:55:42,623 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:55:42,623 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:55:42,623 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:55:42,623 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:55:42,623 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:55:42,624 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:55:42,624 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:55:42,624 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:55:42,624 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:55:42,624 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:55:42,624 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:55:42,624 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:55:42,625 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:55:42,625 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:55:42,625 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:55:42,625 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:55:42,626 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:55:42,627 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:55:42,628 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:55:42,629 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:55:42,629 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:55:42,630 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:55:42,630 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:55:42,632 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:55:42,633 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:55:42,633 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:55:42,634 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:55:42,637 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:55:42,642 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:56:42,046 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:56:42,059 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:56:42,065 - sqlalchemy.engine.Engine - INFO - [cached since 1080s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 56, 42, 45232))
2025-04-30 08:56:42,066 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:56:42,665 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:56:42,674 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:56:42,677 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:56:42,682 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:56:42,686 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:56:42,690 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:56:42,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:56:42,699 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:56:42,701 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:56:42,703 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:56:42,704 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:56:42,708 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:56:42,717 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:56:42,719 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:56:42,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:56:42,723 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:56:42,723 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:56:42,725 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:56:42,726 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:56:42,726 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:56:42,726 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:56:42,726 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:56:42,726 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:56:42,726 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:56:42,726 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:56:42,726 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:56:42,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:56:42,727 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:56:42,727 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:56:42,731 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:57:42,071 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:57:42,073 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:57:42,073 - sqlalchemy.engine.Engine - INFO - [cached since 1140s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 57, 42, 70192))
2025-04-30 08:57:42,076 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:57:42,742 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:57:42,743 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:57:42,743 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:57:42,746 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:57:42,749 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:57:42,749 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:57:42,751 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:57:42,753 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:57:42,754 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:57:42,754 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:57:42,755 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:57:42,755 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:57:42,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:57:42,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:57:42,759 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:57:42,759 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:57:42,759 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:57:42,760 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:57:42,762 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:57:42,762 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:57:42,763 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:57:42,764 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:57:42,767 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:57:42,768 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:57:42,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:57:42,774 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:57:42,774 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:57:42,774 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:57:42,775 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:57:42,780 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:58:42,075 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:58:42,076 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:58:42,077 - sqlalchemy.engine.Engine - INFO - [cached since 1200s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 58, 42, 73771))
2025-04-30 08:58:42,080 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:58:42,795 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:58:42,796 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:58:42,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:58:42,800 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:58:42,802 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:58:42,805 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:58:42,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:58:42,810 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:58:42,811 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:58:42,811 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:58:42,814 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:58:42,815 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:58:42,816 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:58:42,816 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:58:42,816 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:58:42,816 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:58:42,816 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:58:42,816 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:58:42,816 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:58:42,816 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:58:42,816 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:58:42,816 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:58:42,816 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:58:42,816 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:58:42,816 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:58:42,817 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:58:42,817 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:58:42,817 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:58:42,817 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:58:42,822 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 08:59:42,087 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 08:59:42,087 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 08:59:42,090 - sqlalchemy.engine.Engine - INFO - [cached since 1260s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 7, 59, 42, 85081))
2025-04-30 08:59:42,093 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 08:59:42,864 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 08:59:42,868 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 08:59:42,870 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 08:59:42,872 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 08:59:42,874 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 08:59:42,875 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 08:59:42,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 08:59:42,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 08:59:42,883 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 08:59:42,887 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 08:59:42,888 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 08:59:42,888 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 08:59:42,888 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 08:59:42,888 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 08:59:42,889 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 08:59:42,889 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 08:59:42,889 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 08:59:42,889 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 08:59:42,889 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 08:59:42,889 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 08:59:42,889 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 08:59:42,889 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 08:59:42,889 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 08:59:42,889 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 08:59:42,889 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 08:59:42,889 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 08:59:42,889 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 08:59:42,889 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 08:59:42,890 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 08:59:42,893 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:00:42,081 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:00:42,085 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:00:42,085 - sqlalchemy.engine.Engine - INFO - [cached since 1320s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 0, 42, 81364))
2025-04-30 09:00:42,087 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:00:42,936 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:00:42,938 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:00:42,938 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:00:42,938 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:00:42,938 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:00:42,938 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:00:42,938 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:00:42,939 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:00:42,939 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:00:42,939 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:00:42,939 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:00:42,939 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:00:42,939 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:00:42,939 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:00:42,940 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:00:42,940 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:00:42,941 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:00:42,941 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:00:42,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:00:42,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:00:42,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:00:42,942 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:00:42,942 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:00:42,942 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:00:42,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:00:42,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:00:42,942 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:00:42,942 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:00:42,942 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:00:42,947 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:01:42,100 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:01:42,102 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:01:42,104 - sqlalchemy.engine.Engine - INFO - [cached since 1380s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 1, 42, 99370))
2025-04-30 09:01:42,107 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:01:42,968 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:01:42,969 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:01:42,969 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:01:42,970 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:01:42,970 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:01:42,971 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:01:42,972 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:01:42,973 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:01:42,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:01:42,977 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:01:42,978 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:01:42,979 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:01:42,983 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:01:42,984 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:01:42,984 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:01:42,986 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:01:42,992 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:01:42,993 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:01:42,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:01:42,997 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:01:42,999 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:01:43,000 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:01:43,001 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:01:43,001 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:01:43,003 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:01:43,003 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:01:43,005 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:01:43,006 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:01:43,008 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:01:43,014 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:02:42,119 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:02:42,123 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:02:42,124 - sqlalchemy.engine.Engine - INFO - [cached since 1440s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 2, 42, 118263))
2025-04-30 09:02:42,128 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:02:43,039 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:02:43,041 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:02:43,043 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:02:43,044 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:02:43,047 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:02:43,048 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:02:43,050 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:02:43,052 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:02:43,054 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:02:43,055 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:02:43,056 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:02:43,056 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:02:43,058 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:02:43,060 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:02:43,062 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:02:43,063 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:02:43,064 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:02:43,068 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:02:43,071 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:02:43,072 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:02:43,072 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:02:43,074 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:02:43,076 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:02:43,078 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:02:43,079 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:02:43,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:02:43,082 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:02:43,084 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:02:43,086 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:02:43,093 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:03:42,142 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:03:42,144 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:03:42,145 - sqlalchemy.engine.Engine - INFO - [cached since 1500s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 3, 42, 141267))
2025-04-30 09:03:42,148 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:03:43,119 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:03:43,122 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:03:43,122 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:03:43,125 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:03:43,125 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:03:43,126 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:03:43,126 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:03:43,127 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:03:43,127 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:03:43,130 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:03:43,131 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:03:43,131 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:03:43,131 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:03:43,131 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:03:43,132 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:03:43,132 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:03:43,132 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:03:43,132 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:03:43,132 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:03:43,132 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:03:43,132 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:03:43,132 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:03:43,132 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:03:43,133 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:03:43,133 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:03:43,133 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:03:43,133 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:03:43,133 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:03:43,133 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:03:43,139 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:04:42,153 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:04:42,158 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:04:42,161 - sqlalchemy.engine.Engine - INFO - [cached since 1560s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 4, 42, 153039))
2025-04-30 09:04:42,167 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:04:43,170 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:04:43,171 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:04:43,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:04:43,174 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:04:43,176 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:04:43,177 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:04:43,183 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:04:43,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:04:43,186 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:04:43,187 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:04:43,187 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:04:43,187 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:04:43,191 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:04:43,193 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:04:43,195 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:04:43,197 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:04:43,199 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:04:43,201 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:04:43,203 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:04:43,205 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:04:43,207 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:04:43,208 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:04:43,210 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:04:43,212 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:04:43,216 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:04:43,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:04:43,218 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:04:43,218 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:04:43,220 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:04:43,228 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:05:42,161 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:05:42,164 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:05:42,164 - sqlalchemy.engine.Engine - INFO - [cached since 1620s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 5, 42, 160948))
2025-04-30 09:05:42,166 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:05:43,235 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:05:43,235 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:05:43,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:05:43,237 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:05:43,237 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:05:43,237 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:05:43,238 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:05:43,238 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:05:43,239 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:05:43,239 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:05:43,240 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:05:43,241 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:05:43,241 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:05:43,241 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:05:43,242 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:05:43,242 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:05:43,242 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:05:43,243 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:05:43,243 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:05:43,243 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:05:43,244 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:05:43,244 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:05:43,244 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:05:43,245 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:05:43,245 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:05:43,245 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:05:43,245 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:05:43,245 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:05:43,246 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:05:43,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:06:42,174 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:06:42,176 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:06:42,177 - sqlalchemy.engine.Engine - INFO - [cached since 1680s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 6, 42, 173254))
2025-04-30 09:06:42,178 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:06:43,296 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:06:43,299 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:06:43,301 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:06:43,301 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:06:43,302 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:06:43,302 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:06:43,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:06:43,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:06:43,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:06:43,305 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:06:43,305 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:06:43,306 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:06:43,306 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:06:43,306 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:06:43,308 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:06:43,308 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:06:43,308 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:06:43,308 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:06:43,308 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:06:43,308 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:06:43,308 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:06:43,308 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:06:43,308 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:06:43,308 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:06:43,309 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:06:43,309 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:06:43,309 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:06:43,309 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:06:43,309 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:06:43,318 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:07:42,176 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:07:42,177 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:07:42,177 - sqlalchemy.engine.Engine - INFO - [cached since 1740s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 7, 42, 174412))
2025-04-30 09:07:42,180 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:07:43,374 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:07:43,375 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:07:43,375 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:07:43,375 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:07:43,375 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:07:43,375 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:07:43,375 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:07:43,375 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:07:43,375 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:07:43,376 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:07:43,376 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:07:43,376 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:07:43,376 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:07:43,376 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:07:43,378 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:07:43,378 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:07:43,378 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:07:43,379 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:07:43,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:07:43,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:07:43,383 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:07:43,384 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:07:43,384 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:07:43,384 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:07:43,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:07:43,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:07:43,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:07:43,384 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:07:43,384 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:07:43,389 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:08:42,179 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:08:42,180 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:08:42,180 - sqlalchemy.engine.Engine - INFO - [cached since 1800s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 8, 42, 179048))
2025-04-30 09:08:42,182 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:08:43,410 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:08:43,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:08:43,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:08:43,413 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:08:43,414 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:08:43,415 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:08:43,420 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:08:43,421 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:08:43,421 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:08:43,422 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:08:43,422 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:08:43,424 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:08:43,425 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:08:43,426 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:08:43,426 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:08:43,426 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:08:43,426 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:08:43,427 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:08:43,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:08:43,428 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:08:43,429 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:08:43,429 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:08:43,429 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:08:43,430 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:08:43,430 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:08:43,430 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:08:43,431 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:08:43,431 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:08:43,431 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:08:43,443 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:09:42,184 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:09:42,187 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:09:42,188 - sqlalchemy.engine.Engine - INFO - [cached since 1860s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 9, 42, 182822))
2025-04-30 09:09:42,191 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:09:43,469 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:09:43,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:09:43,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:09:43,475 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:09:43,476 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:09:43,476 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:09:43,476 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:09:43,477 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:09:43,477 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:09:43,477 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:09:43,477 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:09:43,477 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:09:43,477 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:09:43,477 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:09:43,477 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:09:43,477 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:09:43,477 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:09:43,478 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:09:43,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:09:43,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:09:43,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:09:43,478 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:09:43,478 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:09:43,478 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:09:43,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:09:43,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:09:43,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:09:43,478 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:09:43,478 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:09:43,490 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:10:14,381 - app - INFO - 应用程序关闭中...
2025-04-30 09:10:14,382 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 09:10:14,382 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 09:10:14,382 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 09:10:14,382 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 09:10:14,382 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 09:10:14,382 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 09:10:14,383 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 09:10:14,383 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 09:10:14,383 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 09:10:14,383 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 09:10:14,383 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:10:14,383 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:10:14,383 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:10:14,383 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:10:14,383 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:10:14,383 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 09:10:14,383 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:10:14,383 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:10:14,383 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 09:10:14,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:10:14,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:10:14,384 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 09:10:14,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:10:14,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:10:14,384 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 09:10:14,384 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 09:10:14,384 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 09:10:14,384 - app - INFO - 增强版任务调度器已停止
2025-04-30 09:10:14,384 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 09:10:14,385 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 09:10:14,385 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 09:10:14,385 - data.session - INFO - 数据库连接已关闭
2025-04-30 09:10:16,741 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 09:10:16,803 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 09:10:16,804 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 09:10:17,483 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 09:10:17,538 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 09:10:17,540 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 09:10:17,603 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 09:10:17,650 - data.session - INFO - 正在初始化数据库...
2025-04-30 09:10:17,672 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 09:10:17,698 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 09:10:17,699 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:10:17,700 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 09:10:17,700 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:10:17,700 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 09:10:17,701 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:10:17,701 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:17,702 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 09:10:17,703 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:10:17,704 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 09:10:17,705 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:10:17,706 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 09:10:17,707 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:10:17,708 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 09:10:17,708 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:10:17,710 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 09:10:17,710 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:10:17,711 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 09:10:17,711 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:10:17,712 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 09:10:17,713 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:10:17,714 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 09:10:17,715 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:10:17,716 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 09:10:17,716 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:10:17,717 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 09:10:17,717 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:10:17,719 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 09:10:17,719 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:10:17,720 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:17,720 - data.session - INFO - 数据库表初始化完成
2025-04-30 09:10:18,071 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 09:10:18,072 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 09:10:18,072 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 09:10:18,073 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 09:10:18,073 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 09:10:18,073 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 09:10:18,073 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 09:10:18,073 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 09:10:18,074 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 09:10:18,074 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 09:10:18,074 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:10:18,074 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 09:10:18,075 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 09:10:18,076 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:10:18,076 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:10:18,076 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:10:18,076 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:10:18,076 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:10:18,078 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 09:10:18,078 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 09:10:18,078 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 09:10:18,079 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 09:10:18,079 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 09:10:18,080 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 09:10:18,080 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 09:10:18,080 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 09:10:18,080 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 09:10:18,080 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:18,091 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 09:10:18,091 - sqlalchemy.engine.Engine - INFO - [generated in 0.00087s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 09:10:18,092 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 09:10:18,092 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:18,093 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 09:10:18,094 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 09:10:18,094 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 09:10:18,094 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:18,096 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 09:10:18,096 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 09:10:18,098 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:18,098 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 09:10:18,099 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 09:10:18,099 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 09:10:18,099 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 09:10:18,099 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 09:10:18,100 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:18,100 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:10:18,101 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 10, 18, 94912))
2025-04-30 09:10:18,101 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:28,939 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 09:10:28,942 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:28,943 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 09:10:28,943 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 09:10:28,945 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:28,945 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:28,946 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 09:10:28,946 - sqlalchemy.engine.Engine - INFO - [cached since 0.003145s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 09:10:28,947 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:28,948 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 09:10:28,948 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 09:10:28,948 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 09:10:28,948 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:28,951 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 09:10:28,951 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (None, datetime.datetime(2025, 4, 30, 9, 10, 28, 951658), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 09:10:28,951 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:28,967 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:28,967 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 09:10:28,967 - sqlalchemy.engine.Engine - INFO - [cached since 0.02488s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 09:10:28,970 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 09:10:28,972 - sqlalchemy.engine.Engine - INFO - [generated in 0.00228s] ('0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 9, 10, 28, 948660), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.4", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 9, 10, 28, 970999), datetime.datetime(2025, 4, 30, 9, 10, 28, 970999), 0)
2025-04-30 09:10:28,976 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:28,982 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:28,986 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 09:10:28,987 - sqlalchemy.engine.Engine - INFO - [generated in 0.00135s] ('0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e',)
2025-04-30 09:10:28,992 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:28,996 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e (优先级 1) 添加到队列 0
2025-04-30 09:10:29,003 - services.sync_service - INFO - 正在同步创建任务到天风系统: 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e
2025-04-30 09:10:29,003 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 09:10:29","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 09:10:29,041 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e, 优先级: 1
2025-04-30 09:10:29,041 - services.execution.task_executor - DEBUG - 任务 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e 设置超时时间: 3600秒
2025-04-30 09:10:29,042 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:29,043 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 09:10:29,043 - sqlalchemy.engine.Engine - INFO - [cached since 0.05699s ago] ('0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e',)
2025-04-30 09:10:29,043 - services.sync_service - INFO - 成功同步任务到系统任务: 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e
2025-04-30 09:10:29,044 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e
2025-04-30 09:10:29,045 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e
2025-04-30 09:10:29,045 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 09:10:29,046 - sqlalchemy.engine.Engine - INFO - [cached since 0.1023s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 09:10:29,046 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1065秒
2025-04-30 09:10:29,048 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 09:10:29,048 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (datetime.datetime(2025, 4, 30, 9, 10, 29, 47138), datetime.datetime(2025, 4, 30, 9, 10, 29, 48148), '0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e')
2025-04-30 09:10:29,049 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:29,059 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:29,059 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 09:10:29,059 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 10, 29, 59050), '0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e')
2025-04-30 09:10:29,059 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:29,066 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 09:10:29,067 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:29,069 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 09:10:29,070 - sqlalchemy.engine.Engine - INFO - [generated in 0.00146s] ('cef530ec-8bc1-4805-a860-775b6bda06ef', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e', datetime.datetime(2025, 4, 30, 9, 10, 29, 66304), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 9, 10, 29, 69307), datetime.datetime(2025, 4, 30, 9, 10, 29, 69307), 0)
2025-04-30 09:10:29,071 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:29,079 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:29,080 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 09:10:29,080 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] ('cef530ec-8bc1-4805-a860-775b6bda06ef',)
2025-04-30 09:10:29,082 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 09:10:29,083 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 09:10:29,084 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 09:10:29,085 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 9, 10, 29, 84234), 'cef530ec-8bc1-4805-a860-775b6bda06ef')
2025-04-30 09:10:29,088 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:29,100 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 09:10:29,102 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 09:10:29,102 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 09:10:29,104 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:29,105 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 09:10:29,106 - sqlalchemy.engine.Engine - INFO - [cached since 0.03713s ago] ('a671cac5-79a8-4aaa-aa31-29dc69a805f2', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e', datetime.datetime(2025, 4, 30, 9, 10, 29, 102260), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 9, 10, 29, 105261), datetime.datetime(2025, 4, 30, 9, 10, 29, 105261), 0)
2025-04-30 09:10:29,108 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:29,115 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: a671cac5-79a8-4aaa-aa31-29dc69a805f2
2025-04-30 09:10:29,116 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:29,117 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 09:10:29,117 - sqlalchemy.engine.Engine - INFO - [cached since 0.03676s ago] ('a671cac5-79a8-4aaa-aa31-29dc69a805f2',)
2025-04-30 09:10:29,118 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 09:10:29,119 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 09:10:29,122 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 09:10:29,122 - sqlalchemy.engine.Engine - INFO - [cached since 0.03822s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 9, 10, 29, 122283), 'a671cac5-79a8-4aaa-aa31-29dc69a805f2')
2025-04-30 09:10:29,123 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:29,131 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 09:10:29,131 - services.sync_service - INFO - 正在创建选择AMR任务: 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e, 站点: TK01
2025-04-30 09:10:29,179 - services.sync_service - INFO - 成功为任务选择AMR: 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e, AMR: None
2025-04-30 09:10:29,180 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917386034023387138 的AMR选择结果
2025-04-30 09:10:29,180 - services.sync_service - INFO - 开始等待任务块 1917386034023387138 的AMR选择结果
2025-04-30 09:10:29,180 - services.sync_service - INFO - 正在获取任务块详情: 1917386034023387138
2025-04-30 09:10:29,224 - services.sync_service - INFO - 成功获取任务块详情: 1917386034023387138 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917386034023387138', 'taskId': '1917386033503293442', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 09:10:28', 'updateTime': None}, 'timestamp': 1745975428540}
2025-04-30 09:10:29,225 - services.sync_service - DEBUG - 任务块 1917386034023387138 AMR选择未完成，已尝试 1 次
2025-04-30 09:10:29,742 - services.sync_service - INFO - 正在获取任务块详情: 1917386034023387138
2025-04-30 09:10:29,773 - services.sync_service - INFO - 成功获取任务块详情: 1917386034023387138 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917386034023387138', 'taskId': '1917386033503293442', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 09:10:28', 'updateTime': None}, 'timestamp': 1745975429088}
2025-04-30 09:10:29,774 - services.sync_service - DEBUG - 任务块 1917386034023387138 AMR选择未完成，已尝试 2 次
2025-04-30 09:10:30,053 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:30,055 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 09:10:30,056 - sqlalchemy.engine.Engine - INFO - [generated in 0.00116s] ('0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e',)
2025-04-30 09:10:30,060 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:30,271 - services.sync_service - INFO - 正在获取任务块详情: 1917386034023387138
2025-04-30 09:10:30,307 - services.sync_service - INFO - 成功获取任务块详情: 1917386034023387138 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917386034023387138', 'taskId': '1917386033503293442', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 09:10:28', 'updateTime': None}, 'timestamp': 1745975429605}
2025-04-30 09:10:30,307 - services.sync_service - DEBUG - 任务块 1917386034023387138 AMR选择未完成，已尝试 3 次
2025-04-30 09:10:30,802 - services.sync_service - INFO - 正在获取任务块详情: 1917386034023387138
2025-04-30 09:10:30,826 - services.sync_service - INFO - 成功获取任务块详情: 1917386034023387138 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917386034023387138', 'taskId': '1917386033503293442', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 09:10:28', 'updateTime': None}, 'timestamp': 1745975430143}
2025-04-30 09:10:30,828 - services.sync_service - DEBUG - 任务块 1917386034023387138 AMR选择未完成，已尝试 4 次
2025-04-30 09:10:31,068 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:31,069 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 09:10:31,070 - sqlalchemy.engine.Engine - INFO - [cached since 1.015s ago] ('0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e',)
2025-04-30 09:10:31,071 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:31,332 - services.sync_service - INFO - 正在获取任务块详情: 1917386034023387138
2025-04-30 09:10:31,379 - services.sync_service - INFO - 成功获取任务块详情: 1917386034023387138 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917386034023387138', 'taskId': '1917386033503293442', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 09:10:28', 'updateTime': None}, 'timestamp': 1745975430695}
2025-04-30 09:10:31,380 - services.sync_service - DEBUG - 任务块 1917386034023387138 AMR选择未完成，已尝试 5 次
2025-04-30 09:10:31,892 - services.sync_service - INFO - 正在获取任务块详情: 1917386034023387138
2025-04-30 09:10:31,951 - services.sync_service - INFO - 成功获取任务块详情: 1917386034023387138 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917386034023387138', 'taskId': '1917386033503293442', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 09:10:28', 'updateTime': None}, 'timestamp': 1745975431256}
2025-04-30 09:10:31,953 - services.sync_service - DEBUG - 任务块 1917386034023387138 AMR选择未完成，已尝试 6 次
2025-04-30 09:10:32,094 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:32,099 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 09:10:32,100 - sqlalchemy.engine.Engine - INFO - [cached since 2.045s ago] ('0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e',)
2025-04-30 09:10:32,101 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:32,453 - services.sync_service - INFO - 正在获取任务块详情: 1917386034023387138
2025-04-30 09:10:32,476 - services.sync_service - INFO - 成功获取任务块详情: 1917386034023387138 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917386034023387138', 'taskId': '1917386033503293442', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 09:10:28', 'updateTime': None}, 'timestamp': 1745975431789}
2025-04-30 09:10:32,476 - services.sync_service - DEBUG - 任务块 1917386034023387138 AMR选择未完成，已尝试 7 次
2025-04-30 09:10:33,000 - services.sync_service - INFO - 正在获取任务块详情: 1917386034023387138
2025-04-30 09:10:33,027 - services.sync_service - INFO - 成功获取任务块详情: 1917386034023387138 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917386034023387138', 'taskId': '1917386033503293442', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 09:10:28', 'updateTime': None}, 'timestamp': 1745975432340}
2025-04-30 09:10:33,027 - services.sync_service - DEBUG - 任务块 1917386034023387138 AMR选择未完成，已尝试 8 次
2025-04-30 09:10:33,110 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:33,111 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 09:10:33,114 - sqlalchemy.engine.Engine - INFO - [cached since 3.058s ago] ('0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e',)
2025-04-30 09:10:33,118 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:33,541 - services.sync_service - INFO - 正在获取任务块详情: 1917386034023387138
2025-04-30 09:10:33,590 - services.sync_service - INFO - 成功获取任务块详情: 1917386034023387138 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917386034023387138', 'taskId': '1917386033503293442', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 09:10:28', 'updateTime': None}, 'timestamp': 1745975432889}
2025-04-30 09:10:33,590 - services.sync_service - DEBUG - 任务块 1917386034023387138 AMR选择未完成，已尝试 9 次
2025-04-30 09:10:34,086 - services.sync_service - INFO - 正在获取任务块详情: 1917386034023387138
2025-04-30 09:10:34,118 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:34,118 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 09:10:34,118 - sqlalchemy.engine.Engine - INFO - [cached since 4.064s ago] ('0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e',)
2025-04-30 09:10:34,121 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:34,132 - services.sync_service - INFO - 成功获取任务块详情: 1917386034023387138 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917386034023387138', 'taskId': '1917386033503293442', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 09:10:28', 'updateTime': '2025-04-30 09:10:33'}, 'timestamp': 1745975433450}
2025-04-30 09:10:34,135 - services.sync_service - INFO - 任务块 1917386034023387138 已选择AMR: 1912328602264645634，共尝试 10 次
2025-04-30 09:10:34,135 - services.execution.handlers.robot_scheduling - INFO - 准备更新任务 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e 的机器人ID: 1912328602264645634
2025-04-30 09:10:34,136 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:34,137 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.agv_id 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 09:10:34,137 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] ('0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e',)
2025-04-30 09:10:34,139 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET agv_id=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 09:10:34,140 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('1912328602264645634', datetime.datetime(2025, 4, 30, 9, 10, 34, 139185), '0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e')
2025-04-30 09:10:34,142 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:34,157 - services.execution.handlers.robot_scheduling - INFO - 成功更新任务记录 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e 的agv_id字段: 1912328602264645634
2025-04-30 09:10:34,158 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 09:10:34,158 - services.execution.handlers.robot_scheduling - INFO - 块 b1(ID:1) 有 1 个子块
2025-04-30 09:10:34,158 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: [2]
2025-04-30 09:10:34,158 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 09:10:34,158 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 1 个
2025-04-30 09:10:34,158 - services.execution.handlers.robot_scheduling - INFO - 1. b2(ID:2, 类型:CAgvOperationBp, 关系:direct_child)
2025-04-30 09:10:34,158 - services.execution.handlers.robot_scheduling - INFO - 开始执行选择机器人块 b1 的子块
2025-04-30 09:10:34,158 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-30 09:10:34,158 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 1 个子块
2025-04-30 09:10:34,158 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b2, ID: 2, 类型: CAgvOperationBp
2025-04-30 09:10:34,160 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:34,160 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 09:10:34,161 - sqlalchemy.engine.Engine - INFO - [cached since 5.092s ago] ('a6b36fac-875d-4904-9288-41bbda925b6a', 'b2', '2', '', '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"targetSiteLabel": "PT02", "scriptName": "JackUnload"}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634"}', 'CAgvOperationBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e', datetime.datetime(2025, 4, 30, 9, 10, 34, 158925), <TaskBlockRecordStatus.RUNNING: 1001>, '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634"}', 1, datetime.datetime(2025, 4, 30, 9, 10, 34, 160236), datetime.datetime(2025, 4, 30, 9, 10, 34, 160236), 0)
2025-04-30 09:10:34,161 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:34,168 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: a6b36fac-875d-4904-9288-41bbda925b6a
2025-04-30 09:10:34,169 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:34,169 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 09:10:34,169 - sqlalchemy.engine.Engine - INFO - [cached since 5.089s ago] ('a6b36fac-875d-4904-9288-41bbda925b6a',)
2025-04-30 09:10:34,170 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-30 09:10:34,170 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-30 09:10:34,171 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 09:10:34,171 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] ('{"selectedAgvId": "1912328602264645634"}', '执行中', "{'agv_for_block_2': '1912328602264645634', 'agv_for_b2': '1912328602264645634'}", '{"blocks": {"b2": {"selectedAgvId": "1912328602264645634"}}}', '执行中', datetime.datetime(2025, 4, 30, 9, 10, 34, 171246), 'a6b36fac-875d-4904-9288-41bbda925b6a')
2025-04-30 09:10:34,172 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:34,179 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-30 09:10:34,180 - services.execution.handlers.robot_scheduling - INFO - 找到块 b2(ID:2) 专用的机器人ID: 1912328602264645634
2025-04-30 09:10:34,180 - services.execution.handlers.robot_scheduling - INFO - 执行机器人通用动作，块 b2(ID:2) 使用机器人: 1912328602264645634, 目标站点: PT02
2025-04-30 09:10:34,180 - services.sync_service - INFO - 正在为任务添加动作: 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e, 站点: PT02, 动作: JackUnload
2025-04-30 09:10:34,198 - services.sync_service - WARNING - 为任务添加动作失败: 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e此任务块id不存在
2025-04-30 09:10:34,204 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:34,208 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 09:10:34,211 - sqlalchemy.engine.Engine - INFO - [generated in 0.00255s] ('fa887c55-04ab-40d8-bbf5-76640f24be51', 3, '{"success": false, "message": "机器人通用动作失败: 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e此任务块id不存在", "code": 400, "result": null, "timestamp": 1745975433517}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e', datetime.datetime(2025, 4, 30, 9, 10, 34, 208183), datetime.datetime(2025, 4, 30, 9, 10, 34, 208183), 0)
2025-04-30 09:10:34,213 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:34,225 - services.execution.block_executor - ERROR - 子块 2 执行失败: 机器人通用动作失败: 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e此任务块id不存在
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 759, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 309, in execute_children
    result = await handler.execute(child_block, parsed_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\robot_scheduling.py", line 728, in execute
    loop_result = await executor.execute_children(block, "default")
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 09:10:34,228 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:34,232 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 09:10:34,236 - sqlalchemy.engine.Engine - INFO - [cached since 5.155s ago] ('a6b36fac-875d-4904-9288-41bbda925b6a',)
2025-04-30 09:10:34,241 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-30 09:10:34,242 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-30 09:10:34,243 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 09:10:34,244 - sqlalchemy.engine.Engine - INFO - [generated in 0.00096s] (datetime.datetime(2025, 4, 30, 9, 10, 34, 242063), '机器人通用动作失败: 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e此任务块id不存在', <TaskBlockRecordStatus.FAILED: 2000>, '机器人通用动作失败: 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e此任务块id不存在', datetime.datetime(2025, 4, 30, 9, 10, 34, 243047), 'a6b36fac-875d-4904-9288-41bbda925b6a')
2025-04-30 09:10:34,246 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:34,261 - services.execution.handlers.robot_scheduling - ERROR - 选择机器人块 b1 的子块执行失败: 子块 2 执行失败: 机器人通用动作失败: 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e此任务块id不存在
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 759, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 309, in execute_children
    result = await handler.execute(child_block, parsed_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\robot_scheduling.py", line 753, in execute
    logger.error(f"选择机器人块 {current_block_name} 的子块执行失败: {loop_result.get('message')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 09:10:34,261 - services.sync_service - INFO - 正在封口任务: 1917386034023387138
2025-04-30 09:10:34,291 - services.sync_service - INFO - 成功封口任务: 1917386034023387138
2025-04-30 09:10:34,292 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:34,292 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 09:10:34,293 - sqlalchemy.engine.Engine - INFO - [cached since 0.08507s ago] ('c6b5c5b8-a412-443d-a872-635213395eea', 3, '{"success": false, "message": "选择执行机器人成功，但子块执行失败: 子块 2 执行失败: 机器人通用动作失败: 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e此任务块id不存在，失败块ID: 2", "output": {"selected ... (195 characters truncated) ... "childrenResult": {"success": false, "message": "子块 2 执行失败: 机器人通用动作失败: 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e此任务块id不存在", "block_id": 2, "output": {}}}}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e', datetime.datetime(2025, 4, 30, 9, 10, 34, 292569), datetime.datetime(2025, 4, 30, 9, 10, 34, 292569), 0)
2025-04-30 09:10:34,294 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:34,301 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人成功，但子块执行失败: 子块 2 执行失败: 机器人通用动作失败: 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e此任务块id不存在，失败块ID: 2
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 759, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 09:10:34,302 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:34,302 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 09:10:34,303 - sqlalchemy.engine.Engine - INFO - [cached since 5.223s ago] ('a671cac5-79a8-4aaa-aa31-29dc69a805f2',)
2025-04-30 09:10:34,303 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 09:10:34,304 - services.execution.block_executor - INFO - 为块 b1 存储输出: ['selectedAgvId']
2025-04-30 09:10:34,304 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 09:10:34,305 - sqlalchemy.engine.Engine - INFO - [generated in 0.00059s] ('{"selectedAgvId": "1912328602264645634"}', datetime.datetime(2025, 4, 30, 9, 10, 34, 304720), '选择执行机器人成功，但子块执行失败: 子块 2 执行失败: 机器人通用动作失败: 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e此任务块id不存在，失败块ID: 2', <TaskBlockRecordStatus.FAILED: 2000>, "{'agv_for_block_2': '1912328602264645634', 'agv_for_b2': '1912328602264645634'}", '{"blocks": {"b1": {"selectedAgvId": "1912328602264645634"}}}', '选择执行机器人成功，但子块执行失败: 子块 2 执行失败: 机器人通用动作失败: 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e此任务块id不存在，失败块ID: 2', datetime.datetime(2025, 4, 30, 9, 10, 34, 304720), 'a671cac5-79a8-4aaa-aa31-29dc69a805f2')
2025-04-30 09:10:34,306 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:34,312 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:34,313 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 09:10:34,313 - sqlalchemy.engine.Engine - INFO - [cached since 0.1051s ago] ('1d144031-6600-45af-801c-3ecc00b3d449', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人成功，但子块执行失败: 子块 2 执行失败: 机器人通用动作失败: 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e此任务块id不存在，失败块ID: 2", "block_id ... (221 characters truncated) ... "childrenResult": {"success": false, "message": "子块 2 执行失败: 机器人通用动作失败: 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e此任务块id不存在", "block_id": 2, "output": {}}}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e', datetime.datetime(2025, 4, 30, 9, 10, 34, 313532), datetime.datetime(2025, 4, 30, 9, 10, 34, 313532), 0)
2025-04-30 09:10:34,314 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:34,321 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:34,321 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 09:10:34,322 - sqlalchemy.engine.Engine - INFO - [cached since 5.242s ago] ('cef530ec-8bc1-4805-a860-775b6bda06ef',)
2025-04-30 09:10:34,323 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 09:10:34,323 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 09:10:34,326 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 09:10:34,326 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] (datetime.datetime(2025, 4, 30, 9, 10, 34, 323572), '子块 1 执行失败: 选择执行机器人成功，但子块执行失败: 子块 2 执行失败: 机器人通用动作失败: 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e此任务块id不存在，失败块ID: 2', <TaskBlockRecordStatus.FAILED: 2000>, "{'agv_for_block_2': '1912328602264645634', 'agv_for_b2': '1912328602264645634'}", '子块 1 执行失败: 选择执行机器人成功，但子块执行失败: 子块 2 执行失败: 机器人通用动作失败: 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e此任务块id不存在，失败块ID: 2', datetime.datetime(2025, 4, 30, 9, 10, 34, 326571), 'cef530ec-8bc1-4805-a860-775b6bda06ef')
2025-04-30 09:10:34,328 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:34,338 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:10:34,338 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 09:10:34,339 - sqlalchemy.engine.Engine - INFO - [generated in 0.00053s] (datetime.datetime(2025, 4, 30, 9, 10, 34, 337166), '子块 1 执行失败: 选择执行机器人成功，但子块执行失败: 子块 2 执行失败: 机器人通用动作失败: 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e此任务块id不存在，失败块ID: 2', <TaskStatus.FAILED: 2000>, 5279, 1, datetime.datetime(2025, 4, 30, 9, 10, 34, 338153), '0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e')
2025-04-30 09:10:34,340 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:10:34,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 完成任务: 0a7c26f4-bb07-4046-bf8c-cbc5ce72f71e, 结果: False
2025-04-30 09:11:18,115 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:11:18,116 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:11:18,117 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:11:18,117 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:11:18,117 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:11:18,117 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:11:18,118 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:11:18,118 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:11:18,119 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:11:18,119 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:11:18,121 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:11:18,121 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 11, 18, 114792))
2025-04-30 09:11:18,122 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:11:18,122 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:11:18,122 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:11:18,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:11:18,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:11:18,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:11:18,123 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:11:18,125 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:11:18,125 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:11:18,126 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:11:18,126 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:11:18,126 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:11:18,127 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:11:18,127 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:11:18,127 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:11:18,131 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:11:48,147 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:11:48,149 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:11:48,149 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:11:48,149 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:11:48,150 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:11:48,150 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:12:18,143 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:12:18,145 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:12:18,146 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:12:18,146 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:12:18,146 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:12:18,146 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:12:18,147 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:12:18,147 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:12:18,147 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 12, 18, 143778))
2025-04-30 09:12:18,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:12:18,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:12:18,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:12:18,147 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:12:18,147 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:12:18,149 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:12:18,149 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:12:18,149 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:12:18,149 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:12:18,150 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:12:18,150 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:12:18,150 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:12:18,150 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:12:18,150 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:12:18,150 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:12:18,150 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:12:18,150 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:12:18,150 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:12:18,156 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:13:03,159 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:13:03,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:13:03,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:13:03,159 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:13:03,159 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:13:03,169 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:13:18,158 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:13:18,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:13:18,162 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:13:18,166 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:13:18,167 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:13:18,167 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:13:18,168 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:13:18,168 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:13:18,169 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 13, 18, 157393))
2025-04-30 09:13:18,170 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:13:18,170 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:13:18,171 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:13:18,171 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:13:18,171 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:13:18,171 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:13:18,171 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:13:18,171 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:13:18,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:13:18,173 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:13:18,174 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:13:18,174 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:13:18,174 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:13:18,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:13:18,175 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:13:18,175 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:13:18,175 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:13:18,175 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:13:18,183 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:14:03,209 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:14:03,210 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:14:03,210 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:14:03,210 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:14:03,210 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:14:03,211 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:14:18,199 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:14:18,199 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:14:18,200 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:14:18,203 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:14:18,206 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:14:18,207 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:14:18,209 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:14:18,212 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:14:18,215 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 14, 18, 199087))
2025-04-30 09:14:18,220 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:14:18,224 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:14:18,224 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:14:18,225 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:14:18,227 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:14:18,228 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:14:18,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:14:18,233 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:14:18,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:14:18,236 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:14:18,240 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:14:18,240 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:14:18,242 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:14:18,246 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:14:18,247 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:14:18,249 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:14:18,249 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:14:18,251 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:14:18,258 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:15:03,281 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:15:03,281 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:15:03,281 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:15:03,281 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:15:03,281 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:15:03,281 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:15:18,260 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:15:18,263 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:15:18,264 - sqlalchemy.engine.Engine - INFO - [cached since 300.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 15, 18, 260632))
2025-04-30 09:15:18,267 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:15:18,268 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:15:18,269 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:15:18,270 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:15:18,270 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:15:18,271 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:15:18,271 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:15:18,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:15:18,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:15:18,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:15:18,273 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:15:18,273 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:15:18,274 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:15:18,275 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:15:18,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:15:18,276 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:15:18,277 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:15:18,277 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:15:18,277 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:15:18,278 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:15:18,278 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:15:18,279 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:15:18,279 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:15:18,279 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:15:18,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:16:03,322 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:16:03,322 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:16:03,322 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:16:03,328 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:16:03,328 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:16:03,328 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:16:18,286 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:16:18,286 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:16:18,286 - sqlalchemy.engine.Engine - INFO - [cached since 360.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 16, 18, 286156))
2025-04-30 09:16:18,286 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:16:18,318 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:16:18,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:16:18,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:16:18,320 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:16:18,320 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:16:18,320 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:16:18,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:16:18,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:16:18,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:16:18,320 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:16:18,320 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:16:18,320 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:16:18,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:16:18,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:16:18,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:16:18,326 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:16:18,326 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:16:18,326 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:16:18,326 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:16:18,326 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:16:18,326 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:16:18,326 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:16:18,326 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:16:18,326 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:17:03,341 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:17:03,341 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:17:03,341 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:17:03,341 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:17:03,341 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:17:03,341 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:17:18,286 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:17:18,287 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:17:18,287 - sqlalchemy.engine.Engine - INFO - [cached since 420.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 17, 18, 285628))
2025-04-30 09:17:18,287 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:17:33,326 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:17:33,326 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:17:33,326 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:17:33,326 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:17:33,326 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:17:33,326 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:17:33,326 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:17:33,326 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:17:33,326 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:17:33,326 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:17:33,335 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:17:33,335 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:17:33,335 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:17:33,335 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:17:33,335 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:17:33,335 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:17:33,342 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:17:33,342 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:17:33,342 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:17:33,342 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:17:33,342 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:17:33,342 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:17:33,342 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:17:33,342 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:18:18,307 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:18:18,309 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:18:18,310 - sqlalchemy.engine.Engine - INFO - [cached since 480.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 18, 18, 307705))
2025-04-30 09:18:18,310 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:18:18,355 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:18:18,355 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:18:18,355 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:18:18,355 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:18:18,355 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:18:18,355 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:18:33,347 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:18:33,347 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:18:33,347 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:18:33,347 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:18:33,357 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:18:33,357 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:18:33,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:18:33,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:18:33,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:18:33,357 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:18:33,357 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:18:33,357 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:18:33,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:18:33,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:18:33,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:18:33,357 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:18:33,357 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:18:33,357 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:18:33,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:18:33,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:18:33,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:18:33,359 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:18:33,359 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:18:33,359 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:19:18,309 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:19:18,309 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:19:18,309 - sqlalchemy.engine.Engine - INFO - [cached since 540.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 19, 18, 309207))
2025-04-30 09:19:18,309 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:19:18,357 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:19:18,358 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:19:18,358 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:19:18,358 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:19:18,358 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:19:18,358 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:19:33,357 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:19:33,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:19:33,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:19:33,357 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:19:33,357 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:19:33,357 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:19:33,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:19:33,368 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:19:33,368 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:19:33,374 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:19:33,374 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:19:33,374 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:19:33,374 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:19:33,374 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:19:33,374 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:19:33,374 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:19:33,374 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:19:33,389 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:19:48,395 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:19:48,395 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:19:48,395 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:19:48,395 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:19:48,395 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:19:48,395 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:20:18,311 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:20:18,315 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:20:18,315 - sqlalchemy.engine.Engine - INFO - [cached since 600.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 20, 18, 309305))
2025-04-30 09:20:18,315 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:20:18,398 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:20:18,399 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:20:18,401 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:20:18,401 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:20:18,402 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:20:18,406 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:20:33,406 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:20:33,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:20:33,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:20:33,408 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:20:33,408 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:20:33,408 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:20:33,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:20:33,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:20:33,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:20:33,409 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:20:33,409 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:20:33,409 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:20:33,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:20:33,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:20:33,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:20:33,409 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:20:33,409 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:20:33,409 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:20:48,410 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:20:48,410 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:20:48,410 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:20:48,410 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:20:48,410 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:20:48,421 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:21:18,333 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:21:18,333 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:21:18,333 - sqlalchemy.engine.Engine - INFO - [cached since 660.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 21, 18, 332442))
2025-04-30 09:21:18,333 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:21:18,412 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:21:18,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:21:18,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:21:18,412 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:21:18,412 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:21:18,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:21:33,427 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:21:33,429 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:21:33,429 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:21:33,429 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:21:33,429 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:21:33,429 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:21:33,429 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:21:33,429 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:21:33,429 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:21:33,429 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:21:33,429 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:21:33,429 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:21:33,429 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:21:33,429 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:21:33,429 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:21:33,429 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:21:33,429 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:21:33,429 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:21:48,433 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:21:48,435 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:21:48,437 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:21:48,437 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:21:48,437 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:21:48,437 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:22:18,331 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:22:18,331 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:22:18,331 - sqlalchemy.engine.Engine - INFO - [cached since 720.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 22, 18, 331560))
2025-04-30 09:22:18,331 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:22:18,429 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:22:18,432 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:22:18,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:22:18,433 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:22:18,434 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:22:18,439 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:22:33,452 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:22:33,453 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:22:33,453 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:22:33,453 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:22:33,453 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:22:33,453 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:22:33,453 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:22:33,453 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:22:33,453 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:22:33,454 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:22:33,454 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:22:33,454 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:22:33,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:22:33,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:22:33,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:22:33,454 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:22:33,454 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:22:33,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:22:48,452 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:22:48,452 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:22:48,452 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:22:48,452 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:22:48,452 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:22:48,452 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:22:48,608 - app - INFO - 应用程序关闭中...
2025-04-30 09:22:48,608 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 09:22:48,608 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 09:22:48,610 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 09:22:48,610 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 09:22:48,610 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 09:22:48,610 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 09:22:48,610 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 09:22:48,610 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 09:22:48,610 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 09:22:48,610 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 09:22:48,610 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:22:48,610 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:22:48,610 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:22:48,610 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:22:48,610 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:22:48,611 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 3
2025-04-30 09:22:48,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:22:48,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:22:48,611 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 09:22:48,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:22:48,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:22:48,612 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 09:22:48,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:22:48,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:22:48,612 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 09:22:48,612 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 09:22:48,612 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 09:22:48,612 - app - INFO - 增强版任务调度器已停止
2025-04-30 09:22:48,612 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 09:22:48,613 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 09:22:48,613 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 09:22:48,613 - data.session - INFO - 数据库连接已关闭
2025-04-30 09:22:49,822 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 09:22:49,873 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 09:22:49,873 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 09:22:49,942 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 09:22:49,992 - data.session - INFO - 正在初始化数据库...
2025-04-30 09:22:50,021 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 09:22:50,042 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 09:22:50,042 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:22:50,042 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 09:22:50,042 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:22:50,042 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 09:22:50,042 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:22:50,042 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:22:50,042 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 09:22:50,042 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:22:50,042 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 09:22:50,042 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:22:50,042 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 09:22:50,058 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:22:50,060 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 09:22:50,060 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:22:50,060 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 09:22:50,060 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:22:50,062 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 09:22:50,062 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:22:50,062 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 09:22:50,062 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:22:50,062 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 09:22:50,062 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:22:50,062 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 09:22:50,062 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:22:50,062 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 09:22:50,062 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:22:50,062 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 09:22:50,062 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:22:50,062 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:22:50,062 - data.session - INFO - 数据库表初始化完成
2025-04-30 09:22:50,419 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 09:22:50,419 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 09:22:50,419 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 09:22:50,419 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 09:22:50,419 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 09:22:50,419 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 09:22:50,419 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 09:22:50,419 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 09:22:50,419 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 09:22:50,421 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 09:22:50,422 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:22:50,422 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 09:22:50,422 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 09:22:50,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:22:50,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:22:50,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:22:50,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:22:50,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:22:50,422 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 09:22:50,422 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 09:22:50,437 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 09:22:50,437 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 09:22:50,437 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 09:22:50,437 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 09:22:50,437 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 09:22:50,437 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 09:22:50,437 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 09:22:50,437 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:22:50,450 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 09:22:50,450 - sqlalchemy.engine.Engine - INFO - [generated in 0.00138s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 09:22:50,453 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 09:22:50,453 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:22:50,453 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 09:22:50,453 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 09:22:50,453 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 09:22:50,453 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:22:50,453 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 09:22:50,468 - sqlalchemy.engine.Engine - INFO - [generated in 0.00095s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 09:22:50,468 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:22:50,468 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 09:22:50,468 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 09:22:50,468 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 09:22:50,468 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 09:22:50,468 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 09:22:50,468 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:22:50,468 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:22:50,468 - sqlalchemy.engine.Engine - INFO - [generated in 0.00022s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 22, 50, 453042))
2025-04-30 09:22:50,468 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:23:50,422 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:23:50,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:23:50,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:23:50,424 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:23:50,424 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:23:50,424 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:23:50,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:23:50,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:23:50,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:23:50,424 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:23:50,424 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:23:50,424 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:23:50,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:23:50,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:23:50,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:23:50,424 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:23:50,424 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:23:50,424 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:23:50,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:23:50,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:23:50,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:23:50,424 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:23:50,433 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:23:50,433 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:23:50,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:23:50,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:23:50,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:23:50,433 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:23:50,433 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:23:50,438 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:23:50,480 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:23:50,480 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:23:50,482 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 23, 50, 480672))
2025-04-30 09:23:50,486 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:24:50,449 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:24:50,452 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:24:50,453 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:24:50,453 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:24:50,453 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:24:50,454 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:24:50,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:24:50,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:24:50,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:24:50,454 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:24:50,454 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:24:50,454 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:24:50,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:24:50,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:24:50,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:24:50,454 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:24:50,454 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:24:50,454 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:24:50,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:24:50,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:24:50,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:24:50,454 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:24:50,454 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:24:50,454 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:24:50,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:24:50,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:24:50,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:24:50,454 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:24:50,454 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:24:50,462 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:24:50,515 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:24:50,515 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:24:50,515 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 24, 50, 515748))
2025-04-30 09:24:50,515 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:38,719 - app - INFO - 应用程序关闭中...
2025-04-30 09:25:38,719 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 09:25:38,719 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 09:25:38,719 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 09:25:38,719 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 09:25:38,719 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 09:25:38,719 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 09:25:38,719 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 09:25:38,719 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 09:25:38,719 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 09:25:38,719 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 09:25:38,719 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:25:38,719 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:25:38,719 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:25:38,719 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:25:38,719 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:25:38,719 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 09:25:38,719 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:25:38,719 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:25:38,723 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 09:25:38,723 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:25:38,723 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:25:38,723 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 09:25:38,723 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:25:38,723 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:25:38,723 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 09:25:38,723 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 09:25:38,723 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 09:25:38,723 - app - INFO - 增强版任务调度器已停止
2025-04-30 09:25:38,723 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 09:25:38,724 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 09:25:38,724 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 09:25:38,725 - data.session - INFO - 数据库连接已关闭
2025-04-30 09:25:42,678 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 09:25:42,729 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 09:25:42,729 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 09:25:43,419 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 09:25:43,466 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 09:25:43,466 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 09:25:43,546 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 09:25:43,594 - data.session - INFO - 正在初始化数据库...
2025-04-30 09:25:43,618 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:25:43,641 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 09:25:43,657 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 09:25:43,657 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:43,657 - data.session - INFO - 数据库表初始化完成
2025-04-30 09:25:44,026 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 09:25:44,026 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 09:25:44,026 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 09:25:44,026 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 09:25:44,026 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 09:25:44,026 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 09:25:44,026 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 09:25:44,026 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 09:25:44,026 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 09:25:44,030 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 09:25:44,030 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:25:44,030 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 09:25:44,030 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 09:25:44,030 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:25:44,030 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:25:44,030 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:25:44,030 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:25:44,030 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:25:44,030 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 09:25:44,030 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 09:25:44,030 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 09:25:44,030 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 09:25:44,030 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 09:25:44,030 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 09:25:44,030 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 09:25:44,030 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 09:25:44,030 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 09:25:44,030 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:44,037 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 09:25:44,037 - sqlalchemy.engine.Engine - INFO - [generated in 0.00141s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 09:25:44,037 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 09:25:44,037 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:44,037 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 09:25:44,037 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 09:25:44,037 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 09:25:44,037 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:44,051 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 09:25:44,051 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 09:25:44,053 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:44,053 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 09:25:44,053 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 09:25:44,053 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 09:25:44,053 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 09:25:44,053 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 09:25:44,058 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:44,058 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:25:44,058 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 25, 44, 37807))
2025-04-30 09:25:44,058 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:51,304 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 09:25:51,304 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:51,304 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 09:25:51,304 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 09:25:51,304 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:51,304 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:51,304 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 09:25:51,304 - sqlalchemy.engine.Engine - INFO - [cached since 0.002381s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 09:25:51,304 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:51,304 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 09:25:51,304 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 09:25:51,304 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 09:25:51,304 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:51,304 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 09:25:51,321 - sqlalchemy.engine.Engine - INFO - [generated in 0.00126s] (None, datetime.datetime(2025, 4, 30, 9, 25, 51, 304912), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 09:25:51,322 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:51,322 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:51,322 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 09:25:51,322 - sqlalchemy.engine.Engine - INFO - [cached since 0.01606s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 09:25:51,322 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 09:25:51,322 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('56141c54-8acd-4101-94e4-d6fc8943d7a4', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 9, 25, 51, 304912), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.4", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 9, 25, 51, 322911), datetime.datetime(2025, 4, 30, 9, 25, 51, 322911), 0)
2025-04-30 09:25:51,322 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:51,340 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:51,340 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 09:25:51,340 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('56141c54-8acd-4101-94e4-d6fc8943d7a4',)
2025-04-30 09:25:51,340 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:51,340 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 56141c54-8acd-4101-94e4-d6fc8943d7a4 (优先级 1) 添加到队列 0
2025-04-30 09:25:51,351 - services.sync_service - INFO - 正在同步创建任务到天风系统: 56141c54-8acd-4101-94e4-d6fc8943d7a4
2025-04-30 09:25:51,353 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"56141c54-8acd-4101-94e4-d6fc8943d7a4","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 09:25:51","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 09:25:51,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 56141c54-8acd-4101-94e4-d6fc8943d7a4, 优先级: 1
2025-04-30 09:25:51,370 - services.execution.task_executor - DEBUG - 任务 56141c54-8acd-4101-94e4-d6fc8943d7a4 设置超时时间: 3600秒
2025-04-30 09:25:51,371 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:51,372 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 09:25:51,372 - sqlalchemy.engine.Engine - INFO - [cached since 0.02554s ago] ('56141c54-8acd-4101-94e4-d6fc8943d7a4',)
2025-04-30 09:25:51,372 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 09:25:51,372 - sqlalchemy.engine.Engine - INFO - [cached since 0.05933s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 09:25:51,372 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 09:25:51,372 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (datetime.datetime(2025, 4, 30, 9, 25, 51, 372930), datetime.datetime(2025, 4, 30, 9, 25, 51, 372930), '56141c54-8acd-4101-94e4-d6fc8943d7a4')
2025-04-30 09:25:51,372 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:51,372 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:51,372 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 09:25:51,372 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 25, 51, 372930), '56141c54-8acd-4101-94e4-d6fc8943d7a4')
2025-04-30 09:25:51,372 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:51,389 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 09:25:51,389 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:51,389 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 09:25:51,389 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] ('c55b2ef8-1347-407b-923c-71453d38ae82', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '56141c54-8acd-4101-94e4-d6fc8943d7a4', datetime.datetime(2025, 4, 30, 9, 25, 51, 389139), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 9, 25, 51, 389139), datetime.datetime(2025, 4, 30, 9, 25, 51, 389139), 0)
2025-04-30 09:25:51,389 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:51,389 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:51,403 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 09:25:51,403 - sqlalchemy.engine.Engine - INFO - [generated in 0.00142s] ('c55b2ef8-1347-407b-923c-71453d38ae82',)
2025-04-30 09:25:51,403 - services.sync_service - INFO - 成功同步任务到系统任务: 56141c54-8acd-4101-94e4-d6fc8943d7a4
2025-04-30 09:25:51,403 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 56141c54-8acd-4101-94e4-d6fc8943d7a4
2025-04-30 09:25:51,403 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 56141c54-8acd-4101-94e4-d6fc8943d7a4
2025-04-30 09:25:51,403 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 09:25:51,403 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 09:25:51,419 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 09:25:51,419 - sqlalchemy.engine.Engine - INFO - [generated in 0.00139s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 9, 25, 51, 419764), 'c55b2ef8-1347-407b-923c-71453d38ae82')
2025-04-30 09:25:51,419 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1149秒
2025-04-30 09:25:51,419 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:51,435 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 09:25:51,437 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 09:25:51,437 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 09:25:51,437 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:51,437 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 09:25:51,437 - sqlalchemy.engine.Engine - INFO - [cached since 0.04845s ago] ('16292a7e-27d4-4e79-b53e-db1a32aaa17a', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '56141c54-8acd-4101-94e4-d6fc8943d7a4', datetime.datetime(2025, 4, 30, 9, 25, 51, 437485), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 9, 25, 51, 437485), datetime.datetime(2025, 4, 30, 9, 25, 51, 437485), 0)
2025-04-30 09:25:51,437 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:51,437 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 16292a7e-27d4-4e79-b53e-db1a32aaa17a
2025-04-30 09:25:51,437 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:51,437 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 09:25:51,452 - sqlalchemy.engine.Engine - INFO - [cached since 0.04391s ago] ('16292a7e-27d4-4e79-b53e-db1a32aaa17a',)
2025-04-30 09:25:51,454 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 09:25:51,455 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 09:25:51,456 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 09:25:51,457 - sqlalchemy.engine.Engine - INFO - [cached since 0.03699s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 9, 25, 51, 456643), '16292a7e-27d4-4e79-b53e-db1a32aaa17a')
2025-04-30 09:25:51,459 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:51,467 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 09:25:51,467 - services.sync_service - INFO - 正在创建选择AMR任务: 56141c54-8acd-4101-94e4-d6fc8943d7a4, 站点: TK01
2025-04-30 09:25:51,516 - services.sync_service - INFO - 成功为任务选择AMR: 56141c54-8acd-4101-94e4-d6fc8943d7a4, AMR: None
2025-04-30 09:25:51,519 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917389902660653057 的AMR选择结果
2025-04-30 09:25:51,519 - services.sync_service - INFO - 开始等待任务块 1917389902660653057 的AMR选择结果
2025-04-30 09:25:51,520 - services.sync_service - INFO - 正在获取任务块详情: 1917389902660653057
2025-04-30 09:25:51,557 - services.sync_service - INFO - 成功获取任务块详情: 1917389902660653057 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917389902660653057', 'taskId': '1917389902195085313', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 09:25:51', 'updateTime': None}, 'timestamp': 1745976350876}
2025-04-30 09:25:51,558 - services.sync_service - DEBUG - 任务块 1917389902660653057 AMR选择未完成，已尝试 1 次
2025-04-30 09:25:52,066 - services.sync_service - INFO - 正在获取任务块详情: 1917389902660653057
2025-04-30 09:25:52,112 - services.sync_service - INFO - 成功获取任务块详情: 1917389902660653057 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917389902660653057', 'taskId': '1917389902195085313', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 09:25:51', 'updateTime': None}, 'timestamp': 1745976351433}
2025-04-30 09:25:52,113 - services.sync_service - DEBUG - 任务块 1917389902660653057 AMR选择未完成，已尝试 2 次
2025-04-30 09:25:52,369 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:52,371 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 09:25:52,371 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] ('56141c54-8acd-4101-94e4-d6fc8943d7a4',)
2025-04-30 09:25:52,371 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:52,623 - services.sync_service - INFO - 正在获取任务块详情: 1917389902660653057
2025-04-30 09:25:52,654 - services.sync_service - INFO - 成功获取任务块详情: 1917389902660653057 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917389902660653057', 'taskId': '1917389902195085313', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 09:25:51', 'updateTime': None}, 'timestamp': 1745976351974}
2025-04-30 09:25:52,654 - services.sync_service - DEBUG - 任务块 1917389902660653057 AMR选择未完成，已尝试 3 次
2025-04-30 09:25:53,163 - services.sync_service - INFO - 正在获取任务块详情: 1917389902660653057
2025-04-30 09:25:53,179 - services.sync_service - INFO - 成功获取任务块详情: 1917389902660653057 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917389902660653057', 'taskId': '1917389902195085313', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 09:25:51', 'updateTime': None}, 'timestamp': 1745976352504}
2025-04-30 09:25:53,179 - services.sync_service - DEBUG - 任务块 1917389902660653057 AMR选择未完成，已尝试 4 次
2025-04-30 09:25:53,370 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:53,370 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 09:25:53,370 - sqlalchemy.engine.Engine - INFO - [cached since 1s ago] ('56141c54-8acd-4101-94e4-d6fc8943d7a4',)
2025-04-30 09:25:53,370 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:53,688 - services.sync_service - INFO - 正在获取任务块详情: 1917389902660653057
2025-04-30 09:25:53,711 - services.sync_service - INFO - 成功获取任务块详情: 1917389902660653057 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917389902660653057', 'taskId': '1917389902195085313', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 09:25:51', 'updateTime': None}, 'timestamp': 1745976353039}
2025-04-30 09:25:53,720 - services.sync_service - DEBUG - 任务块 1917389902660653057 AMR选择未完成，已尝试 5 次
2025-04-30 09:25:54,216 - services.sync_service - INFO - 正在获取任务块详情: 1917389902660653057
2025-04-30 09:25:54,287 - services.sync_service - INFO - 成功获取任务块详情: 1917389902660653057 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917389902660653057', 'taskId': '1917389902195085313', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 09:25:51', 'updateTime': '2025-04-30 09:25:53'}, 'timestamp': 1745976353576}
2025-04-30 09:25:54,287 - services.sync_service - INFO - 任务块 1917389902660653057 已选择AMR: 1912328602264645634，共尝试 6 次
2025-04-30 09:25:54,287 - services.execution.handlers.robot_scheduling - INFO - 准备更新任务 56141c54-8acd-4101-94e4-d6fc8943d7a4 的机器人ID: 1912328602264645634
2025-04-30 09:25:54,295 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:54,295 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.agv_id 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 09:25:54,295 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('56141c54-8acd-4101-94e4-d6fc8943d7a4',)
2025-04-30 09:25:54,295 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET agv_id=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 09:25:54,295 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('1912328602264645634', datetime.datetime(2025, 4, 30, 9, 25, 54, 295486), '56141c54-8acd-4101-94e4-d6fc8943d7a4')
2025-04-30 09:25:54,295 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:54,311 - services.execution.handlers.robot_scheduling - INFO - 成功更新任务记录 56141c54-8acd-4101-94e4-d6fc8943d7a4 的agv_id字段: 1912328602264645634
2025-04-30 09:25:54,311 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 09:25:54,311 - services.execution.handlers.robot_scheduling - INFO - 块 b1(ID:1) 有 1 个子块
2025-04-30 09:25:54,311 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: [2]
2025-04-30 09:25:54,311 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 09:25:54,311 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 1 个
2025-04-30 09:25:54,311 - services.execution.handlers.robot_scheduling - INFO - 1. b2(ID:2, 类型:CAgvOperationBp, 关系:direct_child)
2025-04-30 09:25:54,311 - services.execution.handlers.robot_scheduling - INFO - 开始执行选择机器人块 b1 的子块
2025-04-30 09:25:54,311 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-30 09:25:54,311 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 1 个子块
2025-04-30 09:25:54,311 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b2, ID: 2, 类型: CAgvOperationBp
2025-04-30 09:25:54,311 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:54,311 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 09:25:54,311 - sqlalchemy.engine.Engine - INFO - [cached since 2.923s ago] ('71bad316-bc26-48ac-bd3e-202970bdaaf0', 'b2', '2', '', '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"targetSiteLabel": "PT02", "scriptName": "JackUnload"}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917389902660653057"}', 'CAgvOperationBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '56141c54-8acd-4101-94e4-d6fc8943d7a4', datetime.datetime(2025, 4, 30, 9, 25, 54, 311522), <TaskBlockRecordStatus.RUNNING: 1001>, '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917389902660653057"}', 1, datetime.datetime(2025, 4, 30, 9, 25, 54, 311522), datetime.datetime(2025, 4, 30, 9, 25, 54, 311522), 0)
2025-04-30 09:25:54,311 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:54,319 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 71bad316-bc26-48ac-bd3e-202970bdaaf0
2025-04-30 09:25:54,319 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:54,319 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 09:25:54,319 - sqlalchemy.engine.Engine - INFO - [cached since 2.916s ago] ('71bad316-bc26-48ac-bd3e-202970bdaaf0',)
2025-04-30 09:25:54,327 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-30 09:25:54,327 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-30 09:25:54,329 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 09:25:54,329 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] ('{"selectedAgvId": "1912328602264645634"}', '执行中', "{'agv_for_block_2': '1912328602264645634', 'agv_for_b2': '1912328602264645634', 'agv_task_id_2': '1917389902660653057'}", '{"blocks": {"b2": {"selectedAgvId": "1912328602264645634"}}}', '执行中', datetime.datetime(2025, 4, 30, 9, 25, 54, 329421), '71bad316-bc26-48ac-bd3e-202970bdaaf0')
2025-04-30 09:25:54,329 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:54,337 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-30 09:25:54,337 - services.execution.handlers.robot_scheduling - INFO - 找到块 b2(ID:2) 专用的机器人ID: 1912328602264645634
2025-04-30 09:25:54,337 - services.execution.handlers.robot_scheduling - INFO - 执行机器人通用动作，块 b2(ID:2) 使用机器人: 1912328602264645634, 目标站点: PT02
2025-04-30 09:25:54,337 - services.sync_service - INFO - 正在为任务添加动作: 1917389902660653057, 站点: PT02, 动作: JackUnload
2025-04-30 09:25:54,359 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:54,359 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 09:25:54,359 - sqlalchemy.engine.Engine - INFO - [cached since 1.987s ago] ('56141c54-8acd-4101-94e4-d6fc8943d7a4',)
2025-04-30 09:25:54,360 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:54,377 - services.sync_service - INFO - 成功为任务添加动作: 1917389902660653057, 站点: PT02, 动作: JackUnload
2025-04-30 09:25:54,377 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:54,377 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 09:25:54,377 - sqlalchemy.engine.Engine - INFO - [generated in 0.00142s] ('ea29d568-0f8b-4c23-abd8-ad8184b184be', 1, '{"success": true, "message": "机器人移动成功，目标站点: PT02, 任务ID: ", "code": 200, "result": {"id": "1917389914685722626", "tenantId": 1000, "taskId": "19173899 ... (118 characters truncated) ... , "stationName": "PT02", "action": "JackUnload", "status": 1, "completeTime": null, "createTime": "2025-04-30 09:25:53"}, "timestamp": 1745976353703}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '56141c54-8acd-4101-94e4-d6fc8943d7a4', datetime.datetime(2025, 4, 30, 9, 25, 54, 377298), datetime.datetime(2025, 4, 30, 9, 25, 54, 377298), 0)
2025-04-30 09:25:54,377 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:54,397 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:54,399 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 09:25:54,399 - sqlalchemy.engine.Engine - INFO - [cached since 2.996s ago] ('71bad316-bc26-48ac-bd3e-202970bdaaf0',)
2025-04-30 09:25:54,406 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-30 09:25:54,406 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['containerName']
2025-04-30 09:25:54,411 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 09:25:54,411 - sqlalchemy.engine.Engine - INFO - [generated in 0.00355s] ('{"containerName": ""}', datetime.datetime(2025, 4, 30, 9, 25, 54, 411523), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, "{'agv_for_block_2': '1912328602264645634', 'agv_for_b2': '1912328602264645634', 'agv_task_id_2': '1917389902660653057', 'taskId': '', 'containerName': ''}", '{"blocks": {"b2": {"containerName": ""}}}', '执行成功', datetime.datetime(2025, 4, 30, 9, 25, 54, 411523), '71bad316-bc26-48ac-bd3e-202970bdaaf0')
2025-04-30 09:25:54,419 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:54,428 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 的子块执行成功
2025-04-30 09:25:54,428 - services.sync_service - INFO - 正在封口任务: 1917389902660653057
2025-04-30 09:25:54,517 - services.sync_service - INFO - 成功封口任务: 1917389902660653057
2025-04-30 09:25:54,517 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:54,517 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 09:25:54,517 - sqlalchemy.engine.Engine - INFO - [cached since 0.1418s ago] ('b2cebe44-f2bc-48ec-a04d-3a3a60d57772', 1, '{"success": true, "message": "选择执行机器人成功: 1912328602264645634，子块执行成功", "code": 200, "result": {"id": "1917389902660653057", "taskId": "191738990219508 ... (559 characters truncated) ...  "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 2, "success": true, "output": {}}]}}}}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '56141c54-8acd-4101-94e4-d6fc8943d7a4', datetime.datetime(2025, 4, 30, 9, 25, 54, 517227), datetime.datetime(2025, 4, 30, 9, 25, 54, 517227), 0)
2025-04-30 09:25:54,517 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:54,540 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:54,540 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 09:25:54,540 - sqlalchemy.engine.Engine - INFO - [cached since 3.133s ago] ('16292a7e-27d4-4e79-b53e-db1a32aaa17a',)
2025-04-30 09:25:54,544 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 09:25:54,547 - services.execution.block_executor - INFO - 为块 b1 存储输出: ['selectedAgvId']
2025-04-30 09:25:54,547 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 09:25:54,548 - sqlalchemy.engine.Engine - INFO - [cached since 0.1371s ago] ('{"selectedAgvId": "1912328602264645634"}', datetime.datetime(2025, 4, 30, 9, 25, 54, 547069), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, "{'agv_for_block_2': '1912328602264645634', 'agv_for_b2': '1912328602264645634', 'agv_task_id_2': '1917389902660653057', 'taskId': '', 'containerName': ''}", '{"blocks": {"b1": {"selectedAgvId": "1912328602264645634"}}}', '执行成功', datetime.datetime(2025, 4, 30, 9, 25, 54, 547069), '16292a7e-27d4-4e79-b53e-db1a32aaa17a')
2025-04-30 09:25:54,548 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:54,561 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:54,564 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 09:25:54,564 - sqlalchemy.engine.Engine - INFO - [cached since 0.1812s ago] ('fad5f662-3ab8-4109-8226-57631ae9ebdf', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, " ... (251 characters truncated) ... essage": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 2, "success": true, "output": {}}]}}}}]}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '56141c54-8acd-4101-94e4-d6fc8943d7a4', datetime.datetime(2025, 4, 30, 9, 25, 54, 564801), datetime.datetime(2025, 4, 30, 9, 25, 54, 564801), 0)
2025-04-30 09:25:54,564 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:54,564 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:54,564 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 09:25:54,564 - sqlalchemy.engine.Engine - INFO - [cached since 3.164s ago] ('c55b2ef8-1347-407b-923c-71453d38ae82',)
2025-04-30 09:25:54,564 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 09:25:54,564 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 09:25:54,564 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 09:25:54,564 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (datetime.datetime(2025, 4, 30, 9, 25, 54, 564801), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, "{'agv_for_block_2': '1912328602264645634', 'agv_for_b2': '1912328602264645634', 'agv_task_id_2': '1917389902660653057', 'taskId': '', 'containerName': ''}", '执行成功', datetime.datetime(2025, 4, 30, 9, 25, 54, 564801), 'c55b2ef8-1347-407b-923c-71453d38ae82')
2025-04-30 09:25:54,564 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:54,580 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:25:54,580 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 09:25:54,580 - sqlalchemy.engine.Engine - INFO - [generated in 0.00066s] (datetime.datetime(2025, 4, 30, 9, 25, 54, 580745), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 3207, 1, datetime.datetime(2025, 4, 30, 9, 25, 54, 580745), '56141c54-8acd-4101-94e4-d6fc8943d7a4')
2025-04-30 09:25:54,580 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:25:54,588 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 56141c54-8acd-4101-94e4-d6fc8943d7a4, 结果: True
2025-04-30 09:26:44,047 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:26:44,047 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:26:44,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:26:44,048 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:26:44,048 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:26:44,048 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:26:44,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:26:44,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:26:44,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:26:44,048 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:26:44,048 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:26:44,048 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:26:44,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:26:44,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:26:44,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:26:44,048 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:26:44,048 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:26:44,048 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:26:44,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:26:44,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:26:44,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:26:44,048 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:26:44,048 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:26:44,058 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:26:44,058 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:26:44,058 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:26:44,058 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 26, 44, 58580))
2025-04-30 09:26:44,058 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:26:59,052 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:26:59,052 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:26:59,052 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:26:59,052 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:26:59,052 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:26:59,052 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:27:44,065 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:27:44,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:27:44,067 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:27:44,068 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:27:44,070 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:27:44,072 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:27:44,072 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:27:44,072 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:27:44,072 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:27:44,072 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:27:44,083 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:27:44,084 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 27, 44, 66667))
2025-04-30 09:27:44,088 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:27:44,089 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:27:44,089 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:27:44,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:27:44,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:27:44,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:27:44,099 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:27:44,099 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:27:44,100 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:27:44,101 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:27:44,105 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:27:44,106 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:27:44,106 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:27:44,106 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:27:44,106 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:27:44,119 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:27:59,123 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:27:59,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:27:59,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:27:59,123 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:27:59,123 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:27:59,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:28:44,120 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:28:44,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:28:44,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:28:44,120 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:28:44,120 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:28:44,120 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:28:44,136 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:28:44,136 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:28:44,136 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:28:44,136 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:28:44,136 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:28:44,136 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 28, 44, 120324))
2025-04-30 09:28:44,144 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:28:44,144 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:28:44,152 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:28:44,152 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:28:44,152 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:28:44,152 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:28:44,152 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:28:44,152 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:28:44,152 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:28:44,152 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:28:44,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:28:44,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:28:44,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:28:44,161 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:28:44,161 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:28:44,168 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:28:59,147 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:28:59,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:28:59,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:28:59,147 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:28:59,147 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:28:59,147 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:29:44,158 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:29:44,159 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:29:44,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:29:44,161 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:29:44,163 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:29:44,163 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:29:44,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:29:44,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:29:44,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:29:44,163 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:29:44,164 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:29:44,164 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 29, 44, 158774))
2025-04-30 09:29:44,164 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:29:44,165 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:29:44,165 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:29:44,165 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:29:44,165 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:29:44,165 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:29:44,165 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:29:44,165 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:29:44,170 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:29:44,171 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:29:59,174 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:29:59,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:29:59,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:29:59,174 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:29:59,174 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:29:59,174 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:29:59,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:29:59,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:29:59,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:29:59,174 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:29:59,174 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:29:59,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:30:44,173 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:30:44,174 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:30:44,174 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 30, 44, 173215))
2025-04-30 09:30:44,175 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:30:44,219 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:30:44,221 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:30:44,221 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:30:44,221 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:30:44,222 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:30:44,222 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:30:44,224 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:30:44,225 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:30:44,225 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:30:44,225 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:30:44,226 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:30:44,226 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:30:44,227 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:30:44,227 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:30:44,227 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:30:44,227 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:30:44,227 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:30:44,233 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:30:59,236 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:30:59,237 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:30:59,237 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:30:59,238 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:30:59,240 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:30:59,240 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:30:59,241 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:30:59,241 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:30:59,242 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:30:59,242 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:30:59,242 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:30:59,244 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:31:44,193 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:31:44,194 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:31:44,195 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 31, 44, 191744))
2025-04-30 09:31:44,198 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:31:44,222 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:31:44,223 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:31:44,224 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:31:44,224 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:31:44,226 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:31:44,232 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:31:59,234 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:31:59,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:31:59,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:31:59,237 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:31:59,238 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:31:59,238 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:31:59,239 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:31:59,240 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:31:59,240 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:31:59,240 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:31:59,241 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:31:59,242 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:32:14,245 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:32:14,247 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:32:14,248 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:32:14,248 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:32:14,248 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:32:14,250 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:32:14,252 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:32:14,254 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:32:14,254 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:32:14,256 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:32:14,258 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:32:14,258 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:32:44,204 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:32:44,206 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:32:44,207 - sqlalchemy.engine.Engine - INFO - [cached since 420.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 32, 44, 203507))
2025-04-30 09:32:44,209 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:32:44,280 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:32:44,287 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:32:44,287 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:32:44,287 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:32:44,288 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:32:44,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:32:59,297 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:32:59,299 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:32:59,300 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:32:59,301 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:32:59,301 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:32:59,302 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:32:59,303 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:32:59,304 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:32:59,304 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:32:59,304 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:32:59,304 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:32:59,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:33:14,322 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:33:14,324 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:33:14,325 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:33:14,326 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:33:14,328 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:33:14,328 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:33:14,329 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:33:14,330 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:33:14,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:33:14,333 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:33:14,333 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:33:14,334 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:33:44,227 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:33:44,228 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:33:44,231 - sqlalchemy.engine.Engine - INFO - [cached since 480.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 33, 44, 227025))
2025-04-30 09:33:44,235 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:33:44,320 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:33:44,322 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:33:44,322 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:33:44,323 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:33:44,324 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:33:44,332 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:33:59,336 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:33:59,343 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:33:59,343 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:33:59,345 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:33:59,347 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:33:59,350 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:33:59,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:33:59,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:33:59,353 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:33:59,355 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:33:59,358 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:33:59,360 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:34:14,356 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:34:14,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:34:14,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:34:14,358 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:34:14,358 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:34:14,359 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:34:14,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:34:14,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:34:14,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:34:14,364 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:34:14,365 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:34:14,367 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:34:44,260 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:34:44,262 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:34:44,263 - sqlalchemy.engine.Engine - INFO - [cached since 540.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 34, 44, 258849))
2025-04-30 09:34:44,269 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:34:44,367 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:34:44,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:34:44,373 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:34:44,375 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:34:44,376 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:34:44,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:34:59,382 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:34:59,383 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:34:59,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:34:59,385 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:34:59,386 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:34:59,388 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:34:59,389 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:34:59,390 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:34:59,392 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:34:59,394 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:34:59,396 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:34:59,397 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:35:14,411 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:35:14,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:35:14,412 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:35:14,413 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:35:14,414 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:35:14,414 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:35:14,414 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:35:14,414 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:35:14,415 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:35:14,415 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:35:14,416 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:35:14,417 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:35:44,280 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:35:44,281 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:35:44,282 - sqlalchemy.engine.Engine - INFO - [cached since 600.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 35, 44, 278254))
2025-04-30 09:35:44,285 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:35:44,432 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:35:44,435 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:35:44,437 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:35:44,438 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:35:44,439 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:35:44,444 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:35:59,440 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:35:59,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:35:59,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:35:59,442 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:35:59,442 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:35:59,445 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:35:59,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:35:59,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:35:59,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:35:59,445 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:35:59,445 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:35:59,445 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:36:14,455 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:36:14,456 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:36:14,457 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:36:14,459 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:36:14,460 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:36:14,461 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:36:14,464 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:36:14,466 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:36:14,468 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:36:14,470 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:36:14,470 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:36:14,471 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:36:44,280 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:36:44,282 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:36:44,282 - sqlalchemy.engine.Engine - INFO - [cached since 660.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 36, 44, 279712))
2025-04-30 09:36:44,285 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:36:44,481 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:36:44,482 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:36:44,483 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:36:44,485 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:36:44,486 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:36:44,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:36:59,502 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:36:59,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:36:59,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:36:59,505 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:36:59,507 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:36:59,508 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:36:59,509 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:36:59,510 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:36:59,510 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:36:59,511 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:36:59,511 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:36:59,511 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:37:14,512 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:37:14,514 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:37:14,515 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:37:14,516 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:37:14,516 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:37:14,518 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:37:14,520 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:37:14,520 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:37:14,520 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:37:14,521 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:37:14,521 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:37:14,521 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:37:44,304 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:37:44,305 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:37:44,308 - sqlalchemy.engine.Engine - INFO - [cached since 720.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 37, 44, 303652))
2025-04-30 09:37:44,313 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:37:44,520 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:37:44,522 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:37:44,522 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:37:44,522 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:37:44,523 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:37:44,533 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:37:59,533 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:37:59,535 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:37:59,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:37:59,540 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:37:59,543 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:37:59,544 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:37:59,544 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:37:59,544 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:37:59,544 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:37:59,546 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:37:59,547 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:37:59,547 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:38:14,538 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:38:14,539 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:38:14,539 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:38:14,539 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:38:14,539 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:38:14,539 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:38:14,540 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:38:14,540 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:38:14,540 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:38:14,540 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:38:14,540 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:38:14,541 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:38:44,333 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:38:44,337 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:38:44,339 - sqlalchemy.engine.Engine - INFO - [cached since 780.3s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 38, 44, 331967))
2025-04-30 09:38:44,343 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:38:44,534 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:38:44,536 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:38:44,536 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:38:44,536 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:38:44,536 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:38:44,541 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:38:59,558 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:38:59,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:38:59,563 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:38:59,564 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:38:59,567 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:38:59,568 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:38:59,571 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:38:59,573 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:38:59,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:38:59,575 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:38:59,576 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:38:59,577 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:39:14,589 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:39:14,592 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:39:14,592 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:39:14,593 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:39:14,593 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:39:14,594 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:39:14,595 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:39:14,596 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:39:14,596 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:39:14,597 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:39:14,597 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:39:14,598 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:39:44,349 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:39:44,351 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:39:44,352 - sqlalchemy.engine.Engine - INFO - [cached since 840.3s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 39, 44, 348615))
2025-04-30 09:39:44,355 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:39:44,629 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:39:44,630 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:39:44,630 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:39:44,630 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:39:44,630 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:39:44,638 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:39:59,628 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:39:59,629 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:39:59,630 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:39:59,630 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:39:59,630 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:39:59,631 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:39:59,631 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:39:59,631 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:39:59,631 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:39:59,633 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:39:59,633 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:39:59,633 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:40:14,627 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:40:14,633 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:40:14,633 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:40:14,634 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:40:14,635 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:40:14,636 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:40:14,640 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:40:14,642 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:40:14,642 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:40:14,645 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:40:14,646 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:40:14,647 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:40:44,368 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:40:44,375 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:40:44,378 - sqlalchemy.engine.Engine - INFO - [cached since 900.3s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 40, 44, 367170))
2025-04-30 09:40:44,384 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:40:44,678 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:40:44,679 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:40:44,681 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:40:44,686 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:40:44,686 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:40:44,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:40:59,711 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:40:59,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:40:59,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:40:59,715 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:40:59,719 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:40:59,719 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:40:59,720 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:40:59,720 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:40:59,721 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:40:59,721 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:40:59,721 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:40:59,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:41:14,729 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:41:14,731 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:41:14,733 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:41:14,737 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:41:14,737 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:41:14,738 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:41:14,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:41:14,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:41:14,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:41:14,739 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:41:14,739 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:41:14,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:41:44,378 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:41:44,385 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:41:44,391 - sqlalchemy.engine.Engine - INFO - [cached since 960.3s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 41, 44, 377684))
2025-04-30 09:41:44,394 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:41:44,756 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:41:44,757 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:41:44,757 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:41:44,758 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:41:44,760 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:41:44,766 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:41:59,759 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:41:59,760 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:41:59,761 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:41:59,762 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:41:59,762 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:41:59,763 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:41:59,764 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:41:59,765 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:41:59,765 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:41:59,765 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:41:59,765 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:41:59,766 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:42:14,766 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:42:14,771 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:42:14,771 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:42:14,772 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:42:14,772 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:42:14,772 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:42:14,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:42:14,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:42:14,774 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:42:14,774 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:42:14,774 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:42:14,774 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:45:31,531 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:45:31,532 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:45:31,532 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:45:31,532 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:45:31,533 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:45:31,533 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:45:31,533 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:45:31,533 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:45:31,533 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:45:31,533 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:45:31,533 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:45:31,533 - sqlalchemy.engine.Engine - INFO - [cached since 1188s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 45, 31, 532502))
2025-04-30 09:45:31,533 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:45:31,535 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:45:31,535 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:45:31,535 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:45:31,535 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:45:31,535 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:45:31,535 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:45:31,535 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:45:31,535 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:45:31,535 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:45:31,536 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:45:31,536 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:45:31,536 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:45:31,536 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:45:31,536 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:45:31,536 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:45:31,536 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:45:31,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:45:31,537 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:45:31,537 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:45:31,537 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:45:31,542 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:46:31,524 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:46:31,525 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:46:31,526 - sqlalchemy.engine.Engine - INFO - [cached since 1248s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 46, 31, 522384))
2025-04-30 09:46:31,529 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:46:31,584 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:46:31,585 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:46:31,586 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:46:31,586 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:46:31,587 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:46:31,588 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:46:31,589 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:46:31,589 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:46:31,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:46:31,591 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:46:31,591 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:46:31,591 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:46:31,592 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:46:31,593 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:46:31,593 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:46:31,594 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:46:31,595 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:46:31,595 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:46:31,596 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:46:31,596 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:46:31,597 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:46:31,597 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:46:31,598 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:46:31,598 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:46:31,599 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:46:31,599 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:46:31,600 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:46:31,600 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:46:31,600 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:46:31,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:47:31,547 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:47:31,549 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:47:31,552 - sqlalchemy.engine.Engine - INFO - [cached since 1308s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 47, 31, 545844))
2025-04-30 09:47:31,554 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:47:31,655 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:47:31,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:47:31,661 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:47:31,662 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:47:31,664 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:47:31,665 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:47:31,666 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:47:31,666 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:47:31,667 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:47:31,668 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:47:31,669 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:47:31,670 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:47:31,671 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:47:31,672 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:47:31,672 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:47:31,674 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:47:31,674 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:47:31,675 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:47:31,677 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:47:31,678 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:47:31,679 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:47:31,680 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:47:31,681 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:47:31,682 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:47:31,683 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:47:31,683 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:47:31,684 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:47:31,684 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:47:31,684 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:47:31,689 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:48:31,567 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:48:31,569 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:48:31,575 - sqlalchemy.engine.Engine - INFO - [cached since 1368s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 48, 31, 565754))
2025-04-30 09:48:31,576 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:48:31,736 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:48:31,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:48:31,743 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:48:31,744 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:48:31,747 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:48:31,751 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:48:31,753 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:48:31,753 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:48:31,754 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:48:31,755 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:48:31,756 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:48:31,758 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:48:31,766 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:48:31,768 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:48:31,769 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:48:31,769 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:48:31,769 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:48:31,770 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:48:31,772 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:48:31,772 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:48:31,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:48:31,773 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:48:31,775 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:48:31,777 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:48:31,782 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:48:31,783 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:48:31,784 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:48:31,785 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:48:31,785 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:48:31,791 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:49:31,591 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:49:31,592 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:49:31,593 - sqlalchemy.engine.Engine - INFO - [cached since 1428s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 49, 31, 588141))
2025-04-30 09:49:31,597 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:49:31,823 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:49:31,826 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:49:31,827 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:49:31,829 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:49:31,830 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:49:31,833 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:49:31,837 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:49:31,839 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:49:31,840 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:49:31,842 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:49:31,843 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:49:31,845 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:49:31,847 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:49:31,847 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:49:31,848 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:49:31,848 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:49:31,849 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:49:31,849 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:49:31,850 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:49:31,850 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:49:31,850 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:49:31,852 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:49:31,852 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:49:31,852 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:49:31,852 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:49:31,853 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:49:31,853 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:49:31,853 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:49:31,854 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:49:31,859 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:50:31,611 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:50:31,620 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:50:31,622 - sqlalchemy.engine.Engine - INFO - [cached since 1488s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 50, 31, 610969))
2025-04-30 09:50:31,624 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:50:31,862 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:50:31,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:50:31,876 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:50:31,878 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:50:31,878 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:50:31,880 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:50:31,885 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:50:31,887 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:50:31,889 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:50:31,894 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:50:31,898 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:50:31,900 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:50:31,905 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:50:31,907 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:50:31,909 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:50:31,910 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:50:31,910 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:50:31,911 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:50:31,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:50:31,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:50:31,914 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:50:31,917 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:50:31,923 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:50:31,927 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:50:31,931 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:50:31,933 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:50:31,934 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:50:31,936 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:50:31,937 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:50:31,945 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:51:31,632 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:51:31,633 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:51:31,633 - sqlalchemy.engine.Engine - INFO - [cached since 1548s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 51, 31, 632294))
2025-04-30 09:51:31,634 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:51:31,960 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:51:31,965 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:51:31,966 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:51:31,969 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:51:31,969 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:51:31,971 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:51:31,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:51:31,976 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:51:31,976 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:51:31,977 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:51:31,977 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:51:31,977 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:51:31,978 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:51:31,978 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:51:31,980 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:51:31,982 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:51:31,983 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:51:31,983 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:51:31,985 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:51:31,986 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:51:31,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:51:31,989 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:51:31,992 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:51:31,992 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:51:31,995 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:51:31,997 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:51:31,998 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:51:31,998 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:51:32,000 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:51:32,006 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:52:31,628 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:52:31,630 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:52:31,632 - sqlalchemy.engine.Engine - INFO - [cached since 1608s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 52, 31, 627314))
2025-04-30 09:52:31,635 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:52:32,061 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:52:32,063 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:52:32,066 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:52:32,066 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:52:32,066 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:52:32,067 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:52:32,070 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:52:32,072 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:52:32,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:52:32,075 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:52:32,076 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:52:32,077 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:52:32,082 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:52:32,084 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:52:32,085 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:52:32,087 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:52:32,090 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:52:32,092 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:52:32,093 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:52:32,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:52:32,095 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:52:32,096 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:52:32,096 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:52:32,098 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:52:32,102 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:52:32,106 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:52:32,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:52:32,110 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:52:32,111 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:52:32,121 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:53:31,634 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:53:31,637 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:53:31,640 - sqlalchemy.engine.Engine - INFO - [cached since 1668s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 53, 31, 633615))
2025-04-30 09:53:31,646 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:53:32,157 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:53:32,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:53:32,157 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:53:32,158 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:53:32,158 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:53:32,158 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:53:32,160 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:53:32,160 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:53:32,160 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:53:32,161 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:53:32,161 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:53:32,161 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:53:32,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:53:32,162 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:53:32,162 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:53:32,162 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:53:32,162 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:53:32,162 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:53:32,162 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:53:32,162 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:53:32,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:53:32,163 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:53:32,163 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:53:32,163 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:53:32,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:53:32,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:53:32,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:53:32,163 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:53:32,164 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:53:32,168 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:54:31,667 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:54:31,668 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:54:31,669 - sqlalchemy.engine.Engine - INFO - [cached since 1728s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 54, 31, 667144))
2025-04-30 09:54:31,670 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:54:47,164 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:54:47,166 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:54:47,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:54:47,170 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:54:47,171 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:54:47,171 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:54:47,171 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:54:47,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:54:47,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:54:47,172 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:54:47,172 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:54:47,172 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:54:47,172 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:54:47,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:54:47,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:54:47,174 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:54:47,174 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:54:47,175 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:54:47,175 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:54:47,176 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:54:47,176 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:54:47,176 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:54:47,177 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:54:47,177 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:54:47,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:54:47,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:54:47,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:54:47,178 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:54:47,178 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:54:47,182 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:55:31,669 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:55:31,670 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:55:31,671 - sqlalchemy.engine.Engine - INFO - [cached since 1788s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 55, 31, 667733))
2025-04-30 09:55:31,673 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:55:47,211 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:55:47,211 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:55:47,211 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:55:47,213 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:55:47,213 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:55:47,213 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:55:47,213 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:55:47,213 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:55:47,213 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:55:47,213 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:55:47,213 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:55:47,213 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:55:47,213 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:55:47,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:55:47,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:55:47,216 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:55:47,216 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:55:47,216 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:55:47,216 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:55:47,216 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:55:47,216 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:55:47,217 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:55:47,217 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:55:47,217 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:55:47,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:55:47,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:55:47,217 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:55:47,217 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:55:47,217 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:55:47,227 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:56:31,693 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:56:31,695 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:56:31,695 - sqlalchemy.engine.Engine - INFO - [cached since 1848s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 56, 31, 691077))
2025-04-30 09:56:31,697 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:56:47,276 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:56:47,280 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:56:47,281 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:56:47,281 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:56:47,283 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:56:47,284 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:56:47,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:56:47,288 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:56:47,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:56:47,292 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:56:47,292 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:56:47,295 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:56:47,297 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:56:47,298 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:56:47,299 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:56:47,299 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:56:47,301 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:56:47,303 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:56:47,308 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:56:47,309 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:56:47,309 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:56:47,310 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:56:47,312 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:56:47,314 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:56:47,315 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:56:47,316 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:56:47,319 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:56:47,321 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:56:47,323 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:56:47,331 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:57:31,712 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:57:31,713 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:57:31,714 - sqlalchemy.engine.Engine - INFO - [cached since 1908s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 57, 31, 711263))
2025-04-30 09:57:31,717 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:57:47,347 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:57:47,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:57:47,349 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:57:47,350 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:57:47,350 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:57:47,350 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:57:47,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:57:47,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:57:47,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:57:47,352 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:57:47,353 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:57:47,355 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:57:47,355 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:57:47,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:57:47,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:57:47,356 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:57:47,356 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:57:47,356 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:57:47,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:57:47,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:57:47,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:57:47,357 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:57:47,357 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:57:47,357 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:57:47,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:57:47,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:57:47,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:57:47,357 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:57:47,358 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:57:47,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:58:31,701 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:58:31,703 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:58:31,703 - sqlalchemy.engine.Engine - INFO - [cached since 1968s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 58, 31, 700044))
2025-04-30 09:58:31,704 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:58:47,419 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:58:47,420 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:58:47,420 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:58:47,420 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:58:47,421 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:58:47,421 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:58:47,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:58:47,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:58:47,422 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:58:47,423 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:58:47,423 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:58:47,423 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:58:47,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:58:47,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:58:47,424 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:58:47,424 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:58:47,425 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:58:47,425 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:58:47,425 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:58:47,426 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:58:47,426 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:58:47,426 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:58:47,426 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:58:47,426 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:58:47,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:58:47,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:58:47,427 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:58:47,428 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:58:47,428 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:58:47,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 09:59:31,719 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 09:59:31,721 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 09:59:31,721 - sqlalchemy.engine.Engine - INFO - [cached since 2028s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 8, 59, 31, 719021))
2025-04-30 09:59:31,722 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 09:59:47,452 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 09:59:47,453 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 09:59:47,453 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 09:59:47,454 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 09:59:47,455 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 09:59:47,455 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 09:59:47,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 09:59:47,461 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 09:59:47,463 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 09:59:47,464 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 09:59:47,466 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 09:59:47,468 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 09:59:47,469 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 09:59:47,469 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 09:59:47,470 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 09:59:47,470 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 09:59:47,470 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 09:59:47,471 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 09:59:47,471 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 09:59:47,472 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 09:59:47,472 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 09:59:47,472 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 09:59:47,472 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 09:59:47,473 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 09:59:47,473 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 09:59:47,474 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 09:59:47,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 09:59:47,475 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 09:59:47,477 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 09:59:47,485 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:00:31,727 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:00:31,727 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:00:31,727 - sqlalchemy.engine.Engine - INFO - [cached since 2088s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 0, 31, 726870))
2025-04-30 10:00:31,728 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:00:47,494 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:00:47,499 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:00:47,499 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:00:47,499 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:00:47,499 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:00:47,501 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:00:47,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:00:47,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:00:47,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:00:47,503 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:00:47,503 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:00:47,503 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:00:47,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:00:47,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:00:47,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:00:47,504 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:00:47,504 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:00:47,504 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:00:47,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:00:47,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:00:47,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:00:47,504 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:00:47,504 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:00:47,504 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:00:47,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:00:47,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:00:47,505 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:00:47,505 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:00:47,505 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:00:47,510 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:01:31,734 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:01:31,734 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:01:31,734 - sqlalchemy.engine.Engine - INFO - [cached since 2148s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 1, 31, 734339))
2025-04-30 10:01:31,740 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:01:47,559 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:01:47,559 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:01:47,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:01:47,561 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:01:47,561 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:01:47,562 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:01:47,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:01:47,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:01:47,563 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:01:47,565 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:01:47,565 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:01:47,565 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:01:47,565 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:01:47,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:01:47,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:01:47,567 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:01:47,567 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:01:47,568 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:01:47,568 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:01:47,568 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:01:47,568 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:01:47,568 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:01:47,569 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:01:47,569 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:01:47,569 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:01:47,569 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:01:47,569 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:01:47,569 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:01:47,569 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:01:47,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:02:31,745 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:02:31,749 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:02:31,750 - sqlalchemy.engine.Engine - INFO - [cached since 2208s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 2, 31, 745800))
2025-04-30 10:02:31,752 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:02:47,604 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:02:47,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:02:47,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:02:47,610 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:02:47,611 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:02:47,611 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:02:47,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:02:47,617 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:02:47,619 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:02:47,620 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:02:47,620 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:02:47,620 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:02:47,621 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:02:47,621 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:02:47,621 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:02:47,621 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:02:47,621 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:02:47,621 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:02:47,622 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:02:47,623 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:02:47,623 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:02:47,623 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:02:47,623 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:02:47,624 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:02:47,624 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:02:47,625 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:02:47,627 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:02:47,629 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:02:47,631 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:02:47,638 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:03:31,781 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:03:31,784 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:03:31,787 - sqlalchemy.engine.Engine - INFO - [cached since 2268s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 3, 31, 779512))
2025-04-30 10:03:31,788 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:03:47,655 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:03:47,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:03:47,661 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:03:47,662 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:03:47,664 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:03:47,664 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:03:47,665 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:03:47,665 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:03:47,665 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:03:47,665 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:03:47,665 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:03:47,665 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:03:47,666 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:03:47,666 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:03:47,666 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:03:47,666 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:03:47,666 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:03:47,668 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:03:47,668 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:03:47,668 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:03:47,668 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:03:47,668 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:03:47,668 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:03:47,668 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:03:47,668 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:03:47,668 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:03:47,668 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:03:47,668 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:03:47,669 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:03:47,677 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:04:31,785 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:04:31,786 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:04:31,787 - sqlalchemy.engine.Engine - INFO - [cached since 2328s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 4, 31, 783165))
2025-04-30 10:04:31,790 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:04:47,705 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:04:47,706 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:04:47,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:04:47,710 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:04:47,711 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:04:47,712 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:04:47,715 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:04:47,715 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:04:47,717 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:04:47,719 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:04:47,719 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:04:47,720 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:04:47,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:04:47,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:04:47,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:04:47,729 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:04:47,730 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:04:47,731 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:04:47,732 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:04:47,732 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:04:47,734 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:04:47,736 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:04:47,737 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:04:47,737 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:04:47,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:04:47,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:04:47,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:04:47,742 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:04:47,743 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:04:47,751 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:05:31,785 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:05:31,792 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:05:31,797 - sqlalchemy.engine.Engine - INFO - [cached since 2388s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 5, 31, 785076))
2025-04-30 10:05:31,801 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:05:47,788 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:05:47,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:05:47,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:05:47,793 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:05:47,794 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:05:47,794 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:05:47,794 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:05:47,794 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:05:47,794 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:05:47,795 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:05:47,795 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:05:47,795 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:05:47,795 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:05:47,796 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:05:47,796 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:05:47,796 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:05:47,796 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:05:47,796 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:05:47,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:05:47,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:05:47,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:05:47,797 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:05:47,797 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:05:47,797 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:05:47,798 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:05:47,798 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:05:47,798 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:05:47,798 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:05:47,798 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:05:47,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:06:31,819 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:06:31,820 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:06:31,820 - sqlalchemy.engine.Engine - INFO - [cached since 2448s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 6, 31, 817350))
2025-04-30 10:06:31,824 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:06:47,826 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:06:47,828 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:06:47,829 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:06:47,830 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:06:47,832 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:06:47,832 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:06:47,834 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:06:47,835 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:06:47,838 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:06:47,840 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:06:47,840 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:06:47,842 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:06:47,843 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:06:47,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:06:47,846 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:06:47,847 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:06:47,850 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:06:47,853 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:06:47,857 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:06:47,861 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:06:47,861 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:06:47,863 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:06:47,865 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:06:47,867 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:06:47,871 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:06:47,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:06:47,874 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:06:47,875 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:06:47,875 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:06:47,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:07:31,844 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:07:31,847 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:07:31,850 - sqlalchemy.engine.Engine - INFO - [cached since 2508s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 7, 31, 843357))
2025-04-30 10:07:31,856 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:07:47,916 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:07:47,921 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:07:47,924 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:07:47,924 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:07:47,925 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:07:47,925 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:07:47,925 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:07:47,925 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:07:47,925 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:07:47,926 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:07:47,927 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:07:47,927 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:07:47,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:07:47,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:07:47,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:07:47,930 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:07:47,930 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:07:47,930 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:07:47,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:07:47,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:07:47,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:07:47,931 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:07:47,931 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:07:47,931 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:07:47,931 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:07:47,931 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:07:47,931 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:07:47,931 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:07:47,931 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:07:47,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:08:31,852 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:08:31,853 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:08:31,855 - sqlalchemy.engine.Engine - INFO - [cached since 2568s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 8, 31, 851219))
2025-04-30 10:08:31,861 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:08:47,940 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:08:47,943 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:08:47,946 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:08:47,948 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:08:47,948 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:08:47,948 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:08:47,948 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:08:47,948 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:08:47,950 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:08:47,950 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:08:47,950 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:08:47,950 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:08:47,950 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:08:47,950 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:08:47,950 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:08:47,950 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:08:47,951 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:08:47,951 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:08:47,951 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:08:47,951 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:08:47,951 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:08:47,951 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:08:47,951 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:08:47,951 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:08:47,951 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:08:47,951 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:08:47,951 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:08:47,951 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:08:47,951 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:08:47,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:09:31,850 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:09:31,851 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:09:31,855 - sqlalchemy.engine.Engine - INFO - [cached since 2628s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 9, 31, 849815))
2025-04-30 10:09:31,859 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:09:47,978 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:09:47,979 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:09:47,979 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:09:47,980 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:09:47,980 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:09:47,980 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:09:47,981 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:09:47,981 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:09:47,982 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:09:47,982 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:09:47,982 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:09:47,982 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:09:47,982 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:09:47,982 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:09:47,982 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:09:47,984 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:09:47,984 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:09:47,984 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:09:47,984 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:09:47,984 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:09:47,984 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:09:47,984 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:09:47,984 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:09:47,984 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:09:47,984 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:09:47,985 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:09:47,985 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:09:47,985 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:09:47,985 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:09:47,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:10:31,869 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:10:31,871 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:10:31,874 - sqlalchemy.engine.Engine - INFO - [cached since 2688s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 10, 31, 868983))
2025-04-30 10:10:31,878 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:10:48,022 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:10:48,027 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:10:48,028 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:10:48,029 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:10:48,031 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:10:48,031 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:10:48,033 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:10:48,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:10:48,037 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:10:48,038 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:10:48,039 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:10:48,039 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:10:48,040 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:10:48,041 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:10:48,041 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:10:48,042 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:10:48,043 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:10:48,045 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:10:48,049 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:10:48,049 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:10:48,050 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:10:48,050 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:10:48,052 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:10:48,052 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:10:48,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:10:48,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:10:48,056 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:10:48,057 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:10:48,058 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:10:48,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:11:31,884 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:11:31,886 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:11:31,887 - sqlalchemy.engine.Engine - INFO - [cached since 2748s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 11, 31, 882360))
2025-04-30 10:11:31,889 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:11:48,075 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:11:48,076 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:11:48,076 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:11:48,077 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:11:48,077 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:11:48,078 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:11:48,078 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:11:48,078 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:11:48,078 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:11:48,079 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:11:48,079 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:11:48,079 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:11:48,079 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:11:48,079 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:11:48,079 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:11:48,079 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:11:48,079 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:11:48,079 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:11:48,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:11:48,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:11:48,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:11:48,080 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:11:48,080 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:11:48,080 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:11:48,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:11:48,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:11:48,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:11:48,080 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:11:48,081 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:11:48,085 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:12:31,882 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:12:31,884 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:12:31,884 - sqlalchemy.engine.Engine - INFO - [cached since 2808s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 12, 31, 881868))
2025-04-30 10:12:31,885 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:12:48,117 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:12:48,119 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:12:48,119 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:12:48,119 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:12:48,120 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:12:48,120 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:12:48,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:12:48,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:12:48,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:12:48,122 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:12:48,122 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:12:48,122 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:12:48,122 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:12:48,122 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:12:48,122 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:12:48,122 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:12:48,123 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:12:48,123 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:12:48,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:12:48,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:12:48,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:12:48,123 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:12:48,123 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:12:48,123 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:12:48,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:12:48,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:12:48,124 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:12:48,124 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:12:48,124 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:12:48,128 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:13:31,905 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:13:31,906 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:13:31,907 - sqlalchemy.engine.Engine - INFO - [cached since 2868s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 13, 31, 904363))
2025-04-30 10:13:31,909 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:13:48,172 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:13:48,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:13:48,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:13:48,174 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:13:48,174 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:13:48,174 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:13:48,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:13:48,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:13:48,175 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:13:48,175 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:13:48,175 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:13:48,176 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:13:48,176 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:13:48,176 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:13:48,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:13:48,177 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:13:48,177 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:13:48,177 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:13:48,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:13:48,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:13:48,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:13:48,178 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:13:48,178 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:13:48,178 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:13:48,178 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:13:48,178 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:13:48,178 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:13:48,179 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:13:48,179 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:13:48,183 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:14:08,785 - app - INFO - 应用程序关闭中...
2025-04-30 10:14:08,785 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 10:14:08,785 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 10:14:08,787 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 10:14:08,787 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 10:14:08,787 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 10:14:08,787 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 10:14:08,787 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 10:14:08,787 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 10:14:08,787 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 10:14:08,787 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 10:14:08,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:14:08,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:14:08,788 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:14:08,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:14:08,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:14:08,788 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-30 10:14:08,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:14:08,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:14:08,788 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-30 10:14:08,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:14:08,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:14:08,789 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-30 10:14:08,789 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:14:08,789 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:14:08,789 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-30 10:14:08,789 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 10:14:08,789 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 10:14:08,789 - app - INFO - 增强版任务调度器已停止
2025-04-30 10:14:08,789 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 10:14:08,790 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 10:14:08,790 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 10:14:08,790 - data.session - INFO - 数据库连接已关闭
2025-04-30 10:14:11,772 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 10:14:11,827 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 10:14:11,828 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 10:14:12,493 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 10:14:12,554 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 10:14:12,556 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 10:14:12,620 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 10:14:12,677 - data.session - INFO - 正在初始化数据库...
2025-04-30 10:14:12,689 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 10:14:12,691 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:14:12,691 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:14:12,691 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:14:12,693 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:14:12,693 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:14:12,693 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:14:12,693 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:12,694 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 10:14:12,695 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:14:12,696 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 10:14:12,697 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:14:12,699 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 10:14:12,700 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:14:12,701 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 10:14:12,701 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:14:12,702 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 10:14:12,702 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:14:12,703 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 10:14:12,703 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:14:12,705 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 10:14:12,706 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:14:12,707 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 10:14:12,707 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:14:12,708 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 10:14:12,708 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:14:12,709 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 10:14:12,709 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:14:12,710 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 10:14:12,710 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:14:12,711 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:12,711 - data.session - INFO - 数据库表初始化完成
2025-04-30 10:14:13,069 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 10:14:13,069 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 10:14:13,069 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 10:14:13,069 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 10:14:13,069 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 10:14:13,069 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 10:14:13,071 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 10:14:13,071 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 10:14:13,071 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 10:14:13,071 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 10:14:13,072 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:14:13,072 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 10:14:13,072 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 10:14:13,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:14:13,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:14:13,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:14:13,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:14:13,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:14:13,074 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 10:14:13,074 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 10:14:13,076 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:14:13,076 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:14:13,077 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:14:13,077 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:14:13,077 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:14:13,077 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:14:13,078 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:14:13,078 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:13,089 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 10:14:13,090 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 10:14:13,092 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 10:14:13,092 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:13,092 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 10:14:13,092 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 10:14:13,092 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 10:14:13,093 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:13,094 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 10:14:13,095 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 10:14:13,116 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:13,117 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:14:13,118 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 10:14:13,118 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 10:14:13,118 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 10:14:13,118 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 10:14:13,119 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:13,120 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:14:13,120 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 14, 13, 93618))
2025-04-30 10:14:13,121 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:16,339 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 10:14:16,344 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:16,346 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:14:16,349 - sqlalchemy.engine.Engine - INFO - [generated in 0.00306s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:14:16,354 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:16,355 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:16,358 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:14:16,362 - sqlalchemy.engine.Engine - INFO - [cached since 0.01568s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:14:16,365 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:16,369 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 10:14:16,369 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 10:14:16,369 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 10:14:16,371 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:16,373 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 10:14:16,376 - sqlalchemy.engine.Engine - INFO - [generated in 0.00371s] (None, datetime.datetime(2025, 4, 30, 10, 14, 16, 373121), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 10:14:16,379 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:16,394 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:16,394 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:14:16,394 - sqlalchemy.engine.Engine - INFO - [cached since 0.04831s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:14:16,396 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:14:16,400 - sqlalchemy.engine.Engine - INFO - [generated in 0.00382s] ('fcb5f509-d7a1-4bf7-bd64-569a8b5852e9', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 10, 14, 16, 369122), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.4", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 10, 14, 16, 396660), datetime.datetime(2025, 4, 30, 10, 14, 16, 396660), 0)
2025-04-30 10:14:16,401 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:16,407 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:16,408 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:14:16,408 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] ('fcb5f509-d7a1-4bf7-bd64-569a8b5852e9',)
2025-04-30 10:14:16,409 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:16,410 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 fcb5f509-d7a1-4bf7-bd64-569a8b5852e9 (优先级 1) 添加到队列 0
2025-04-30 10:14:16,413 - services.sync_service - INFO - 正在同步创建任务到天风系统: fcb5f509-d7a1-4bf7-bd64-569a8b5852e9
2025-04-30 10:14:16,414 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"fcb5f509-d7a1-4bf7-bd64-569a8b5852e9","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 10:14:16","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 10:14:16,448 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: fcb5f509-d7a1-4bf7-bd64-569a8b5852e9, 优先级: 1
2025-04-30 10:14:16,448 - services.execution.task_executor - DEBUG - 任务 fcb5f509-d7a1-4bf7-bd64-569a8b5852e9 设置超时时间: 3600秒
2025-04-30 10:14:16,448 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:16,449 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:14:16,449 - sqlalchemy.engine.Engine - INFO - [cached since 0.04068s ago] ('fcb5f509-d7a1-4bf7-bd64-569a8b5852e9',)
2025-04-30 10:14:16,450 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:14:16,450 - sqlalchemy.engine.Engine - INFO - [cached since 0.1043s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:14:16,451 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 10:14:16,451 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (datetime.datetime(2025, 4, 30, 10, 14, 16, 451847), datetime.datetime(2025, 4, 30, 10, 14, 16, 451847), 'fcb5f509-d7a1-4bf7-bd64-569a8b5852e9')
2025-04-30 10:14:16,453 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:16,461 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:16,462 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 10:14:16,462 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 14, 16, 462978), 'fcb5f509-d7a1-4bf7-bd64-569a8b5852e9')
2025-04-30 10:14:16,463 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:16,472 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 10:14:16,472 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:16,474 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:14:16,474 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] ('99a1d7f0-3652-45f8-8390-2674342f1e9c', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'fcb5f509-d7a1-4bf7-bd64-569a8b5852e9', datetime.datetime(2025, 4, 30, 10, 14, 16, 472974), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 10, 14, 16, 474976), datetime.datetime(2025, 4, 30, 10, 14, 16, 474976), 0)
2025-04-30 10:14:16,475 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:16,481 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:16,483 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 10:14:16,483 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('99a1d7f0-3652-45f8-8390-2674342f1e9c',)
2025-04-30 10:14:16,484 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 10:14:16,484 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 10:14:16,485 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 10:14:16,485 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 10, 14, 16, 485816), '99a1d7f0-3652-45f8-8390-2674342f1e9c')
2025-04-30 10:14:16,486 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:16,511 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 10:14:16,511 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 10:14:16,512 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 10:14:16,513 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:16,514 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:14:16,514 - sqlalchemy.engine.Engine - INFO - [cached since 0.03955s ago] ('115e240a-096d-413c-85be-7a695e06ef52', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'fcb5f509-d7a1-4bf7-bd64-569a8b5852e9', datetime.datetime(2025, 4, 30, 10, 14, 16, 512257), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 10, 14, 16, 514316), datetime.datetime(2025, 4, 30, 10, 14, 16, 514316), 0)
2025-04-30 10:14:16,515 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:16,522 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 115e240a-096d-413c-85be-7a695e06ef52
2025-04-30 10:14:16,524 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:16,524 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 10:14:16,524 - sqlalchemy.engine.Engine - INFO - [cached since 0.04093s ago] ('115e240a-096d-413c-85be-7a695e06ef52',)
2025-04-30 10:14:16,525 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 10:14:16,525 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 10:14:16,525 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 10:14:16,526 - sqlalchemy.engine.Engine - INFO - [cached since 0.04088s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 10, 14, 16, 525783), '115e240a-096d-413c-85be-7a695e06ef52')
2025-04-30 10:14:16,528 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:16,534 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 10:14:16,534 - services.sync_service - INFO - 正在创建选择AMR任务: fcb5f509-d7a1-4bf7-bd64-569a8b5852e9, 站点: TK01
2025-04-30 10:14:16,535 - services.sync_service - INFO - 成功同步任务到系统任务: fcb5f509-d7a1-4bf7-bd64-569a8b5852e9
2025-04-30 10:14:16,536 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: fcb5f509-d7a1-4bf7-bd64-569a8b5852e9
2025-04-30 10:14:16,536 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: fcb5f509-d7a1-4bf7-bd64-569a8b5852e9
2025-04-30 10:14:16,536 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1970秒
2025-04-30 10:14:16,559 - services.sync_service - INFO - 成功为任务选择AMR: fcb5f509-d7a1-4bf7-bd64-569a8b5852e9, AMR: None
2025-04-30 10:14:16,562 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917402086048419842 的AMR选择结果
2025-04-30 10:14:16,562 - services.sync_service - INFO - 开始等待任务块 1917402086048419842 的AMR选择结果
2025-04-30 10:14:16,562 - services.sync_service - INFO - 正在获取任务块详情: 1917402086048419842
2025-04-30 10:14:16,588 - services.sync_service - INFO - 成功获取任务块详情: 1917402086048419842 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917402086048419842', 'taskId': '1917402085943562241', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:14:16', 'updateTime': None}, 'timestamp': 1745979255611}
2025-04-30 10:14:16,604 - services.sync_service - DEBUG - 任务块 1917402086048419842 AMR选择未完成，已尝试 1 次
2025-04-30 10:14:17,117 - services.sync_service - INFO - 正在获取任务块详情: 1917402086048419842
2025-04-30 10:14:17,133 - services.sync_service - INFO - 成功获取任务块详情: 1917402086048419842 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917402086048419842', 'taskId': '1917402085943562241', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:14:16', 'updateTime': None}, 'timestamp': 1745979256156}
2025-04-30 10:14:17,134 - services.sync_service - DEBUG - 任务块 1917402086048419842 AMR选择未完成，已尝试 2 次
2025-04-30 10:14:17,444 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:17,446 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:14:17,446 - sqlalchemy.engine.Engine - INFO - [generated in 0.00056s] ('fcb5f509-d7a1-4bf7-bd64-569a8b5852e9',)
2025-04-30 10:14:17,448 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:17,629 - services.sync_service - INFO - 正在获取任务块详情: 1917402086048419842
2025-04-30 10:14:17,657 - services.sync_service - INFO - 成功获取任务块详情: 1917402086048419842 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917402086048419842', 'taskId': '1917402085943562241', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:14:16', 'updateTime': None}, 'timestamp': 1745979256676}
2025-04-30 10:14:17,657 - services.sync_service - DEBUG - 任务块 1917402086048419842 AMR选择未完成，已尝试 3 次
2025-04-30 10:14:18,173 - services.sync_service - INFO - 正在获取任务块详情: 1917402086048419842
2025-04-30 10:14:18,191 - services.sync_service - INFO - 成功获取任务块详情: 1917402086048419842 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917402086048419842', 'taskId': '1917402085943562241', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:14:16', 'updateTime': None}, 'timestamp': 1745979257214}
2025-04-30 10:14:18,192 - services.sync_service - DEBUG - 任务块 1917402086048419842 AMR选择未完成，已尝试 4 次
2025-04-30 10:14:18,454 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:18,457 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:14:18,459 - sqlalchemy.engine.Engine - INFO - [cached since 1.012s ago] ('fcb5f509-d7a1-4bf7-bd64-569a8b5852e9',)
2025-04-30 10:14:18,466 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:18,718 - services.sync_service - INFO - 正在获取任务块详情: 1917402086048419842
2025-04-30 10:14:18,764 - services.sync_service - INFO - 成功获取任务块详情: 1917402086048419842 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917402086048419842', 'taskId': '1917402085943562241', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:14:16', 'updateTime': None}, 'timestamp': 1745979257787}
2025-04-30 10:14:18,766 - services.sync_service - DEBUG - 任务块 1917402086048419842 AMR选择未完成，已尝试 5 次
2025-04-30 10:14:19,265 - services.sync_service - INFO - 正在获取任务块详情: 1917402086048419842
2025-04-30 10:14:19,286 - services.sync_service - INFO - 成功获取任务块详情: 1917402086048419842 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917402086048419842', 'taskId': '1917402085943562241', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:14:16', 'updateTime': None}, 'timestamp': 1745979258307}
2025-04-30 10:14:19,288 - services.sync_service - DEBUG - 任务块 1917402086048419842 AMR选择未完成，已尝试 6 次
2025-04-30 10:14:19,468 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:19,469 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:14:19,471 - sqlalchemy.engine.Engine - INFO - [cached since 2.025s ago] ('fcb5f509-d7a1-4bf7-bd64-569a8b5852e9',)
2025-04-30 10:14:19,472 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:19,780 - services.sync_service - INFO - 正在获取任务块详情: 1917402086048419842
2025-04-30 10:14:19,824 - services.sync_service - INFO - 成功获取任务块详情: 1917402086048419842 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917402086048419842', 'taskId': '1917402085943562241', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:14:16', 'updateTime': None}, 'timestamp': 1745979258848}
2025-04-30 10:14:19,824 - services.sync_service - DEBUG - 任务块 1917402086048419842 AMR选择未完成，已尝试 7 次
2025-04-30 10:14:20,322 - services.sync_service - INFO - 正在获取任务块详情: 1917402086048419842
2025-04-30 10:14:20,348 - services.sync_service - INFO - 成功获取任务块详情: 1917402086048419842 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917402086048419842', 'taskId': '1917402085943562241', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:14:16', 'updateTime': None}, 'timestamp': 1745979259369}
2025-04-30 10:14:20,349 - services.sync_service - DEBUG - 任务块 1917402086048419842 AMR选择未完成，已尝试 8 次
2025-04-30 10:14:20,479 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:20,480 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:14:20,480 - sqlalchemy.engine.Engine - INFO - [cached since 3.035s ago] ('fcb5f509-d7a1-4bf7-bd64-569a8b5852e9',)
2025-04-30 10:14:20,481 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:20,868 - services.sync_service - INFO - 正在获取任务块详情: 1917402086048419842
2025-04-30 10:14:20,913 - services.sync_service - INFO - 成功获取任务块详情: 1917402086048419842 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917402086048419842', 'taskId': '1917402085943562241', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:14:16', 'updateTime': None}, 'timestamp': 1745979259936}
2025-04-30 10:14:20,913 - services.sync_service - DEBUG - 任务块 1917402086048419842 AMR选择未完成，已尝试 9 次
2025-04-30 10:14:21,412 - services.sync_service - INFO - 正在获取任务块详情: 1917402086048419842
2025-04-30 10:14:21,457 - services.sync_service - INFO - 成功获取任务块详情: 1917402086048419842 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917402086048419842', 'taskId': '1917402085943562241', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:14:16', 'updateTime': None}, 'timestamp': 1745979260469}
2025-04-30 10:14:21,458 - services.sync_service - INFO - 任务块 1917402086048419842 AMR选择未完成(amrId/appointAmrId/appointAmrGroupId均为空)，已尝试 10 次，继续等待...
2025-04-30 10:14:21,488 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:21,489 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:14:21,490 - sqlalchemy.engine.Engine - INFO - [cached since 4.045s ago] ('fcb5f509-d7a1-4bf7-bd64-569a8b5852e9',)
2025-04-30 10:14:21,492 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:21,956 - services.sync_service - INFO - 正在获取任务块详情: 1917402086048419842
2025-04-30 10:14:21,975 - services.sync_service - INFO - 成功获取任务块详情: 1917402086048419842 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917402086048419842', 'taskId': '1917402085943562241', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:14:16', 'updateTime': None}, 'timestamp': 1745979260997}
2025-04-30 10:14:21,975 - services.sync_service - DEBUG - 任务块 1917402086048419842 AMR选择未完成，已尝试 11 次
2025-04-30 10:14:22,497 - services.sync_service - INFO - 正在获取任务块详情: 1917402086048419842
2025-04-30 10:14:22,498 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:22,499 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:14:22,499 - sqlalchemy.engine.Engine - INFO - [cached since 5.054s ago] ('fcb5f509-d7a1-4bf7-bd64-569a8b5852e9',)
2025-04-30 10:14:22,500 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:22,534 - services.sync_service - INFO - 成功获取任务块详情: 1917402086048419842 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917402086048419842', 'taskId': '1917402085943562241', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:14:16', 'updateTime': None}, 'timestamp': 1745979261550}
2025-04-30 10:14:22,535 - services.sync_service - DEBUG - 任务块 1917402086048419842 AMR选择未完成，已尝试 12 次
2025-04-30 10:14:23,026 - services.sync_service - INFO - 正在获取任务块详情: 1917402086048419842
2025-04-30 10:14:23,045 - services.sync_service - INFO - 成功获取任务块详情: 1917402086048419842 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917402086048419842', 'taskId': '1917402085943562241', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:14:16', 'updateTime': None}, 'timestamp': 1745979262067}
2025-04-30 10:14:23,047 - services.sync_service - DEBUG - 任务块 1917402086048419842 AMR选择未完成，已尝试 13 次
2025-04-30 10:14:23,525 - services.sync_service - INFO - 正在获取任务块详情: 1917402086048419842
2025-04-30 10:14:23,526 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:23,527 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:14:23,527 - sqlalchemy.engine.Engine - INFO - [cached since 6.082s ago] ('fcb5f509-d7a1-4bf7-bd64-569a8b5852e9',)
2025-04-30 10:14:23,529 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:23,570 - services.sync_service - INFO - 成功获取任务块详情: 1917402086048419842 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917402086048419842', 'taskId': '1917402085943562241', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:14:16', 'updateTime': None}, 'timestamp': 1745979262593}
2025-04-30 10:14:23,571 - services.sync_service - DEBUG - 任务块 1917402086048419842 AMR选择未完成，已尝试 14 次
2025-04-30 10:14:24,087 - services.sync_service - INFO - 正在获取任务块详情: 1917402086048419842
2025-04-30 10:14:24,105 - services.sync_service - INFO - 成功获取任务块详情: 1917402086048419842 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917402086048419842', 'taskId': '1917402085943562241', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:14:16', 'updateTime': None}, 'timestamp': 1745979263129}
2025-04-30 10:14:24,105 - services.sync_service - DEBUG - 任务块 1917402086048419842 AMR选择未完成，已尝试 15 次
2025-04-30 10:14:24,524 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:24,526 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:14:24,529 - sqlalchemy.engine.Engine - INFO - [cached since 7.083s ago] ('fcb5f509-d7a1-4bf7-bd64-569a8b5852e9',)
2025-04-30 10:14:24,533 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:24,600 - services.sync_service - INFO - 正在获取任务块详情: 1917402086048419842
2025-04-30 10:14:24,621 - services.sync_service - INFO - 成功获取任务块详情: 1917402086048419842 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917402086048419842', 'taskId': '1917402085943562241', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:14:16', 'updateTime': '2025-04-30 10:14:23'}, 'timestamp': 1745979263644}
2025-04-30 10:14:24,622 - services.sync_service - INFO - 任务块 1917402086048419842 已选择AMR: 1912328602264645634，共尝试 16 次
2025-04-30 10:14:24,622 - services.execution.handlers.robot_scheduling - INFO - 准备更新任务 fcb5f509-d7a1-4bf7-bd64-569a8b5852e9 的机器人ID: 1912328602264645634
2025-04-30 10:14:24,623 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:24,623 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.agv_id 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:14:24,624 - sqlalchemy.engine.Engine - INFO - [generated in 0.00071s] ('fcb5f509-d7a1-4bf7-bd64-569a8b5852e9',)
2025-04-30 10:14:24,626 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET agv_id=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 10:14:24,627 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] ('1912328602264645634', datetime.datetime(2025, 4, 30, 10, 14, 24, 626370), 'fcb5f509-d7a1-4bf7-bd64-569a8b5852e9')
2025-04-30 10:14:24,628 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:24,642 - services.execution.handlers.robot_scheduling - INFO - 成功更新任务记录 fcb5f509-d7a1-4bf7-bd64-569a8b5852e9 的agv_id字段: 1912328602264645634
2025-04-30 10:14:24,642 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 10:14:24,642 - services.execution.handlers.robot_scheduling - INFO - 块 b1(ID:1) 有 1 个子块
2025-04-30 10:14:24,642 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: [2]
2025-04-30 10:14:24,642 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 10:14:24,642 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 1 个
2025-04-30 10:14:24,642 - services.execution.handlers.robot_scheduling - INFO - 1. b2(ID:2, 类型:CAgvOperationBp, 关系:direct_child)
2025-04-30 10:14:24,642 - services.execution.handlers.robot_scheduling - INFO - 开始执行选择机器人块 b1 的子块
2025-04-30 10:14:24,642 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-30 10:14:24,642 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 1 个子块
2025-04-30 10:14:24,642 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b2, ID: 2, 类型: CAgvOperationBp
2025-04-30 10:14:24,644 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:24,644 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:14:24,644 - sqlalchemy.engine.Engine - INFO - [cached since 8.17s ago] ('18c7b22b-fdd8-4c44-868c-1e78acd65692', 'b2', '2', '', '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"targetSiteLabel": "PT02", "scriptName": "JackUnload"}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917402086048419842"}', 'CAgvOperationBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'fcb5f509-d7a1-4bf7-bd64-569a8b5852e9', datetime.datetime(2025, 4, 30, 10, 14, 24, 644436), <TaskBlockRecordStatus.RUNNING: 1001>, '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917402086048419842"}', 1, datetime.datetime(2025, 4, 30, 10, 14, 24, 644436), datetime.datetime(2025, 4, 30, 10, 14, 24, 644436), 0)
2025-04-30 10:14:24,645 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:24,651 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 18c7b22b-fdd8-4c44-868c-1e78acd65692
2025-04-30 10:14:24,651 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:24,652 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 10:14:24,652 - sqlalchemy.engine.Engine - INFO - [cached since 8.169s ago] ('18c7b22b-fdd8-4c44-868c-1e78acd65692',)
2025-04-30 10:14:24,656 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-30 10:14:24,656 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-30 10:14:24,656 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 10:14:24,657 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] ('{"selectedAgvId": "1912328602264645634"}', '执行中', "{'agv_for_block_2': '1912328602264645634', 'agv_for_b2': '1912328602264645634', 'agv_task_id_2': '1917402086048419842'}", '{"blocks": {"b2": {"selectedAgvId": "1912328602264645634"}}}', '执行中', datetime.datetime(2025, 4, 30, 10, 14, 24, 656123), '18c7b22b-fdd8-4c44-868c-1e78acd65692')
2025-04-30 10:14:24,657 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:24,662 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-30 10:14:24,663 - services.execution.handlers.robot_scheduling - INFO - 找到块 b2(ID:2) 专用的机器人ID: 1912328602264645634
2025-04-30 10:14:24,663 - services.execution.handlers.robot_scheduling - INFO - 执行机器人通用动作，块 b2(ID:2) 使用机器人: 1912328602264645634, 目标站点: PT02
2025-04-30 10:14:24,663 - services.sync_service - INFO - 正在为任务添加动作: 1917402086048419842, 站点: PT02, 动作: JackUnload
2025-04-30 10:14:24,694 - services.sync_service - INFO - 成功为任务添加动作: 1917402086048419842, 站点: PT02, 动作: JackUnload
2025-04-30 10:14:24,696 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:24,698 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:14:24,698 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('b02d99a0-d45e-4adc-97ad-8218448cee84', 1, '{"success": true, "message": "机器人移动成功，目标站点: PT02, 任务ID: ", "code": 200, "result": {"id": "1917402120173277185", "tenantId": 1000, "taskId": "19174020 ... (118 characters truncated) ... , "stationName": "PT02", "action": "JackUnload", "status": 1, "completeTime": null, "createTime": "2025-04-30 10:14:23"}, "timestamp": 1745979263718}', 2, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'fcb5f509-d7a1-4bf7-bd64-569a8b5852e9', datetime.datetime(2025, 4, 30, 10, 14, 24, 698269), datetime.datetime(2025, 4, 30, 10, 14, 24, 698269), 0)
2025-04-30 10:14:24,699 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:24,707 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:24,707 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 10:14:24,707 - sqlalchemy.engine.Engine - INFO - [cached since 8.224s ago] ('18c7b22b-fdd8-4c44-868c-1e78acd65692',)
2025-04-30 10:14:24,708 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-30 10:14:24,708 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['containerName']
2025-04-30 10:14:24,709 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 10:14:24,709 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('{"containerName": ""}', datetime.datetime(2025, 4, 30, 10, 14, 24, 708770), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, "{'agv_for_block_2': '1912328602264645634', 'agv_for_b2': '1912328602264645634', 'agv_task_id_2': '1917402086048419842', 'taskId': '', 'containerName': ''}", '{"blocks": {"b2": {"containerName": ""}}}', '执行成功', datetime.datetime(2025, 4, 30, 10, 14, 24, 709771), '18c7b22b-fdd8-4c44-868c-1e78acd65692')
2025-04-30 10:14:24,710 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:24,716 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 的子块执行成功
2025-04-30 10:14:24,716 - services.sync_service - INFO - 正在封口任务: 1917402086048419842
2025-04-30 10:14:24,738 - services.sync_service - INFO - 成功封口任务: 1917402086048419842
2025-04-30 10:14:24,738 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:24,738 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:14:24,738 - sqlalchemy.engine.Engine - INFO - [cached since 0.04108s ago] ('11a6652d-c4cf-4b2c-aa73-94a9a88e3e9e', 1, '{"success": true, "message": "选择执行机器人成功: 1912328602264645634，子块执行成功", "code": 200, "result": {"id": "1917402086048419842", "taskId": "191740208594356 ... (559 characters truncated) ...  "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 2, "success": true, "output": {}}]}}}}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'fcb5f509-d7a1-4bf7-bd64-569a8b5852e9', datetime.datetime(2025, 4, 30, 10, 14, 24, 738942), datetime.datetime(2025, 4, 30, 10, 14, 24, 738942), 0)
2025-04-30 10:14:24,740 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:24,748 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:24,749 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 10:14:24,749 - sqlalchemy.engine.Engine - INFO - [cached since 8.265s ago] ('115e240a-096d-413c-85be-7a695e06ef52',)
2025-04-30 10:14:24,750 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 10:14:24,750 - services.execution.block_executor - INFO - 为块 b1 存储输出: ['selectedAgvId']
2025-04-30 10:14:24,750 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 10:14:24,750 - sqlalchemy.engine.Engine - INFO - [cached since 0.04138s ago] ('{"selectedAgvId": "1912328602264645634"}', datetime.datetime(2025, 4, 30, 10, 14, 24, 750225), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, "{'agv_for_block_2': '1912328602264645634', 'agv_for_b2': '1912328602264645634', 'agv_task_id_2': '1917402086048419842', 'taskId': '', 'containerName': ''}", '{"blocks": {"b1": {"selectedAgvId": "1912328602264645634"}}}', '执行成功', datetime.datetime(2025, 4, 30, 10, 14, 24, 750225), '115e240a-096d-413c-85be-7a695e06ef52')
2025-04-30 10:14:24,752 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:24,757 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:24,757 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:14:24,757 - sqlalchemy.engine.Engine - INFO - [cached since 0.06024s ago] ('e1f97215-ab0f-4d6f-b08c-f286161ae687', 1, '{"success": true, "message": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 1, "success": true, " ... (251 characters truncated) ... essage": "分支 default 的所有子块执行完成", "output": {"executed": true, "branch": "default", "results": [{"child_id": 2, "success": true, "output": {}}]}}}}]}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'fcb5f509-d7a1-4bf7-bd64-569a8b5852e9', datetime.datetime(2025, 4, 30, 10, 14, 24, 757741), datetime.datetime(2025, 4, 30, 10, 14, 24, 757741), 0)
2025-04-30 10:14:24,759 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:24,764 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:24,765 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 10:14:24,765 - sqlalchemy.engine.Engine - INFO - [cached since 8.282s ago] ('99a1d7f0-3652-45f8-8390-2674342f1e9c',)
2025-04-30 10:14:24,765 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 10:14:24,766 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 10:14:24,766 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, internal_variables=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 10:14:24,766 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] (datetime.datetime(2025, 4, 30, 10, 14, 24, 766380), '执行成功', <TaskBlockRecordStatus.SUCCESS: 1000>, "{'agv_for_block_2': '1912328602264645634', 'agv_for_b2': '1912328602264645634', 'agv_task_id_2': '1917402086048419842', 'taskId': '', 'containerName': ''}", '执行成功', datetime.datetime(2025, 4, 30, 10, 14, 24, 766380), '99a1d7f0-3652-45f8-8390-2674342f1e9c')
2025-04-30 10:14:24,767 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:24,772 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:14:24,774 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 10:14:24,774 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (datetime.datetime(2025, 4, 30, 10, 14, 24, 772834), '任务执行成功', <TaskStatus.COMPLETED: 1000>, 8310, 1, datetime.datetime(2025, 4, 30, 10, 14, 24, 774261), 'fcb5f509-d7a1-4bf7-bd64-569a8b5852e9')
2025-04-30 10:14:24,775 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:14:24,782 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: fcb5f509-d7a1-4bf7-bd64-569a8b5852e9, 结果: True
2025-04-30 10:15:09,126 - app - INFO - 应用程序关闭中...
2025-04-30 10:15:09,126 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 10:15:09,126 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 10:15:09,126 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 10:15:09,126 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 10:15:09,126 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 10:15:09,126 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 10:15:09,126 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 10:15:09,127 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 10:15:09,127 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 10:15:09,127 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 10:15:09,127 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:15:09,127 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:15:09,127 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:15:09,127 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:15:09,128 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:15:09,128 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 10:15:09,128 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:15:09,128 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:15:09,128 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 10:15:09,128 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:15:09,128 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:15:09,128 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 10:15:09,128 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:15:09,128 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:15:09,129 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 10:15:09,129 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 10:15:09,129 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 10:15:09,129 - app - INFO - 增强版任务调度器已停止
2025-04-30 10:15:09,129 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 10:15:09,132 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 10:15:09,132 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 10:15:09,132 - data.session - INFO - 数据库连接已关闭
2025-04-30 10:15:10,323 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 10:15:10,380 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 10:15:10,384 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 10:15:10,443 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 10:15:10,488 - data.session - INFO - 正在初始化数据库...
2025-04-30 10:15:10,525 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 10:15:10,544 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:15:10,544 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:15:10,546 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:15:10,546 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:15:10,547 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:15:10,547 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:15:10,548 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:15:10,548 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 10:15:10,548 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:15:10,549 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 10:15:10,549 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:15:10,550 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 10:15:10,551 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:15:10,552 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 10:15:10,552 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:15:10,553 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 10:15:10,554 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:15:10,554 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 10:15:10,555 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:15:10,555 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 10:15:10,556 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:15:10,557 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 10:15:10,557 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:15:10,559 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 10:15:10,560 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:15:10,562 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 10:15:10,562 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:15:10,565 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 10:15:10,566 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:15:10,568 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:15:10,568 - data.session - INFO - 数据库表初始化完成
2025-04-30 10:15:10,905 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 10:15:10,906 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 10:15:10,906 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 10:15:10,906 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 10:15:10,907 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 10:15:10,907 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 10:15:10,908 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 10:15:10,908 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 10:15:10,908 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 10:15:10,908 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 10:15:10,908 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:15:10,909 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 10:15:10,909 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 10:15:10,910 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:15:10,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:15:10,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:15:10,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:15:10,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:15:10,911 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 10:15:10,911 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 10:15:10,912 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:15:10,913 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:15:10,913 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:15:10,913 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:15:10,913 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:15:10,913 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:15:10,915 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:15:10,915 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:15:10,924 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 10:15:10,924 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 10:15:10,924 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 10:15:10,925 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:15:10,926 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 10:15:10,926 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 10:15:10,926 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 10:15:10,927 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:15:10,928 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 10:15:10,928 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 10:15:10,930 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:15:10,930 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:15:10,931 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 10:15:10,931 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 10:15:10,931 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 10:15:10,932 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 10:15:10,932 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:15:10,933 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:15:10,933 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 15, 10, 926604))
2025-04-30 10:15:10,934 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:16:10,952 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:16:10,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:16:10,953 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:16:10,955 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:16:10,955 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:16:10,956 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:16:10,956 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:16:10,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:16:10,957 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:16:10,957 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:16:10,959 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:16:10,960 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 16, 10, 951608))
2025-04-30 10:16:10,962 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:16:10,962 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:16:10,962 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:16:10,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:16:10,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:16:10,962 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:16:10,962 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:16:10,962 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:16:10,963 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:16:10,963 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:16:10,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:16:10,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:16:10,963 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:16:10,966 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:16:10,968 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:16:10,969 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:16:10,969 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:16:10,969 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:16:10,970 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:16:10,970 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:16:10,970 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:16:10,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:17:10,985 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:17:10,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:17:10,989 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:17:10,989 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:17:10,990 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:17:10,990 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:17:10,990 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:17:10,990 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:17:10,991 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:17:10,991 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:17:10,992 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:17:10,993 - sqlalchemy.engine.Engine - INFO - [cached since 120.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 17, 10, 988326))
2025-04-30 10:17:10,995 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:17:10,995 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:17:10,996 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:17:10,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:17:10,997 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:17:10,997 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:17:10,997 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:17:10,998 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:17:10,998 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:17:10,999 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:17:11,000 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:17:11,000 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:17:11,000 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:17:11,001 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:17:11,001 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:17:11,001 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:17:11,001 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:17:11,002 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:17:11,002 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:17:11,002 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:17:11,002 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:17:11,007 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:18:11,022 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:18:11,024 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:18:11,025 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:18:11,027 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:18:11,029 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:18:11,029 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:18:11,032 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:18:11,032 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:18:11,033 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 18, 11, 21568))
2025-04-30 10:18:11,033 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:18:11,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:18:11,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:18:11,035 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:18:11,035 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:18:11,035 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:18:11,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:18:11,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:18:11,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:18:11,036 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:18:11,036 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:18:11,037 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:18:11,037 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:18:11,037 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:18:11,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:18:11,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:18:11,038 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:18:11,038 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:18:11,038 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:18:11,039 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:18:11,039 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:18:11,039 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:18:11,039 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:18:11,041 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:18:11,049 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:18:11,209 - app - INFO - 应用程序关闭中...
2025-04-30 10:18:11,209 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 10:18:11,211 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 10:18:11,212 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 10:18:11,213 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 10:18:11,216 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 10:18:11,216 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 10:18:11,216 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 10:18:11,218 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 10:18:11,219 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 10:18:11,219 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 10:18:11,219 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:18:11,219 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:18:11,219 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:18:11,219 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:18:11,219 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:18:11,219 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 10:18:11,219 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:18:11,219 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:18:11,219 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 10:18:11,219 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:18:11,219 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:18:11,219 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 10:18:11,219 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:18:11,219 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:18:11,219 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 10:18:11,219 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 10:18:11,219 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 10:18:11,219 - app - INFO - 增强版任务调度器已停止
2025-04-30 10:18:11,220 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 10:18:11,220 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 10:18:11,220 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 10:18:11,221 - data.session - INFO - 数据库连接已关闭
2025-04-30 10:18:12,535 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 10:18:12,590 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 10:18:12,594 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 10:18:12,655 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 10:18:12,702 - data.session - INFO - 正在初始化数据库...
2025-04-30 10:18:12,734 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 10:18:12,757 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:18:12,763 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:18:12,766 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:18:12,768 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:18:12,768 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:18:12,768 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:18:12,770 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:18:12,770 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 10:18:12,771 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:18:12,772 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 10:18:12,773 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:18:12,777 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 10:18:12,780 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:18:12,784 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 10:18:12,786 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:18:12,789 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 10:18:12,792 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:18:12,794 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 10:18:12,795 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:18:12,800 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 10:18:12,803 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:18:12,805 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 10:18:12,808 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:18:12,811 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 10:18:12,811 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:18:12,820 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 10:18:12,822 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:18:12,823 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 10:18:12,825 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:18:12,830 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:18:12,834 - data.session - INFO - 数据库表初始化完成
2025-04-30 10:18:13,177 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 10:18:13,177 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 10:18:13,178 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 10:18:13,178 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 10:18:13,178 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 10:18:13,178 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 10:18:13,180 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 10:18:13,180 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 10:18:13,181 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 10:18:13,181 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 10:18:13,182 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:18:13,182 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 10:18:13,182 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 10:18:13,183 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:18:13,183 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:18:13,183 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:18:13,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:18:13,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:18:13,185 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 10:18:13,185 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 10:18:13,195 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:18:13,196 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:18:13,196 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:18:13,197 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:18:13,198 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:18:13,199 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:18:13,199 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:18:13,200 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:18:13,211 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 10:18:13,212 - sqlalchemy.engine.Engine - INFO - [generated in 0.00078s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 10:18:13,220 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 10:18:13,220 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:18:13,227 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 10:18:13,228 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 10:18:13,229 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 10:18:13,231 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:18:13,234 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 10:18:13,237 - sqlalchemy.engine.Engine - INFO - [generated in 0.00268s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 10:18:13,245 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:18:13,248 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:18:13,248 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 10:18:13,249 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 10:18:13,249 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 10:18:13,250 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 10:18:13,256 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:18:13,256 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:18:13,257 - sqlalchemy.engine.Engine - INFO - [generated in 0.00074s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 18, 13, 231573))
2025-04-30 10:18:13,258 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:19:13,236 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:19:13,241 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:19:13,244 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:19:13,245 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:19:13,246 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:19:13,246 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:19:13,246 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:19:13,247 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:19:13,247 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:19:13,247 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:19:13,247 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:19:13,248 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:19:13,248 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:19:13,248 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:19:13,248 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:19:13,249 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:19:13,249 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:19:13,249 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:19:13,249 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:19:13,249 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:19:13,249 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:19:13,249 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:19:13,249 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:19:13,251 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:19:13,251 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:19:13,251 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:19:13,251 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:19:13,251 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:19:13,251 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:19:13,258 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:19:13,259 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:19:13,259 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:19:13,259 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 19, 13, 258219))
2025-04-30 10:19:13,260 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:20:13,275 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:20:13,277 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:20:13,277 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:20:13,278 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:20:13,278 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:20:13,279 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:20:13,284 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:20:13,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:20:13,287 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:20:13,289 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:20:13,291 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:20:13,292 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 20, 13, 274233))
2025-04-30 10:20:13,294 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:20:13,294 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:20:13,294 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:20:13,296 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:20:13,298 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:20:13,300 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:20:13,300 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:20:13,301 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:20:13,302 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:20:13,304 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:20:13,305 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:20:13,306 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:20:13,310 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:20:13,310 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:20:13,311 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:20:13,312 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:20:13,313 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:20:13,313 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:20:13,313 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:20:13,314 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:20:13,314 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:20:13,322 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:21:13,322 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:21:13,327 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:21:13,330 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:21:13,331 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:21:13,331 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:21:13,332 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:21:13,333 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:21:13,335 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:21:13,336 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 21, 13, 319940))
2025-04-30 10:21:13,338 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:21:13,340 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:21:13,340 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:21:13,341 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:21:13,341 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:21:13,342 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:21:13,345 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:21:13,345 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:21:13,345 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:21:13,346 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:21:13,348 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:21:13,348 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:21:13,349 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:21:13,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:21:13,351 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:21:13,352 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:21:13,353 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:21:13,355 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:21:13,356 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:21:13,356 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:21:13,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:21:13,357 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:21:13,357 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:21:13,358 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:21:13,362 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:22:13,379 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:22:13,384 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:22:13,388 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:22:13,389 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:22:13,390 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:22:13,390 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:22:13,390 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:22:13,391 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:22:13,391 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:22:13,392 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:22:13,392 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:22:13,394 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 22, 13, 383120))
2025-04-30 10:22:13,396 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:22:13,396 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:22:13,397 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:22:13,397 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:22:13,397 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:22:13,398 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:22:13,398 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:22:13,398 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:22:13,399 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:22:13,399 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:22:13,400 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:22:13,400 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:22:13,401 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:22:13,402 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:22:13,402 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:22:13,403 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:22:13,405 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:22:13,405 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:22:13,405 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:22:13,405 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:22:13,406 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:22:13,413 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:22:13,551 - app - INFO - 应用程序关闭中...
2025-04-30 10:22:13,551 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 10:22:13,553 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 10:22:13,554 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 10:22:13,557 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 10:22:13,559 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 10:22:13,559 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 10:22:13,560 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 10:22:13,560 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 10:22:13,562 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 10:22:13,562 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 10:22:13,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:22:13,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:22:13,562 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:22:13,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:22:13,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:22:13,562 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 10:22:13,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:22:13,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:22:13,562 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 10:22:13,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:22:13,563 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:22:13,563 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 10:22:13,563 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:22:13,563 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:22:13,563 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 10:22:13,563 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 10:22:13,563 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 10:22:13,565 - app - INFO - 增强版任务调度器已停止
2025-04-30 10:22:13,565 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 10:22:13,566 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 10:22:13,566 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 10:22:13,566 - data.session - INFO - 数据库连接已关闭
2025-04-30 10:22:14,777 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 10:22:14,837 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 10:22:14,838 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 10:22:14,905 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 10:22:14,953 - data.session - INFO - 正在初始化数据库...
2025-04-30 10:22:14,993 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 10:22:15,013 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:22:15,013 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:22:15,014 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:22:15,014 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:22:15,015 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:22:15,015 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:22:15,015 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:22:15,017 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 10:22:15,020 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:22:15,023 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 10:22:15,023 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:22:15,025 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 10:22:15,025 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:22:15,026 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 10:22:15,026 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:22:15,027 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 10:22:15,028 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:22:15,029 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 10:22:15,029 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:22:15,029 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 10:22:15,030 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:22:15,030 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 10:22:15,031 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:22:15,031 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 10:22:15,032 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:22:15,032 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 10:22:15,033 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:22:15,033 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 10:22:15,034 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:22:15,035 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:22:15,036 - data.session - INFO - 数据库表初始化完成
2025-04-30 10:22:15,405 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 10:22:15,405 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 10:22:15,406 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 10:22:15,406 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 10:22:15,406 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 10:22:15,407 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 10:22:15,407 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 10:22:15,407 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 10:22:15,408 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 10:22:15,408 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 10:22:15,408 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:22:15,408 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 10:22:15,409 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 10:22:15,410 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:22:15,410 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:22:15,410 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:22:15,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:22:15,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:22:15,411 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 10:22:15,411 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 10:22:15,424 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:22:15,425 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:22:15,426 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:22:15,427 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:22:15,427 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:22:15,428 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:22:15,428 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:22:15,429 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:22:15,438 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 10:22:15,440 - sqlalchemy.engine.Engine - INFO - [generated in 0.00073s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 10:22:15,440 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 10:22:15,441 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:22:15,442 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 10:22:15,442 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 10:22:15,443 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 10:22:15,443 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:22:15,445 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 10:22:15,445 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 10:22:15,447 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:22:15,448 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:22:15,448 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 10:22:15,448 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 10:22:15,448 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 10:22:15,448 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 10:22:15,449 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:22:15,450 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:22:15,450 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 22, 15, 443944))
2025-04-30 10:22:15,452 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:23:15,453 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:23:15,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:23:15,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:23:15,454 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:23:15,454 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:23:15,454 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:23:15,454 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:23:15,455 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:23:15,455 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:23:15,455 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:23:15,455 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:23:15,457 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 23, 15, 453189))
2025-04-30 10:23:15,457 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:23:15,457 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:23:15,458 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:23:15,458 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:23:15,458 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:23:15,458 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:23:15,458 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:23:15,458 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:23:15,459 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:23:15,459 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:23:15,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:23:15,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:23:15,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:23:15,460 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:23:15,460 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:23:15,460 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:23:15,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:23:15,461 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:23:15,461 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:23:15,461 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:23:15,461 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:23:15,466 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:24:15,450 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:24:15,451 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:24:15,454 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 24, 15, 450206))
2025-04-30 10:24:15,456 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:24:15,498 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:24:15,500 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:24:15,500 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:24:15,500 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:24:15,502 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:24:15,504 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:24:15,508 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:24:15,508 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:24:15,508 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:24:15,509 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:24:15,509 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:24:15,509 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:24:15,510 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:24:15,510 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:24:15,510 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:24:15,510 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:24:15,511 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:24:15,511 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:24:15,511 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:24:15,511 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:24:15,511 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:24:15,511 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:24:15,511 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:24:15,513 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:24:15,514 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:24:15,514 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:24:15,514 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:24:15,514 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:24:15,514 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:24:15,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:25:15,474 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:25:15,474 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:25:15,475 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 25, 15, 473537))
2025-04-30 10:25:15,477 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:25:15,534 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:25:15,538 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:25:15,539 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:25:15,541 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:25:15,542 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:25:15,542 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:25:15,543 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:25:15,544 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:25:15,545 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:25:15,545 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:25:15,546 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:25:15,546 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:25:15,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:25:15,548 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:25:15,549 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:25:15,549 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:25:15,550 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:25:15,551 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:25:15,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:25:15,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:25:15,553 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:25:15,553 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:25:15,553 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:25:15,554 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:25:15,554 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:25:15,554 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:25:15,554 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:25:15,554 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:25:15,555 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:25:15,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:26:15,486 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:26:15,486 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:26:15,488 - sqlalchemy.engine.Engine - INFO - [cached since 240s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 26, 15, 485364))
2025-04-30 10:26:15,490 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:26:15,608 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:26:15,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:26:15,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:26:15,613 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:26:15,614 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:26:15,614 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:26:15,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:26:15,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:26:15,617 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:26:15,619 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:26:15,621 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:26:15,622 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:26:15,623 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:26:15,623 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:26:15,624 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:26:15,625 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:26:15,625 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:26:15,626 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:26:15,626 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:26:15,627 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:26:15,627 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:26:15,628 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:26:15,629 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:26:15,630 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:26:15,633 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:26:15,633 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:26:15,634 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:26:15,635 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:26:15,635 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:26:15,643 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:27:15,482 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:27:15,483 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:27:15,483 - sqlalchemy.engine.Engine - INFO - [cached since 300s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 27, 15, 481142))
2025-04-30 10:27:15,484 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:27:15,698 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:27:15,703 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:27:15,704 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:27:15,704 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:27:15,705 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:27:15,705 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:27:15,709 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:27:15,710 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:27:15,711 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:27:15,712 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:27:15,712 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:27:15,713 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:27:15,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:27:15,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:27:15,715 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:27:15,715 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:27:15,715 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:27:15,716 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:27:15,716 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:27:15,716 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:27:15,717 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:27:15,717 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:27:15,717 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:27:15,718 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:27:15,718 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:27:15,718 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:27:15,719 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:27:15,719 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:27:15,719 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:27:15,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:28:15,494 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:28:15,499 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:28:15,503 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 28, 15, 493238))
2025-04-30 10:28:15,508 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:28:15,744 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:28:15,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:28:15,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:28:15,744 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:28:15,745 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:28:15,745 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:28:15,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:28:15,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:28:15,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:28:15,745 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:28:15,746 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:28:15,746 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:28:15,746 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:28:15,746 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:28:15,746 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:28:15,746 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:28:15,746 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:28:15,746 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:28:15,746 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:28:15,746 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:28:15,747 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:28:15,747 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:28:15,747 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:28:15,747 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:28:15,748 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:28:15,748 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:28:15,748 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:28:15,748 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:28:15,748 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:28:15,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:29:15,515 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:29:15,518 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:29:15,520 - sqlalchemy.engine.Engine - INFO - [cached since 420.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 29, 15, 514466))
2025-04-30 10:29:15,522 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:29:15,808 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:29:15,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:29:15,809 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:29:15,810 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:29:15,810 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:29:15,814 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:29:15,816 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:29:15,816 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:29:15,816 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:29:15,817 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:29:15,817 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:29:15,817 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:29:15,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:29:15,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:29:15,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:29:15,818 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:29:15,820 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:29:15,820 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:29:15,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:29:15,821 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:29:15,821 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:29:15,821 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:29:15,822 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:29:15,822 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:29:15,823 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:29:15,823 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:29:15,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:29:15,824 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:29:15,825 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:29:15,829 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:30:15,541 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:30:15,545 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:30:15,545 - sqlalchemy.engine.Engine - INFO - [cached since 480.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 30, 15, 540306))
2025-04-30 10:30:15,547 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:30:15,870 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:30:15,872 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:30:15,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:30:15,875 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:30:15,877 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:30:15,880 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:30:15,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:30:15,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:30:15,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:30:15,881 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:30:15,881 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:30:15,881 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:30:15,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:30:15,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:30:15,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:30:15,882 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:30:15,882 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:30:15,882 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:30:15,882 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:30:15,882 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:30:15,882 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:30:15,882 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:30:15,882 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:30:15,882 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:30:15,882 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:30:15,882 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:30:15,882 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:30:15,882 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:30:15,882 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:30:15,886 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:31:15,559 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:31:15,562 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:31:15,563 - sqlalchemy.engine.Engine - INFO - [cached since 540.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 31, 15, 559081))
2025-04-30 10:31:15,567 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:31:15,682 - app - INFO - 应用程序关闭中...
2025-04-30 10:31:15,684 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 10:31:15,686 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 10:31:15,687 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 10:31:15,689 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 10:31:15,691 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 10:31:15,691 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 10:31:15,691 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 10:31:15,692 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 10:31:15,692 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 10:31:15,692 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 10:31:15,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:31:15,694 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:31:15,694 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:31:15,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:31:15,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:31:15,695 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 10:31:15,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:31:15,695 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:31:15,696 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 10:31:15,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:31:15,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:31:15,696 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 10:31:15,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:31:15,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:31:15,698 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 10:31:15,698 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 10:31:15,698 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 10:31:15,698 - app - INFO - 增强版任务调度器已停止
2025-04-30 10:31:15,698 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 10:31:15,698 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 10:31:15,699 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 10:31:15,699 - data.session - INFO - 数据库连接已关闭
2025-04-30 10:31:16,894 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 10:31:16,953 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 10:31:16,954 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 10:31:17,012 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 10:31:17,056 - data.session - INFO - 正在初始化数据库...
2025-04-30 10:31:17,089 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 10:31:17,105 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:31:17,105 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:31:17,105 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:31:17,105 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:31:17,107 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:31:17,107 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:31:17,107 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:31:17,107 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 10:31:17,107 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:31:17,110 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 10:31:17,110 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:31:17,111 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 10:31:17,111 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:31:17,112 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 10:31:17,112 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:31:17,113 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 10:31:17,114 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:31:17,114 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 10:31:17,115 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:31:17,116 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 10:31:17,116 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:31:17,117 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 10:31:17,117 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:31:17,118 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 10:31:17,118 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:31:17,119 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 10:31:17,120 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:31:17,121 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 10:31:17,121 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:31:17,122 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:31:17,122 - data.session - INFO - 数据库表初始化完成
2025-04-30 10:31:17,469 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 10:31:17,469 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 10:31:17,469 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 10:31:17,469 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 10:31:17,470 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 10:31:17,470 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 10:31:17,470 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 10:31:17,470 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 10:31:17,470 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 10:31:17,470 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 10:31:17,470 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:31:17,470 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 10:31:17,470 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 10:31:17,471 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:31:17,472 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:31:17,472 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:31:17,472 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:31:17,472 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:31:17,472 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 10:31:17,472 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 10:31:17,473 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:31:17,474 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:31:17,474 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:31:17,475 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:31:17,476 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:31:17,476 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:31:17,476 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:31:17,477 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:31:17,486 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 10:31:17,486 - sqlalchemy.engine.Engine - INFO - [generated in 0.00061s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 10:31:17,487 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 10:31:17,487 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:31:17,488 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 10:31:17,489 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 10:31:17,489 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 10:31:17,490 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:31:17,491 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 10:31:17,492 - sqlalchemy.engine.Engine - INFO - [generated in 0.00072s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 10:31:17,493 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:31:17,494 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:31:17,494 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 10:31:17,494 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 10:31:17,495 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 10:31:17,498 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 10:31:17,499 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:31:17,500 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:31:17,501 - sqlalchemy.engine.Engine - INFO - [generated in 0.00071s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 31, 17, 490411))
2025-04-30 10:31:17,502 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:32:17,476 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:32:17,478 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:32:17,480 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:32:17,480 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:32:17,480 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:32:17,480 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:32:17,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:32:17,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:32:17,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:32:17,482 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:32:17,482 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:32:17,482 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:32:17,483 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:32:17,483 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:32:17,483 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:32:17,485 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:32:17,485 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:32:17,485 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:32:17,485 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:32:17,486 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:32:17,486 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:32:17,486 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:32:17,486 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:32:17,486 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:32:17,486 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:32:17,486 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:32:17,486 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:32:17,486 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:32:17,486 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:32:17,492 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:32:17,523 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:32:17,523 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:32:17,524 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 32, 17, 522597))
2025-04-30 10:32:17,526 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:32:17,692 - app - INFO - 应用程序关闭中...
2025-04-30 10:32:17,693 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 10:32:17,693 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 10:32:17,694 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 10:32:17,695 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 10:32:17,696 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 10:32:17,696 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 10:32:17,696 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 10:32:17,696 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 10:32:17,696 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 10:32:17,696 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 10:32:17,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:32:17,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:32:17,697 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:32:17,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:32:17,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:32:17,697 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 10:32:17,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:32:17,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:32:17,697 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 10:32:17,699 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:32:17,699 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:32:17,699 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 10:32:17,699 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:32:17,699 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:32:17,699 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 10:32:17,699 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 10:32:17,699 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 10:32:17,699 - app - INFO - 增强版任务调度器已停止
2025-04-30 10:32:17,699 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 10:32:17,699 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 10:32:17,700 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 10:32:17,700 - data.session - INFO - 数据库连接已关闭
2025-04-30 10:32:18,900 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 10:32:18,962 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 10:32:18,964 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 10:32:19,025 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 10:32:19,072 - data.session - INFO - 正在初始化数据库...
2025-04-30 10:32:19,086 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 10:32:19,102 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:32:19,102 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:32:19,102 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:32:19,103 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:32:19,103 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:32:19,103 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:32:19,104 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:32:19,104 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 10:32:19,104 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:32:19,106 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 10:32:19,106 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:32:19,107 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 10:32:19,107 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:32:19,108 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 10:32:19,108 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:32:19,109 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 10:32:19,109 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:32:19,110 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 10:32:19,110 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:32:19,111 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 10:32:19,111 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:32:19,114 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 10:32:19,115 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:32:19,117 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 10:32:19,118 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:32:19,119 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 10:32:19,119 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:32:19,120 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 10:32:19,120 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:32:19,121 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:32:19,122 - data.session - INFO - 数据库表初始化完成
2025-04-30 10:32:19,467 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 10:32:19,467 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 10:32:19,467 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 10:32:19,468 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 10:32:19,468 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 10:32:19,468 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 10:32:19,468 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 10:32:19,469 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 10:32:19,469 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 10:32:19,469 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 10:32:19,469 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:32:19,469 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 10:32:19,470 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 10:32:19,472 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:32:19,472 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:32:19,473 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:32:19,473 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:32:19,473 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:32:19,473 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 10:32:19,474 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 10:32:19,477 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:32:19,477 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:32:19,477 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:32:19,480 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:32:19,480 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:32:19,480 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:32:19,480 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:32:19,481 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:32:19,490 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 10:32:19,490 - sqlalchemy.engine.Engine - INFO - [generated in 0.00022s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 10:32:19,490 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 10:32:19,491 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:32:19,491 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 10:32:19,492 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 10:32:19,492 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 10:32:19,493 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:32:19,494 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 10:32:19,496 - sqlalchemy.engine.Engine - INFO - [generated in 0.00299s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 10:32:19,521 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:32:19,523 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:32:19,523 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 10:32:19,523 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 10:32:19,524 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 10:32:19,524 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 10:32:19,525 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:32:19,526 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:32:19,526 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 32, 19, 492262))
2025-04-30 10:32:19,527 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:33:19,486 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:33:19,488 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:33:19,488 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:33:19,488 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:33:19,489 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:33:19,489 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:33:19,489 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:33:19,489 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:33:19,489 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:33:19,491 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:33:19,491 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:33:19,491 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:33:19,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:33:19,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:33:19,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:33:19,492 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:33:19,492 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:33:19,492 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:33:19,492 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:33:19,492 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:33:19,494 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:33:19,494 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:33:19,494 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:33:19,494 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:33:19,494 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:33:19,495 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:33:19,495 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:33:19,495 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:33:19,495 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:33:19,500 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:33:19,535 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:33:19,536 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:33:19,536 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 33, 19, 534010))
2025-04-30 10:33:19,537 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:33:19,596 - app - INFO - 应用程序关闭中...
2025-04-30 10:33:19,596 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 10:33:19,596 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 10:33:19,596 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 10:33:19,596 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 10:33:19,597 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 10:33:19,597 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 10:33:19,597 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 10:33:19,597 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 10:33:19,597 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 10:33:19,597 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 10:33:19,597 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:33:19,597 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:33:19,597 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:33:19,597 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:33:19,598 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:33:19,598 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 10:33:19,598 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:33:19,599 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:33:19,600 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 10:33:19,600 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:33:19,600 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:33:19,601 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 10:33:19,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:33:19,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:33:19,601 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 10:33:19,601 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 10:33:19,601 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 10:33:19,601 - app - INFO - 增强版任务调度器已停止
2025-04-30 10:33:19,602 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 10:33:19,602 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 10:33:19,603 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 10:33:19,603 - data.session - INFO - 数据库连接已关闭
2025-04-30 10:33:20,822 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 10:33:20,881 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 10:33:20,882 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 10:33:20,940 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 10:33:20,991 - data.session - INFO - 正在初始化数据库...
2025-04-30 10:33:21,029 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 10:33:21,049 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:33:21,051 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:33:21,056 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:33:21,057 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:33:21,058 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:33:21,058 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:33:21,058 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:33:21,058 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 10:33:21,059 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:33:21,060 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 10:33:21,060 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:33:21,062 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 10:33:21,062 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:33:21,063 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 10:33:21,063 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:33:21,064 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 10:33:21,067 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:33:21,068 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 10:33:21,069 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:33:21,070 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 10:33:21,070 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:33:21,071 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 10:33:21,071 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:33:21,072 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 10:33:21,073 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:33:21,074 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 10:33:21,074 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:33:21,075 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 10:33:21,076 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:33:21,077 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:33:21,077 - data.session - INFO - 数据库表初始化完成
2025-04-30 10:33:21,478 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 10:33:21,480 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 10:33:21,482 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 10:33:21,483 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 10:33:21,484 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 10:33:21,484 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 10:33:21,485 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 10:33:21,485 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 10:33:21,485 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 10:33:21,485 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 10:33:21,486 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:33:21,486 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 10:33:21,486 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 10:33:21,488 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:33:21,488 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:33:21,488 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:33:21,488 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:33:21,488 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:33:21,488 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 10:33:21,488 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 10:33:21,490 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:33:21,490 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:33:21,491 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:33:21,491 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:33:21,491 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:33:21,492 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:33:21,492 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:33:21,492 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:33:21,501 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 10:33:21,502 - sqlalchemy.engine.Engine - INFO - [generated in 0.00069s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 10:33:21,503 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 10:33:21,504 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:33:21,505 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 10:33:21,505 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 10:33:21,505 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 10:33:21,506 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:33:21,508 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 10:33:21,508 - sqlalchemy.engine.Engine - INFO - [generated in 0.00074s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 10:33:21,510 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:33:21,511 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 10:33:21,511 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 10:33:21,511 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 10:33:21,511 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 10:33:21,512 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:33:21,512 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:33:21,513 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:33:21,513 - sqlalchemy.engine.Engine - INFO - [generated in 0.00056s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 33, 21, 505441))
2025-04-30 10:33:21,516 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:34:21,507 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:34:21,512 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:34:21,512 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:34:21,515 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:34:21,517 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:34:21,517 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:34:21,518 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:34:21,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:34:21,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:34:21,520 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:34:21,520 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:34:21,520 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:34:21,521 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:34:21,522 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:34:21,522 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:34:21,523 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:34:21,523 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:34:21,523 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:34:21,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:34:21,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:34:21,524 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:34:21,524 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:34:21,524 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:34:21,524 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 34, 21, 521499))
2025-04-30 10:34:21,525 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:34:21,525 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:34:21,526 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:34:21,526 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:34:21,526 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:34:21,527 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:34:21,527 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:34:21,527 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:34:21,531 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:34:21,532 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:34:21,709 - app - INFO - 应用程序关闭中...
2025-04-30 10:34:21,713 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 10:34:21,715 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 10:34:21,716 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 10:34:21,717 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 10:34:21,720 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 10:34:21,723 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 10:34:21,725 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 10:34:21,726 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 10:34:21,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:34:21,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:34:21,727 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:34:21,728 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:34:21,728 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:34:21,728 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 10:34:21,729 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 10:34:21,729 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:34:21,729 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 10:34:21,729 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 10:34:21,730 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 10:34:21,730 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 10:34:21,730 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 10:34:21,730 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 10:34:21,730 - app - INFO - 增强版任务调度器已停止
2025-04-30 10:34:21,730 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 10:34:21,730 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 10:34:21,731 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 10:34:21,731 - data.session - INFO - 数据库连接已关闭
2025-04-30 10:34:22,851 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 10:34:22,909 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 10:34:22,913 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 10:34:22,977 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 10:34:23,023 - data.session - INFO - 正在初始化数据库...
2025-04-30 10:34:23,067 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 10:34:23,086 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:34:23,086 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:34:23,089 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:34:23,096 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:34:23,099 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:34:23,100 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:34:23,102 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:34:23,102 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 10:34:23,102 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:34:23,105 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 10:34:23,106 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:34:23,107 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 10:34:23,107 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:34:23,108 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 10:34:23,108 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:34:23,109 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 10:34:23,109 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:34:23,112 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 10:34:23,112 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:34:23,114 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 10:34:23,115 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:34:23,115 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 10:34:23,116 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:34:23,116 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 10:34:23,117 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:34:23,118 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 10:34:23,118 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:34:23,120 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 10:34:23,122 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:34:23,124 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:34:23,124 - data.session - INFO - 数据库表初始化完成
2025-04-30 10:34:23,466 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 10:34:23,466 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 10:34:23,467 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 10:34:23,467 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 10:34:23,467 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 10:34:23,469 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 10:34:23,469 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 10:34:23,469 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 10:34:23,469 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 10:34:23,471 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 10:34:23,471 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:34:23,471 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 10:34:23,471 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 10:34:23,474 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:34:23,474 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:34:23,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:34:23,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:34:23,476 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:34:23,476 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 10:34:23,476 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 10:34:23,478 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:34:23,478 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:34:23,479 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:34:23,479 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:34:23,479 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:34:23,481 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:34:23,481 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:34:23,482 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:34:23,490 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 10:34:23,491 - sqlalchemy.engine.Engine - INFO - [generated in 0.00081s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 10:34:23,493 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 10:34:23,493 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:34:23,495 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 10:34:23,496 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 10:34:23,496 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 10:34:23,496 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:34:23,498 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 10:34:23,498 - sqlalchemy.engine.Engine - INFO - [generated in 0.00061s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 10:34:23,521 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:34:23,526 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:34:23,527 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 10:34:23,530 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 10:34:23,531 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 10:34:23,531 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 10:34:23,532 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:34:23,533 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:34:23,533 - sqlalchemy.engine.Engine - INFO - [generated in 0.00022s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 34, 23, 496059))
2025-04-30 10:34:23,534 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:35:23,493 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:35:23,496 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:35:23,496 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:35:23,497 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:35:23,497 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:35:23,499 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:35:23,502 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:35:23,502 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:35:23,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:35:23,503 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:35:23,503 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:35:23,503 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:35:23,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:35:23,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:35:23,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:35:23,504 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:35:23,504 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:35:23,504 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:35:23,507 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:35:23,507 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:35:23,507 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:35:23,508 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:35:23,509 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:35:23,509 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:35:23,509 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:35:23,510 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:35:23,510 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:35:23,510 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:35:23,511 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:35:23,515 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:35:23,556 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:35:23,557 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:35:23,557 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 35, 23, 555539))
2025-04-30 10:35:23,558 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:35:23,708 - app - INFO - 应用程序关闭中...
2025-04-30 10:35:23,708 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 10:35:23,709 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 10:35:23,709 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 10:35:23,709 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 10:35:23,710 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 10:35:23,710 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 10:35:23,710 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 10:35:23,710 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 10:35:23,710 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 10:35:23,711 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 10:35:23,711 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:35:23,711 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:35:23,711 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:35:23,711 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:35:23,711 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:35:23,711 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 10:35:23,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:35:23,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:35:23,712 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 10:35:23,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:35:23,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:35:23,713 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 10:35:23,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:35:23,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:35:23,713 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 10:35:23,713 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 10:35:23,713 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 10:35:23,713 - app - INFO - 增强版任务调度器已停止
2025-04-30 10:35:23,713 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 10:35:23,715 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 10:35:23,715 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 10:35:23,715 - data.session - INFO - 数据库连接已关闭
2025-04-30 10:35:24,825 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 10:35:24,891 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 10:35:24,893 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 10:35:24,953 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 10:35:25,001 - data.session - INFO - 正在初始化数据库...
2025-04-30 10:35:25,036 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 10:35:25,053 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:35:25,054 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:35:25,054 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:35:25,054 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:35:25,055 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:35:25,055 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:35:25,055 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:35:25,055 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 10:35:25,055 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:35:25,057 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 10:35:25,057 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:35:25,058 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 10:35:25,058 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:35:25,060 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 10:35:25,060 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:35:25,061 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 10:35:25,062 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:35:25,062 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 10:35:25,063 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:35:25,064 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 10:35:25,064 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:35:25,065 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 10:35:25,065 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:35:25,066 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 10:35:25,067 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:35:25,068 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 10:35:25,068 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:35:25,069 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 10:35:25,070 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:35:25,072 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:35:25,072 - data.session - INFO - 数据库表初始化完成
2025-04-30 10:35:25,433 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 10:35:25,434 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 10:35:25,435 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 10:35:25,435 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 10:35:25,436 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 10:35:25,436 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 10:35:25,437 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 10:35:25,437 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 10:35:25,437 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 10:35:25,438 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 10:35:25,438 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:35:25,439 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 10:35:25,439 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 10:35:25,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:35:25,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:35:25,441 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:35:25,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:35:25,442 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:35:25,442 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 10:35:25,444 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 10:35:25,446 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:35:25,447 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:35:25,447 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:35:25,450 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:35:25,450 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:35:25,452 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:35:25,453 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:35:25,455 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:35:25,465 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 10:35:25,466 - sqlalchemy.engine.Engine - INFO - [generated in 0.00073s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 10:35:25,467 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 10:35:25,468 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:35:25,469 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 10:35:25,469 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 10:35:25,470 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 10:35:25,470 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:35:25,472 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 10:35:25,475 - sqlalchemy.engine.Engine - INFO - [generated in 0.00321s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 10:35:25,487 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:35:25,492 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:35:25,492 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 10:35:25,492 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 10:35:25,493 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 10:35:25,493 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 10:35:25,495 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:35:25,496 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:35:25,498 - sqlalchemy.engine.Engine - INFO - [generated in 0.00188s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 35, 25, 470176))
2025-04-30 10:35:25,499 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:36:25,495 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:36:25,499 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:36:25,499 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:36:25,500 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:36:25,500 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:36:25,500 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:36:25,502 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:36:25,502 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:36:25,502 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:36:25,502 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:36:25,503 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:36:25,504 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 36, 25, 498261))
2025-04-30 10:36:25,506 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:36:25,506 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:36:25,506 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:36:25,508 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:36:25,508 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:36:25,509 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:36:25,509 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:36:25,510 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:36:25,511 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:36:25,511 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:36:25,512 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:36:25,512 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:36:25,513 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:36:25,513 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:36:25,513 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:36:25,514 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:36:25,514 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:36:25,515 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:36:25,515 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:36:25,515 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:36:25,515 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:36:25,520 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:36:25,618 - app - INFO - 应用程序关闭中...
2025-04-30 10:36:25,621 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 10:36:25,622 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 10:36:25,623 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 10:36:25,624 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 10:36:25,625 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 10:36:25,626 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 10:36:25,626 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 10:36:25,628 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 10:36:25,629 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 10:36:25,629 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 10:36:25,629 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:36:25,629 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:36:25,629 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:36:25,629 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:36:25,629 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:36:25,629 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 10:36:25,629 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:36:25,629 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:36:25,629 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 10:36:25,630 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:36:25,630 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:36:25,630 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 10:36:25,630 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:36:25,630 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:36:25,630 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 10:36:25,630 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 10:36:25,630 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 10:36:25,630 - app - INFO - 增强版任务调度器已停止
2025-04-30 10:36:25,630 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 10:36:25,631 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 10:36:25,631 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 10:36:25,633 - data.session - INFO - 数据库连接已关闭
2025-04-30 10:36:26,903 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 10:36:26,972 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 10:36:26,974 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 10:36:27,032 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 10:36:27,078 - data.session - INFO - 正在初始化数据库...
2025-04-30 10:36:27,110 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 10:36:27,132 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:36:27,133 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:36:27,136 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:36:27,137 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:36:27,142 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:36:27,146 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:36:27,148 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:36:27,151 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 10:36:27,155 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:36:27,160 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 10:36:27,163 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:36:27,165 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 10:36:27,165 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:36:27,168 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 10:36:27,169 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:36:27,172 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 10:36:27,173 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:36:27,179 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 10:36:27,184 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:36:27,187 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 10:36:27,188 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:36:27,192 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 10:36:27,193 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:36:27,195 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 10:36:27,199 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:36:27,202 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 10:36:27,203 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:36:27,209 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 10:36:27,211 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:36:27,212 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:36:27,216 - data.session - INFO - 数据库表初始化完成
2025-04-30 10:36:27,616 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 10:36:27,617 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 10:36:27,622 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 10:36:27,623 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 10:36:27,624 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 10:36:27,625 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 10:36:27,625 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 10:36:27,627 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 10:36:27,629 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 10:36:27,631 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 10:36:27,633 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:36:27,633 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 10:36:27,634 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 10:36:27,637 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:36:27,639 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:36:27,642 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:36:27,644 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:36:27,645 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:36:27,647 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 10:36:27,650 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 10:36:27,666 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:36:27,667 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:36:27,669 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:36:27,674 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:36:27,677 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:36:27,681 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:36:27,682 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:36:27,687 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:36:27,700 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 10:36:27,705 - sqlalchemy.engine.Engine - INFO - [generated in 0.00358s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 10:36:27,709 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 10:36:27,712 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:36:27,714 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 10:36:27,717 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 10:36:27,719 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 10:36:27,722 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:36:27,725 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 10:36:27,728 - sqlalchemy.engine.Engine - INFO - [generated in 0.00244s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 10:36:27,730 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:36:27,735 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:36:27,735 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 10:36:27,737 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 10:36:27,739 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 10:36:27,740 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 10:36:27,742 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:36:27,743 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:36:27,743 - sqlalchemy.engine.Engine - INFO - [generated in 0.00056s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 36, 27, 720907))
2025-04-30 10:36:27,745 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:37:27,681 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:37:27,684 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:37:27,685 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:37:27,685 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:37:27,686 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:37:27,687 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:37:27,687 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:37:27,688 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:37:27,688 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:37:27,689 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:37:27,689 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:37:27,689 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:37:27,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:37:27,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:37:27,691 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:37:27,691 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:37:27,691 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:37:27,692 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:37:27,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:37:27,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:37:27,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:37:27,693 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:37:27,693 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:37:27,694 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:37:27,694 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:37:27,694 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:37:27,694 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:37:27,695 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:37:27,695 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:37:27,699 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:37:27,759 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:37:27,760 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:37:27,761 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 37, 27, 758978))
2025-04-30 10:37:27,764 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:37:27,883 - app - INFO - 应用程序关闭中...
2025-04-30 10:37:27,883 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 10:37:27,883 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 10:37:27,883 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 10:37:27,883 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 10:37:27,885 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 10:37:27,885 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 10:37:27,885 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 10:37:27,885 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 10:37:27,885 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 10:37:27,885 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 10:37:27,886 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:37:27,887 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:37:27,888 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:37:27,889 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:37:27,891 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:37:27,892 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 10:37:27,892 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:37:27,892 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:37:27,892 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 10:37:27,892 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:37:27,892 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:37:27,893 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 10:37:27,894 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:37:27,894 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:37:27,894 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 10:37:27,894 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 10:37:27,895 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 10:37:27,895 - app - INFO - 增强版任务调度器已停止
2025-04-30 10:37:27,895 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 10:37:27,896 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 10:37:27,896 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 10:37:27,896 - data.session - INFO - 数据库连接已关闭
2025-04-30 10:37:29,109 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 10:37:29,176 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 10:37:29,177 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 10:37:29,245 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 10:37:29,302 - data.session - INFO - 正在初始化数据库...
2025-04-30 10:37:29,322 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 10:37:29,324 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:37:29,324 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:37:29,325 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:37:29,325 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:37:29,326 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:37:29,326 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:37:29,326 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:37:29,326 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 10:37:29,326 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:37:29,327 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 10:37:29,328 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:37:29,329 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 10:37:29,329 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:37:29,330 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 10:37:29,330 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:37:29,331 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 10:37:29,331 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:37:29,332 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 10:37:29,332 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:37:29,334 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 10:37:29,334 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:37:29,335 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 10:37:29,336 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:37:29,337 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 10:37:29,337 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:37:29,340 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 10:37:29,345 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:37:29,346 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 10:37:29,347 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:37:29,350 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:37:29,350 - data.session - INFO - 数据库表初始化完成
2025-04-30 10:37:29,725 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 10:37:29,726 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 10:37:29,728 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 10:37:29,729 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 10:37:29,730 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 10:37:29,730 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 10:37:29,731 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 10:37:29,731 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 10:37:29,731 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 10:37:29,732 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 10:37:29,733 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:37:29,733 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 10:37:29,734 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 10:37:29,736 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:37:29,736 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:37:29,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:37:29,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:37:29,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:37:29,738 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 10:37:29,739 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 10:37:29,740 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:37:29,741 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:37:29,742 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:37:29,743 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:37:29,744 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:37:29,745 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:37:29,747 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:37:29,749 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:37:29,758 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 10:37:29,759 - sqlalchemy.engine.Engine - INFO - [generated in 0.00077s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 10:37:29,760 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 10:37:29,761 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:37:29,764 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 10:37:29,765 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 10:37:29,765 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 10:37:29,766 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:37:29,768 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 10:37:29,769 - sqlalchemy.engine.Engine - INFO - [generated in 0.00084s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 10:37:29,788 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:37:29,789 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:37:29,790 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 10:37:29,790 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 10:37:29,790 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 10:37:29,791 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 10:37:29,792 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:37:29,793 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:37:29,794 - sqlalchemy.engine.Engine - INFO - [generated in 0.00066s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 37, 29, 765567))
2025-04-30 10:37:29,796 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:38:29,780 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:38:29,782 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:38:29,783 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:38:29,786 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:38:29,787 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:38:29,787 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:38:29,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:38:29,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:38:29,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:38:29,788 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:38:29,788 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:38:29,788 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:38:29,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:38:29,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:38:29,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:38:29,789 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:38:29,789 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:38:29,789 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:38:29,789 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:38:29,789 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:38:29,789 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:38:29,789 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:38:29,789 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:38:29,789 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:38:29,789 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:38:29,789 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:38:29,789 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:38:29,789 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:38:29,789 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:38:29,794 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:38:29,813 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:38:29,814 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:38:29,815 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 38, 29, 811360))
2025-04-30 10:38:29,816 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:38:29,919 - app - INFO - 应用程序关闭中...
2025-04-30 10:38:29,921 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 10:38:29,921 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 10:38:29,923 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 10:38:29,924 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 10:38:29,925 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 10:38:29,926 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 10:38:29,928 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 10:38:29,928 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 10:38:29,929 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 10:38:29,929 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 10:38:29,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:38:29,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:38:29,929 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:38:29,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:38:29,931 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:38:29,931 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 10:38:29,931 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:38:29,931 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:38:29,931 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 10:38:29,931 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:38:29,932 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:38:29,932 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 10:38:29,932 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:38:29,932 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:38:29,936 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 10:38:29,938 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 10:38:29,940 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 10:38:29,940 - app - INFO - 增强版任务调度器已停止
2025-04-30 10:38:29,940 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 10:38:29,941 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 10:38:29,941 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 10:38:29,941 - data.session - INFO - 数据库连接已关闭
2025-04-30 10:38:31,186 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 10:38:31,241 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 10:38:31,243 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 10:38:31,307 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 10:38:31,360 - data.session - INFO - 正在初始化数据库...
2025-04-30 10:38:31,393 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 10:38:31,411 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:38:31,412 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:38:31,413 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:38:31,414 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:38:31,415 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:38:31,416 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:38:31,416 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:38:31,417 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 10:38:31,417 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:38:31,421 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 10:38:31,421 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:38:31,423 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 10:38:31,424 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:38:31,425 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 10:38:31,426 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:38:31,428 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 10:38:31,428 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:38:31,429 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 10:38:31,430 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:38:31,431 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 10:38:31,431 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:38:31,433 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 10:38:31,433 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:38:31,434 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 10:38:31,435 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:38:31,437 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 10:38:31,438 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:38:31,439 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 10:38:31,440 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:38:31,441 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:38:31,442 - data.session - INFO - 数据库表初始化完成
2025-04-30 10:38:31,820 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 10:38:31,820 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 10:38:31,821 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 10:38:31,821 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 10:38:31,821 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 10:38:31,821 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 10:38:31,822 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 10:38:31,822 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 10:38:31,822 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 10:38:31,822 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 10:38:31,822 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:38:31,823 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 10:38:31,823 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 10:38:31,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:38:31,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:38:31,825 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:38:31,825 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:38:31,825 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:38:31,825 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 10:38:31,825 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 10:38:31,827 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:38:31,828 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:38:31,828 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:38:31,829 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:38:31,829 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:38:31,829 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:38:31,829 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:38:31,830 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:38:31,840 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 10:38:31,840 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 10:38:31,841 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 10:38:31,841 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:38:31,842 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 10:38:31,842 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 10:38:31,843 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 10:38:31,843 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:38:31,848 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 10:38:31,848 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 10:38:31,849 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:38:31,850 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 10:38:31,850 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 10:38:31,850 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 10:38:31,852 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 10:38:31,853 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:38:31,854 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:38:31,855 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:38:31,856 - sqlalchemy.engine.Engine - INFO - [generated in 0.00182s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 38, 31, 843937))
2025-04-30 10:38:31,857 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:39:31,850 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:39:31,853 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:39:31,853 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:39:31,854 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:39:31,854 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:39:31,854 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:39:31,854 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:39:31,854 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:39:31,854 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:39:31,854 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:39:31,855 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:39:31,855 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 39, 31, 852405))
2025-04-30 10:39:31,855 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:39:31,855 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:39:31,855 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:39:31,855 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:39:31,855 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:39:31,855 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:39:31,856 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:39:31,856 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:39:31,856 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:39:31,856 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:39:31,856 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:39:31,856 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:39:31,856 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:39:31,856 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:39:31,857 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:39:31,857 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:39:31,857 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:39:31,857 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:39:31,857 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:39:31,857 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:39:31,858 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:39:31,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:39:32,007 - app - INFO - 应用程序关闭中...
2025-04-30 10:39:32,008 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 10:39:32,008 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 10:39:32,008 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 10:39:32,009 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 10:39:32,009 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 10:39:32,009 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 10:39:32,009 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 10:39:32,009 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 10:39:32,009 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 10:39:32,010 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 10:39:32,010 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:39:32,012 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:39:32,012 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:39:32,012 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:39:32,012 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:39:32,012 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 10:39:32,012 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:39:32,013 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:39:32,013 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 10:39:32,013 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:39:32,013 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:39:32,014 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 10:39:32,014 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:39:32,014 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:39:32,014 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 10:39:32,014 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 10:39:32,014 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 10:39:32,014 - app - INFO - 增强版任务调度器已停止
2025-04-30 10:39:32,014 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 10:39:32,015 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 10:39:32,015 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 10:39:32,015 - data.session - INFO - 数据库连接已关闭
2025-04-30 10:39:33,226 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 10:39:33,283 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 10:39:33,289 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 10:39:33,350 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 10:39:33,397 - data.session - INFO - 正在初始化数据库...
2025-04-30 10:39:33,427 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 10:39:33,447 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:39:33,448 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:39:33,448 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:39:33,448 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:39:33,449 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:39:33,449 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:39:33,449 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:39:33,450 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 10:39:33,450 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:39:33,454 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 10:39:33,454 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:39:33,455 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 10:39:33,455 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:39:33,457 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 10:39:33,457 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:39:33,458 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 10:39:33,459 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:39:33,460 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 10:39:33,460 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:39:33,461 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 10:39:33,463 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:39:33,464 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 10:39:33,465 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:39:33,465 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 10:39:33,466 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:39:33,467 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 10:39:33,467 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:39:33,467 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 10:39:33,468 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:39:33,469 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:39:33,472 - data.session - INFO - 数据库表初始化完成
2025-04-30 10:39:33,836 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 10:39:33,839 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 10:39:33,840 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 10:39:33,840 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 10:39:33,841 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 10:39:33,843 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 10:39:33,845 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 10:39:33,851 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 10:39:33,852 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 10:39:33,853 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 10:39:33,854 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:39:33,855 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 10:39:33,867 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 10:39:33,869 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:39:33,870 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:39:33,871 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:39:33,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:39:33,875 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:39:33,877 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 10:39:33,879 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 10:39:33,898 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:39:33,899 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:39:33,899 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:39:33,901 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:39:33,902 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:39:33,902 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:39:33,903 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:39:33,903 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:39:33,912 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 10:39:33,914 - sqlalchemy.engine.Engine - INFO - [generated in 0.00144s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 10:39:33,916 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 10:39:33,917 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:39:33,919 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 10:39:33,919 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 10:39:33,920 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 10:39:33,921 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:39:33,922 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 10:39:33,923 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 10:39:33,924 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:39:33,925 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:39:33,925 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 10:39:33,925 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 10:39:33,925 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 10:39:33,926 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 10:39:33,927 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:39:33,928 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:39:33,928 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 39, 33, 920999))
2025-04-30 10:39:33,929 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:40:33,903 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:40:33,904 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:40:33,904 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:40:33,906 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:40:33,906 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:40:33,907 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:40:33,908 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:40:33,908 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:40:33,909 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:40:33,909 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:40:33,909 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:40:33,910 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:40:33,910 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:40:33,910 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:40:33,910 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:40:33,910 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:40:33,911 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:40:33,911 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:40:33,911 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:40:33,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:40:33,912 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:40:33,912 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:40:33,913 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:40:33,913 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:40:33,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:40:33,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:40:33,914 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:40:33,914 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:40:33,914 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:40:33,919 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:40:33,951 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:40:33,953 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:40:33,953 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 40, 33, 951076))
2025-04-30 10:40:33,954 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:40:34,126 - app - INFO - 应用程序关闭中...
2025-04-30 10:40:34,126 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 10:40:34,127 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 10:40:34,127 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 10:40:34,127 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 10:40:34,128 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 10:40:34,128 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 10:40:34,128 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 10:40:34,128 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 10:40:34,129 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 10:40:34,129 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 10:40:34,130 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:40:34,130 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:40:34,130 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:40:34,130 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:40:34,130 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:40:34,130 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 10:40:34,130 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:40:34,131 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:40:34,131 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 10:40:34,131 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:40:34,132 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:40:34,132 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 10:40:34,132 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:40:34,133 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:40:34,133 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 10:40:34,133 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 10:40:34,133 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 10:40:34,134 - app - INFO - 增强版任务调度器已停止
2025-04-30 10:40:34,134 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 10:40:34,134 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 10:40:34,135 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 10:40:34,135 - data.session - INFO - 数据库连接已关闭
2025-04-30 10:40:35,274 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 10:40:35,329 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 10:40:35,335 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 10:40:35,389 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 10:40:35,436 - data.session - INFO - 正在初始化数据库...
2025-04-30 10:40:35,456 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 10:40:35,477 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:40:35,477 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:40:35,478 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:40:35,479 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:40:35,479 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:40:35,480 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:40:35,481 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:40:35,481 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 10:40:35,482 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:40:35,483 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 10:40:35,484 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:40:35,485 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 10:40:35,486 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:40:35,487 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 10:40:35,487 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:40:35,489 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 10:40:35,489 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:40:35,490 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 10:40:35,491 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:40:35,492 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 10:40:35,493 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:40:35,494 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 10:40:35,494 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:40:35,495 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 10:40:35,496 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:40:35,497 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 10:40:35,498 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:40:35,499 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 10:40:35,499 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:40:35,500 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:40:35,501 - data.session - INFO - 数据库表初始化完成
2025-04-30 10:40:35,852 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 10:40:35,854 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 10:40:35,855 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 10:40:35,858 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 10:40:35,859 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 10:40:35,861 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 10:40:35,861 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 10:40:35,863 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 10:40:35,863 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 10:40:35,863 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 10:40:35,864 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:40:35,866 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 10:40:35,867 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 10:40:35,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:40:35,877 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:40:35,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:40:35,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:40:35,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:40:35,881 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 10:40:35,881 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 10:40:35,896 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:40:35,898 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:40:35,899 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:40:35,901 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:40:35,902 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:40:35,905 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:40:35,906 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:40:35,908 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:40:35,916 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 10:40:35,918 - sqlalchemy.engine.Engine - INFO - [generated in 0.00155s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 10:40:35,920 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 10:40:35,921 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:40:35,922 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 10:40:35,922 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 10:40:35,923 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 10:40:35,923 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:40:35,925 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 10:40:35,926 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 10:40:35,942 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:40:35,943 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 10:40:35,943 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 10:40:35,944 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 10:40:35,944 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 10:40:35,944 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:40:35,945 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:40:35,945 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:40:35,946 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 40, 35, 923752))
2025-04-30 10:40:35,947 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:41:35,912 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:41:35,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:41:35,913 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:41:35,916 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:41:35,919 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:41:35,923 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:41:35,924 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:41:35,924 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:41:35,924 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:41:35,924 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:41:35,926 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:41:35,926 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:41:35,926 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:41:35,926 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:41:35,926 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:41:35,926 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:41:35,926 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:41:35,927 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:41:35,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:41:35,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:41:35,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:41:35,927 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:41:35,927 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:41:35,927 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:41:35,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:41:35,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:41:35,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:41:35,927 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:41:35,928 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:41:35,932 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:41:35,960 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:41:35,961 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:41:35,961 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 41, 35, 959053))
2025-04-30 10:41:35,962 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:41:36,069 - app - INFO - 应用程序关闭中...
2025-04-30 10:41:36,070 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 10:41:36,070 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 10:41:36,071 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 10:41:36,072 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 10:41:36,072 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 10:41:36,072 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 10:41:36,072 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 10:41:36,073 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 10:41:36,073 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 10:41:36,073 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 10:41:36,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:41:36,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:41:36,075 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:41:36,075 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:41:36,076 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:41:36,076 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 10:41:36,076 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:41:36,076 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:41:36,078 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 10:41:36,078 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:41:36,078 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:41:36,078 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 10:41:36,078 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:41:36,078 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:41:36,078 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 10:41:36,078 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 10:41:36,078 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 10:41:36,078 - app - INFO - 增强版任务调度器已停止
2025-04-30 10:41:36,079 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 10:41:36,079 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 10:41:36,079 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 10:41:36,080 - data.session - INFO - 数据库连接已关闭
2025-04-30 10:41:37,247 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 10:41:37,316 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 10:41:37,319 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 10:41:37,388 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 10:41:37,436 - data.session - INFO - 正在初始化数据库...
2025-04-30 10:41:37,465 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 10:41:37,476 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:41:37,478 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:37,479 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:41:37,479 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:37,480 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:41:37,481 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:37,482 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:41:37,482 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 10:41:37,483 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:37,484 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 10:41:37,485 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:37,486 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 10:41:37,487 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:37,488 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 10:41:37,488 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:37,490 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 10:41:37,490 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:37,491 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 10:41:37,493 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:37,495 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 10:41:37,495 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:37,496 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 10:41:37,497 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:37,498 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 10:41:37,499 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:37,500 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 10:41:37,501 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:37,502 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 10:41:37,504 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:37,505 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:41:37,506 - data.session - INFO - 数据库表初始化完成
2025-04-30 10:41:37,857 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 10:41:37,858 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 10:41:37,859 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 10:41:37,859 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 10:41:37,859 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 10:41:37,859 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 10:41:37,859 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 10:41:37,860 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 10:41:37,860 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 10:41:37,860 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 10:41:37,860 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:41:37,860 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 10:41:37,860 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 10:41:37,861 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:41:37,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:41:37,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:41:37,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:41:37,862 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:41:37,862 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 10:41:37,862 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 10:41:37,863 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:41:37,863 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:41:37,864 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:41:37,865 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:41:37,865 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:41:37,866 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:41:37,866 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:41:37,866 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:41:37,876 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 10:41:37,876 - sqlalchemy.engine.Engine - INFO - [generated in 0.00049s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 10:41:37,877 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 10:41:37,877 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:41:37,877 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 10:41:37,878 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 10:41:37,878 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 10:41:37,878 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:41:37,880 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 10:41:37,880 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 10:41:37,881 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:41:37,881 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 10:41:37,881 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 10:41:37,881 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 10:41:37,881 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 10:41:37,882 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:41:37,882 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:41:37,883 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:41:37,884 - sqlalchemy.engine.Engine - INFO - [generated in 0.00181s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 41, 37, 878329))
2025-04-30 10:41:37,885 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:41:49,642 - app - INFO - 应用程序关闭中...
2025-04-30 10:41:49,642 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 10:41:49,642 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 10:41:49,642 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 10:41:49,642 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 10:41:49,642 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 10:41:49,643 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 10:41:49,643 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 10:41:49,643 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 10:41:49,643 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 10:41:49,643 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 10:41:49,643 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:41:49,643 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:41:49,643 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:41:49,643 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:41:49,643 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:41:49,643 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 10:41:49,645 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:41:49,645 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:41:49,645 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 10:41:49,645 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:41:49,645 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:41:49,645 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 10:41:49,645 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:41:49,645 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:41:49,646 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 10:41:49,646 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 10:41:49,647 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 10:41:49,647 - app - INFO - 增强版任务调度器已停止
2025-04-30 10:41:49,647 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 10:41:49,647 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 10:41:49,647 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 10:41:49,648 - data.session - INFO - 数据库连接已关闭
2025-04-30 10:41:52,364 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 10:41:52,421 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 10:41:52,423 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 10:41:53,103 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 10:41:53,159 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 10:41:53,161 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 10:41:53,219 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 10:41:53,270 - data.session - INFO - 正在初始化数据库...
2025-04-30 10:41:53,300 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 10:41:53,325 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:41:53,326 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:53,327 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:41:53,327 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:53,327 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:41:53,327 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:53,329 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:41:53,329 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 10:41:53,329 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:53,330 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 10:41:53,330 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:53,332 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 10:41:53,332 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:53,335 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 10:41:53,335 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:53,337 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 10:41:53,338 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:53,339 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 10:41:53,340 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:53,340 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 10:41:53,340 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:53,341 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 10:41:53,341 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:53,342 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 10:41:53,343 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:53,343 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 10:41:53,344 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:53,344 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 10:41:53,344 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:41:53,345 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:41:53,346 - data.session - INFO - 数据库表初始化完成
2025-04-30 10:41:53,680 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 10:41:53,681 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 10:41:53,681 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 10:41:53,681 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 10:41:53,682 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 10:41:53,682 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 10:41:53,682 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 10:41:53,682 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 10:41:53,682 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 10:41:53,682 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 10:41:53,683 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:41:53,683 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 10:41:53,683 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 10:41:53,686 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:41:53,686 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:41:53,686 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:41:53,687 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:41:53,687 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:41:53,689 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 10:41:53,689 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 10:41:53,690 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:41:53,690 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:41:53,691 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:41:53,691 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:41:53,691 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:41:53,692 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:41:53,692 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:41:53,693 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:41:53,702 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 10:41:53,702 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 10:41:53,703 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 10:41:53,703 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:41:53,704 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 10:41:53,704 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 10:41:53,705 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 10:41:53,705 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:41:53,707 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 10:41:53,708 - sqlalchemy.engine.Engine - INFO - [generated in 0.00076s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 10:41:53,709 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:41:53,709 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:41:53,709 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 10:41:53,710 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 10:41:53,710 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 10:41:53,710 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 10:41:53,711 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:41:53,712 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:41:53,712 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 41, 53, 705694))
2025-04-30 10:41:53,713 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:41:57,790 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 10:41:57,793 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:41:57,794 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:41:57,794 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:41:57,794 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:41:57,795 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:41:57,796 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:41:57,796 - sqlalchemy.engine.Engine - INFO - [cached since 0.002556s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:41:57,796 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:41:57,797 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 10:41:57,797 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 10:41:57,797 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 10:41:57,798 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:41:57,798 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 10:41:57,799 - sqlalchemy.engine.Engine - INFO - [generated in 0.00023s] (None, datetime.datetime(2025, 4, 30, 10, 41, 57, 798490), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 10:41:57,799 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:41:57,813 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:41:57,813 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:41:57,813 - sqlalchemy.engine.Engine - INFO - [cached since 0.0198s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:41:57,815 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:41:57,815 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 10, 41, 57, 797483), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.4", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 10, 41, 57, 815302), datetime.datetime(2025, 4, 30, 10, 41, 57, 815302), 0)
2025-04-30 10:41:57,817 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:41:57,824 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:41:57,824 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:41:57,825 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:41:57,826 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:41:57,826 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 19fcc688-489e-47cc-bc2c-7bbedcb4484c (优先级 1) 添加到队列 0
2025-04-30 10:41:57,832 - services.sync_service - INFO - 正在同步创建任务到天风系统: 19fcc688-489e-47cc-bc2c-7bbedcb4484c
2025-04-30 10:41:57,833 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"19fcc688-489e-47cc-bc2c-7bbedcb4484c","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 10:41:57","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 10:41:57,855 - services.sync_service - INFO - 成功同步任务到系统任务: 19fcc688-489e-47cc-bc2c-7bbedcb4484c
2025-04-30 10:41:57,856 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 19fcc688-489e-47cc-bc2c-7bbedcb4484c
2025-04-30 10:41:57,856 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 19fcc688-489e-47cc-bc2c-7bbedcb4484c
2025-04-30 10:41:57,857 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0683秒
2025-04-30 10:41:57,918 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 19fcc688-489e-47cc-bc2c-7bbedcb4484c, 优先级: 1
2025-04-30 10:41:57,919 - services.execution.task_executor - DEBUG - 任务 19fcc688-489e-47cc-bc2c-7bbedcb4484c 设置超时时间: 3600秒
2025-04-30 10:41:57,919 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:41:57,922 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:41:57,923 - sqlalchemy.engine.Engine - INFO - [cached since 0.0988s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:41:57,927 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:41:57,928 - sqlalchemy.engine.Engine - INFO - [cached since 0.1345s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:41:57,930 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 10:41:57,931 - sqlalchemy.engine.Engine - INFO - [generated in 0.00125s] (datetime.datetime(2025, 4, 30, 10, 41, 57, 929426), datetime.datetime(2025, 4, 30, 10, 41, 57, 930426), '19fcc688-489e-47cc-bc2c-7bbedcb4484c')
2025-04-30 10:41:57,935 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:41:57,946 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:41:57,948 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 10:41:57,948 - sqlalchemy.engine.Engine - INFO - [generated in 0.00064s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 41, 57, 948427), '19fcc688-489e-47cc-bc2c-7bbedcb4484c')
2025-04-30 10:41:57,951 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:41:57,958 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 10:41:57,959 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:41:57,961 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:41:57,961 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] ('9314d895-3937-44f0-922c-eccddc9fd924', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '19fcc688-489e-47cc-bc2c-7bbedcb4484c', datetime.datetime(2025, 4, 30, 10, 41, 57, 959429), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 10, 41, 57, 961868), datetime.datetime(2025, 4, 30, 10, 41, 57, 961868), 0)
2025-04-30 10:41:57,962 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:41:57,969 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:41:57,970 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 10:41:57,970 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('9314d895-3937-44f0-922c-eccddc9fd924',)
2025-04-30 10:41:57,972 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 10:41:57,972 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 10:41:57,973 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 10:41:57,973 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 10, 41, 57, 973320), '9314d895-3937-44f0-922c-eccddc9fd924')
2025-04-30 10:41:57,974 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:41:57,980 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 10:41:57,981 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 10:41:57,981 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 10:41:57,982 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:41:57,982 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:41:57,982 - sqlalchemy.engine.Engine - INFO - [cached since 0.02138s ago] ('13395630-8d76-4054-baa2-25f84bc3c2a5', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '19fcc688-489e-47cc-bc2c-7bbedcb4484c', datetime.datetime(2025, 4, 30, 10, 41, 57, 981324), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 10, 41, 57, 982321), datetime.datetime(2025, 4, 30, 10, 41, 57, 982321), 0)
2025-04-30 10:41:57,983 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:41:57,990 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 13395630-8d76-4054-baa2-25f84bc3c2a5
2025-04-30 10:41:57,990 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:41:57,991 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 10:41:57,992 - sqlalchemy.engine.Engine - INFO - [cached since 0.02199s ago] ('13395630-8d76-4054-baa2-25f84bc3c2a5',)
2025-04-30 10:41:57,993 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 10:41:57,993 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 10:41:57,994 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 10:41:57,994 - sqlalchemy.engine.Engine - INFO - [cached since 0.02061s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 10, 41, 57, 994128), '13395630-8d76-4054-baa2-25f84bc3c2a5')
2025-04-30 10:41:57,995 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:41:58,003 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 10:41:58,003 - services.sync_service - INFO - 正在创建选择AMR任务: 19fcc688-489e-47cc-bc2c-7bbedcb4484c, 站点: TK01
2025-04-30 10:41:58,038 - services.sync_service - INFO - 成功为任务选择AMR: 19fcc688-489e-47cc-bc2c-7bbedcb4484c, AMR: None
2025-04-30 10:41:58,039 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917409054611886082 的AMR选择结果
2025-04-30 10:41:58,039 - services.sync_service - INFO - 开始等待任务块 1917409054611886082 的AMR选择结果
2025-04-30 10:41:58,039 - services.sync_service - INFO - 正在获取任务块详情: 1917409054611886082
2025-04-30 10:41:58,058 - services.sync_service - INFO - 成功获取任务块详情: 1917409054611886082 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409054611886082', 'taskId': '1917409053844328449', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:41:57', 'updateTime': None}, 'timestamp': 1745980917036}
2025-04-30 10:41:58,059 - services.sync_service - DEBUG - 任务块 1917409054611886082 AMR选择未完成，已尝试 1 次
2025-04-30 10:41:58,557 - services.sync_service - INFO - 正在获取任务块详情: 1917409054611886082
2025-04-30 10:41:58,579 - services.sync_service - INFO - 成功获取任务块详情: 1917409054611886082 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409054611886082', 'taskId': '1917409053844328449', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:41:57', 'updateTime': None}, 'timestamp': 1745980917555}
2025-04-30 10:41:58,579 - services.sync_service - DEBUG - 任务块 1917409054611886082 AMR选择未完成，已尝试 2 次
2025-04-30 10:41:58,917 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:41:58,918 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:41:58,919 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:41:58,920 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:41:59,087 - services.sync_service - INFO - 正在获取任务块详情: 1917409054611886082
2025-04-30 10:41:59,104 - services.sync_service - INFO - 成功获取任务块详情: 1917409054611886082 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409054611886082', 'taskId': '1917409053844328449', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:41:57', 'updateTime': None}, 'timestamp': 1745980918082}
2025-04-30 10:41:59,104 - services.sync_service - DEBUG - 任务块 1917409054611886082 AMR选择未完成，已尝试 3 次
2025-04-30 10:41:59,614 - services.sync_service - INFO - 正在获取任务块详情: 1917409054611886082
2025-04-30 10:41:59,677 - services.sync_service - INFO - 成功获取任务块详情: 1917409054611886082 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409054611886082', 'taskId': '1917409053844328449', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:41:57', 'updateTime': None}, 'timestamp': 1745980918616}
2025-04-30 10:41:59,678 - services.sync_service - DEBUG - 任务块 1917409054611886082 AMR选择未完成，已尝试 4 次
2025-04-30 10:41:59,924 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:41:59,925 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:41:59,925 - sqlalchemy.engine.Engine - INFO - [cached since 1.007s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:41:59,926 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:00,186 - services.sync_service - INFO - 正在获取任务块详情: 1917409054611886082
2025-04-30 10:42:00,216 - services.sync_service - INFO - 成功获取任务块详情: 1917409054611886082 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409054611886082', 'taskId': '1917409053844328449', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:41:57', 'updateTime': None}, 'timestamp': 1745980919194}
2025-04-30 10:42:00,220 - services.sync_service - DEBUG - 任务块 1917409054611886082 AMR选择未完成，已尝试 5 次
2025-04-30 10:42:00,748 - services.sync_service - INFO - 正在获取任务块详情: 1917409054611886082
2025-04-30 10:42:00,795 - services.sync_service - INFO - 成功获取任务块详情: 1917409054611886082 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409054611886082', 'taskId': '1917409053844328449', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:41:57', 'updateTime': None}, 'timestamp': 1745980919772}
2025-04-30 10:42:00,795 - services.sync_service - DEBUG - 任务块 1917409054611886082 AMR选择未完成，已尝试 6 次
2025-04-30 10:42:00,939 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:00,945 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:00,948 - sqlalchemy.engine.Engine - INFO - [cached since 2.031s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:00,954 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:01,297 - services.sync_service - INFO - 正在获取任务块详情: 1917409054611886082
2025-04-30 10:42:01,360 - services.sync_service - INFO - 成功获取任务块详情: 1917409054611886082 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409054611886082', 'taskId': '1917409053844328449', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:41:57', 'updateTime': None}, 'timestamp': 1745980920338}
2025-04-30 10:42:01,362 - services.sync_service - DEBUG - 任务块 1917409054611886082 AMR选择未完成，已尝试 7 次
2025-04-30 10:42:01,890 - services.sync_service - INFO - 正在获取任务块详情: 1917409054611886082
2025-04-30 10:42:01,953 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:01,954 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:01,955 - sqlalchemy.engine.Engine - INFO - [cached since 3.037s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:01,956 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:01,968 - services.sync_service - INFO - 成功获取任务块详情: 1917409054611886082 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409054611886082', 'taskId': '1917409053844328449', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:41:57', 'updateTime': None}, 'timestamp': 1745980920945}
2025-04-30 10:42:01,970 - services.sync_service - DEBUG - 任务块 1917409054611886082 AMR选择未完成，已尝试 8 次
2025-04-30 10:42:02,448 - services.sync_service - INFO - 正在获取任务块详情: 1917409054611886082
2025-04-30 10:42:02,537 - services.sync_service - INFO - 成功获取任务块详情: 1917409054611886082 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409054611886082', 'taskId': '1917409053844328449', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:41:57', 'updateTime': None}, 'timestamp': 1745980921497}
2025-04-30 10:42:02,539 - services.sync_service - DEBUG - 任务块 1917409054611886082 AMR选择未完成，已尝试 9 次
2025-04-30 10:42:02,978 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:02,979 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:02,979 - sqlalchemy.engine.Engine - INFO - [cached since 4.062s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:02,982 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:03,055 - services.sync_service - INFO - 正在获取任务块详情: 1917409054611886082
2025-04-30 10:42:03,074 - services.sync_service - INFO - 成功获取任务块详情: 1917409054611886082 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409054611886082', 'taskId': '1917409053844328449', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:41:57', 'updateTime': None}, 'timestamp': 1745980922052}
2025-04-30 10:42:03,074 - services.sync_service - INFO - 任务块 1917409054611886082 AMR选择未完成(amrId/appointAmrId/appointAmrGroupId均为空)，已尝试 10 次，继续等待...
2025-04-30 10:42:03,583 - services.sync_service - INFO - 正在获取任务块详情: 1917409054611886082
2025-04-30 10:42:03,607 - services.sync_service - INFO - 成功获取任务块详情: 1917409054611886082 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409054611886082', 'taskId': '1917409053844328449', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:41:57', 'updateTime': None}, 'timestamp': 1745980922584}
2025-04-30 10:42:03,607 - services.sync_service - DEBUG - 任务块 1917409054611886082 AMR选择未完成，已尝试 11 次
2025-04-30 10:42:03,988 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:03,992 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:03,992 - sqlalchemy.engine.Engine - INFO - [cached since 5.075s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:03,994 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:04,112 - services.sync_service - INFO - 正在获取任务块详情: 1917409054611886082
2025-04-30 10:42:04,154 - services.sync_service - INFO - 成功获取任务块详情: 1917409054611886082 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409054611886082', 'taskId': '1917409053844328449', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:41:57', 'updateTime': None}, 'timestamp': 1745980923122}
2025-04-30 10:42:04,155 - services.sync_service - DEBUG - 任务块 1917409054611886082 AMR选择未完成，已尝试 12 次
2025-04-30 10:42:04,670 - services.sync_service - INFO - 正在获取任务块详情: 1917409054611886082
2025-04-30 10:42:04,736 - services.sync_service - INFO - 成功获取任务块详情: 1917409054611886082 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409054611886082', 'taskId': '1917409053844328449', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:41:57', 'updateTime': '2025-04-30 10:42:03'}, 'timestamp': 1745980923715}
2025-04-30 10:42:04,737 - services.sync_service - INFO - 任务块 1917409054611886082 已选择AMR: 1912328602264645634，共尝试 13 次
2025-04-30 10:42:04,737 - services.execution.handlers.robot_scheduling - INFO - 准备更新任务 19fcc688-489e-47cc-bc2c-7bbedcb4484c 的机器人ID: 1912328602264645634
2025-04-30 10:42:04,739 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:04,741 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.agv_id 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:04,741 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:04,742 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET agv_id=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:04,742 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] ('1912328602264645634', datetime.datetime(2025, 4, 30, 10, 42, 4, 742973), '19fcc688-489e-47cc-bc2c-7bbedcb4484c')
2025-04-30 10:42:04,743 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:04,750 - services.execution.handlers.robot_scheduling - INFO - 成功更新任务记录 19fcc688-489e-47cc-bc2c-7bbedcb4484c 的agv_id字段: 1912328602264645634
2025-04-30 10:42:04,751 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 10:42:04,751 - services.execution.handlers.robot_scheduling - INFO - 块 b1(ID:1) 有 1 个子块
2025-04-30 10:42:04,751 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: [2]
2025-04-30 10:42:04,751 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 10:42:04,751 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 1 个
2025-04-30 10:42:04,751 - services.execution.handlers.robot_scheduling - INFO - 1. b2(ID:2, 类型:CAgvOperationBp, 关系:direct_child)
2025-04-30 10:42:04,751 - services.execution.handlers.robot_scheduling - INFO - 开始执行选择机器人块 b1 的子块
2025-04-30 10:42:04,751 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-30 10:42:04,751 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 1 个子块
2025-04-30 10:42:04,751 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b2, ID: 2, 类型: CAgvOperationBp
2025-04-30 10:42:04,751 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:04,753 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:42:04,753 - sqlalchemy.engine.Engine - INFO - [cached since 6.792s ago] ('7cb53500-7bb2-45e2-98f0-63f67456ccf2', 'b2', '2', '', '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"targetSiteLabel": "PT02", "scriptName": "JackUnload"}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917409054611886082"}', 'CAgvOperationBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '19fcc688-489e-47cc-bc2c-7bbedcb4484c', datetime.datetime(2025, 4, 30, 10, 42, 4, 751880), <TaskBlockRecordStatus.RUNNING: 1001>, '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917409054611886082"}', 1, datetime.datetime(2025, 4, 30, 10, 42, 4, 753190), datetime.datetime(2025, 4, 30, 10, 42, 4, 753190), 0)
2025-04-30 10:42:04,754 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:04,759 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 7cb53500-7bb2-45e2-98f0-63f67456ccf2
2025-04-30 10:42:04,759 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:04,759 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 10:42:04,759 - sqlalchemy.engine.Engine - INFO - [cached since 6.79s ago] ('7cb53500-7bb2-45e2-98f0-63f67456ccf2',)
2025-04-30 10:42:04,761 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-30 10:42:04,761 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-30 10:42:04,761 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 10:42:04,761 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('{"selectedAgvId": "1912328602264645634"}', '执行中', "{'agv_for_block_2': '1912328602264645634', 'agv_for_b2': '1912328602264645634', 'agv_task_id_2': '1917409054611886082'}", '{"blocks": {"b2": {"selectedAgvId": "1912328602264645634"}}}', '执行中', datetime.datetime(2025, 4, 30, 10, 42, 4, 761065), '7cb53500-7bb2-45e2-98f0-63f67456ccf2')
2025-04-30 10:42:04,762 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:04,773 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-30 10:42:04,773 - services.execution.handlers.robot_scheduling - INFO - 找到块 b2(ID:2) 专用的机器人ID: 1912328602264645634
2025-04-30 10:42:04,773 - services.execution.handlers.robot_scheduling - INFO - 执行机器人通用动作，块 b2(ID:2) 使用机器人: 1912328602264645634, 目标站点: PT02
2025-04-30 10:42:04,773 - services.sync_service - INFO - 正在为任务添加动作: 1917409054611886082, 站点: PT02, 动作: JackUnload
2025-04-30 10:42:04,823 - services.sync_service - INFO - 成功为任务添加动作: 1917409054611886082, 站点: PT02, 动作: JackUnload
2025-04-30 10:42:04,824 - services.sync_service - INFO - 开始等待任务块 1917409083057655810 的动作完成
2025-04-30 10:42:04,824 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:04,998 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:05,000 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:05,004 - sqlalchemy.engine.Engine - INFO - [cached since 6.086s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:05,009 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:05,159 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980923936}
2025-04-30 10:42:05,159 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 1 次
2025-04-30 10:42:05,678 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:05,900 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980924872}
2025-04-30 10:42:05,901 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 2 次
2025-04-30 10:42:06,008 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:06,009 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:06,009 - sqlalchemy.engine.Engine - INFO - [cached since 7.091s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:06,012 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:06,399 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:06,476 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980925451}
2025-04-30 10:42:06,477 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 3 次
2025-04-30 10:42:06,979 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:07,042 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:07,044 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:07,045 - sqlalchemy.engine.Engine - INFO - [cached since 8.127s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:07,046 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:07,062 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980926032}
2025-04-30 10:42:07,062 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 4 次
2025-04-30 10:42:07,572 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:07,590 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980926568}
2025-04-30 10:42:07,595 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 5 次
2025-04-30 10:42:08,056 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:08,057 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:08,057 - sqlalchemy.engine.Engine - INFO - [cached since 9.14s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:08,060 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:08,107 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:08,325 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980927131}
2025-04-30 10:42:08,328 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 6 次
2025-04-30 10:42:08,834 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:08,869 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980927834}
2025-04-30 10:42:08,870 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 7 次
2025-04-30 10:42:09,055 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:09,056 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:09,057 - sqlalchemy.engine.Engine - INFO - [cached since 10.14s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:09,058 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:09,372 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:09,478 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980928427}
2025-04-30 10:42:09,478 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 8 次
2025-04-30 10:42:09,992 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:10,020 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980928998}
2025-04-30 10:42:10,021 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 9 次
2025-04-30 10:42:10,054 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:10,055 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:10,055 - sqlalchemy.engine.Engine - INFO - [cached since 11.14s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:10,061 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:10,533 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:10,640 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980929588}
2025-04-30 10:42:10,641 - services.sync_service - INFO - 任务块 1917409083057655810 动作未完成(actionStatus为空)，已尝试 10 次，继续等待...
2025-04-30 10:42:11,065 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:11,070 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:11,074 - sqlalchemy.engine.Engine - INFO - [cached since 12.16s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:11,079 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:11,158 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:11,178 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980930155}
2025-04-30 10:42:11,178 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 11 次
2025-04-30 10:42:11,687 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:11,712 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980930690}
2025-04-30 10:42:11,713 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 12 次
2025-04-30 10:42:12,092 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:12,094 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:12,094 - sqlalchemy.engine.Engine - INFO - [cached since 13.18s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:12,095 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:12,230 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:12,292 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980931268}
2025-04-30 10:42:12,293 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 13 次
2025-04-30 10:42:12,806 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:12,860 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980931825}
2025-04-30 10:42:12,863 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 14 次
2025-04-30 10:42:13,116 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:13,117 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:13,117 - sqlalchemy.engine.Engine - INFO - [cached since 14.2s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:13,119 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:13,364 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:13,518 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980932426}
2025-04-30 10:42:13,519 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 15 次
2025-04-30 10:42:14,026 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:14,136 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:14,137 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:14,138 - sqlalchemy.engine.Engine - INFO - [cached since 15.22s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:14,139 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:14,255 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980933164}
2025-04-30 10:42:14,256 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 16 次
2025-04-30 10:42:14,760 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:14,813 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980933778}
2025-04-30 10:42:14,814 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 17 次
2025-04-30 10:42:15,130 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:15,131 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:15,131 - sqlalchemy.engine.Engine - INFO - [cached since 16.21s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:15,132 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:15,315 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:15,393 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980934369}
2025-04-30 10:42:15,393 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 18 次
2025-04-30 10:42:15,920 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:15,966 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980934944}
2025-04-30 10:42:15,967 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 19 次
2025-04-30 10:42:16,141 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:16,141 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:16,141 - sqlalchemy.engine.Engine - INFO - [cached since 17.22s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:16,142 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:16,467 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:16,551 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980935523}
2025-04-30 10:42:16,551 - services.sync_service - INFO - 任务块 1917409083057655810 动作未完成(actionStatus为空)，已尝试 20 次，继续等待...
2025-04-30 10:42:17,075 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:17,099 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980936076}
2025-04-30 10:42:17,099 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 21 次
2025-04-30 10:42:17,154 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:17,155 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:17,155 - sqlalchemy.engine.Engine - INFO - [cached since 18.24s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:17,158 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:17,621 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:17,652 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980936628}
2025-04-30 10:42:17,653 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 22 次
2025-04-30 10:42:18,167 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:18,169 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:18,169 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:18,170 - sqlalchemy.engine.Engine - INFO - [cached since 19.25s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:18,171 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:18,212 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980937189}
2025-04-30 10:42:18,213 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 23 次
2025-04-30 10:42:18,711 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:18,727 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980937705}
2025-04-30 10:42:18,729 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 24 次
2025-04-30 10:42:19,179 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:19,180 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:19,180 - sqlalchemy.engine.Engine - INFO - [cached since 20.26s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:19,181 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:19,225 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:19,247 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980938219}
2025-04-30 10:42:19,249 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 25 次
2025-04-30 10:42:19,738 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:19,785 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980938764}
2025-04-30 10:42:19,791 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 26 次
2025-04-30 10:42:20,194 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:20,194 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:20,195 - sqlalchemy.engine.Engine - INFO - [cached since 21.28s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:20,197 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:20,303 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:20,383 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980939355}
2025-04-30 10:42:20,384 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 27 次
2025-04-30 10:42:20,898 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:20,926 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980939904}
2025-04-30 10:42:20,926 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 28 次
2025-04-30 10:42:21,194 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:21,195 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:21,196 - sqlalchemy.engine.Engine - INFO - [cached since 22.28s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:21,196 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:21,439 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:21,495 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980940472}
2025-04-30 10:42:21,496 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 29 次
2025-04-30 10:42:21,993 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:22,035 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980941011}
2025-04-30 10:42:22,036 - services.sync_service - INFO - 任务块 1917409083057655810 动作未完成(actionStatus为空)，已尝试 30 次，继续等待...
2025-04-30 10:42:22,196 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:22,196 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:22,196 - sqlalchemy.engine.Engine - INFO - [cached since 23.28s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:22,198 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:22,555 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:22,601 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980941578}
2025-04-30 10:42:22,603 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 31 次
2025-04-30 10:42:23,100 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:23,195 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:23,196 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:23,197 - sqlalchemy.engine.Engine - INFO - [cached since 24.28s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:23,198 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:23,262 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980942189}
2025-04-30 10:42:23,262 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 32 次
2025-04-30 10:42:23,752 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:23,785 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980942762}
2025-04-30 10:42:23,786 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 33 次
2025-04-30 10:42:24,209 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:24,211 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:24,212 - sqlalchemy.engine.Engine - INFO - [cached since 25.29s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:24,214 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:24,270 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:24,362 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980943293}
2025-04-30 10:42:24,364 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 34 次
2025-04-30 10:42:24,876 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:24,894 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980943873}
2025-04-30 10:42:24,895 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 35 次
2025-04-30 10:42:25,220 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:25,220 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:25,221 - sqlalchemy.engine.Engine - INFO - [cached since 26.3s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:25,221 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:25,407 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:25,485 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980944461}
2025-04-30 10:42:25,488 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 36 次
2025-04-30 10:42:26,000 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:26,016 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980944994}
2025-04-30 10:42:26,016 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 37 次
2025-04-30 10:42:26,246 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:26,250 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:26,251 - sqlalchemy.engine.Engine - INFO - [cached since 27.33s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:26,253 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:26,524 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:26,540 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980945518}
2025-04-30 10:42:26,541 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 38 次
2025-04-30 10:42:27,036 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:27,052 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980946030}
2025-04-30 10:42:27,054 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 39 次
2025-04-30 10:42:27,255 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:27,256 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:27,256 - sqlalchemy.engine.Engine - INFO - [cached since 28.34s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:27,260 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:27,565 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:27,585 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980946560}
2025-04-30 10:42:27,585 - services.sync_service - INFO - 任务块 1917409083057655810 动作未完成(actionStatus为空)，已尝试 40 次，继续等待...
2025-04-30 10:42:28,107 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:28,141 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980947118}
2025-04-30 10:42:28,142 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 41 次
2025-04-30 10:42:28,269 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:28,270 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:28,273 - sqlalchemy.engine.Engine - INFO - [cached since 29.36s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:28,275 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:28,654 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:28,681 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980947659}
2025-04-30 10:42:28,681 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 42 次
2025-04-30 10:42:29,199 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:29,239 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980948205}
2025-04-30 10:42:29,240 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 43 次
2025-04-30 10:42:29,276 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:29,279 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:29,281 - sqlalchemy.engine.Engine - INFO - [cached since 30.36s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:29,282 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:29,743 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:29,769 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980948745}
2025-04-30 10:42:29,770 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 44 次
2025-04-30 10:42:30,283 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:30,287 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:30,290 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:30,294 - sqlalchemy.engine.Engine - INFO - [cached since 31.38s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:30,299 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:30,314 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980949292}
2025-04-30 10:42:30,314 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 45 次
2025-04-30 10:42:30,842 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:30,860 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980949838}
2025-04-30 10:42:30,861 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 46 次
2025-04-30 10:42:31,320 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:31,321 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:31,322 - sqlalchemy.engine.Engine - INFO - [cached since 32.4s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:31,324 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:31,383 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:31,463 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980950434}
2025-04-30 10:42:31,464 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 47 次
2025-04-30 10:42:31,971 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:32,050 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980951028}
2025-04-30 10:42:32,061 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 48 次
2025-04-30 10:42:32,331 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:32,332 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:32,333 - sqlalchemy.engine.Engine - INFO - [cached since 33.42s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:32,334 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:32,550 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:32,571 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980951549}
2025-04-30 10:42:32,573 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 49 次
2025-04-30 10:42:33,091 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:33,131 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980952097}
2025-04-30 10:42:33,132 - services.sync_service - INFO - 任务块 1917409083057655810 动作未完成(actionStatus为空)，已尝试 50 次，继续等待...
2025-04-30 10:42:33,353 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:33,353 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:33,354 - sqlalchemy.engine.Engine - INFO - [cached since 34.44s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:33,356 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:33,633 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:33,708 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980952683}
2025-04-30 10:42:33,711 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 51 次
2025-04-30 10:42:34,208 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:34,224 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980953202}
2025-04-30 10:42:34,225 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 52 次
2025-04-30 10:42:34,365 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:34,365 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:34,365 - sqlalchemy.engine.Engine - INFO - [cached since 35.45s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:34,366 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:34,721 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:34,738 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980953716}
2025-04-30 10:42:34,742 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 53 次
2025-04-30 10:42:35,251 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:35,295 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980954272}
2025-04-30 10:42:35,295 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 54 次
2025-04-30 10:42:35,379 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:35,379 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:35,380 - sqlalchemy.engine.Engine - INFO - [cached since 36.46s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:35,381 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:35,785 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:35,811 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980954786}
2025-04-30 10:42:35,811 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 55 次
2025-04-30 10:42:36,327 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:36,387 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980955363}
2025-04-30 10:42:36,388 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 56 次
2025-04-30 10:42:36,388 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:36,389 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:36,389 - sqlalchemy.engine.Engine - INFO - [cached since 37.47s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:36,390 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:36,889 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:37,200 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980955993}
2025-04-30 10:42:37,201 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 57 次
2025-04-30 10:42:37,404 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:37,405 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:37,406 - sqlalchemy.engine.Engine - INFO - [cached since 38.49s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:37,408 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:37,712 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:37,775 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980956719}
2025-04-30 10:42:37,776 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 58 次
2025-04-30 10:42:38,270 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:38,307 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980957284}
2025-04-30 10:42:38,308 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 59 次
2025-04-30 10:42:38,425 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:38,427 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:38,429 - sqlalchemy.engine.Engine - INFO - [cached since 39.51s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:38,430 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:38,798 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:38,820 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980957797}
2025-04-30 10:42:38,821 - services.sync_service - INFO - 任务块 1917409083057655810 动作未完成(actionStatus为空)，已尝试 60 次，继续等待...
2025-04-30 10:42:39,343 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:39,425 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980958350}
2025-04-30 10:42:39,427 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 61 次
2025-04-30 10:42:39,427 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:39,429 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:39,432 - sqlalchemy.engine.Engine - INFO - [cached since 40.51s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:39,434 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:39,950 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:39,976 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980958951}
2025-04-30 10:42:39,976 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 62 次
2025-04-30 10:42:40,431 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:40,432 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:40,432 - sqlalchemy.engine.Engine - INFO - [cached since 41.51s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:40,433 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:40,493 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:40,542 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980959520}
2025-04-30 10:42:40,544 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 63 次
2025-04-30 10:42:41,042 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:41,065 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980960039}
2025-04-30 10:42:41,066 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 64 次
2025-04-30 10:42:41,444 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:41,446 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:41,447 - sqlalchemy.engine.Engine - INFO - [cached since 42.53s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:41,448 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:41,572 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:41,596 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980960573}
2025-04-30 10:42:41,600 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 65 次
2025-04-30 10:42:42,097 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:42,143 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980961105}
2025-04-30 10:42:42,145 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 66 次
2025-04-30 10:42:42,456 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:42,458 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:42,459 - sqlalchemy.engine.Engine - INFO - [cached since 43.54s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:42,460 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:42,642 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:42,716 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980961695}
2025-04-30 10:42:42,717 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 67 次
2025-04-30 10:42:43,204 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:43,278 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980962254}
2025-04-30 10:42:43,279 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 68 次
2025-04-30 10:42:43,472 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:43,473 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:43,473 - sqlalchemy.engine.Engine - INFO - [cached since 44.56s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:43,475 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:43,783 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:43,826 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980962805}
2025-04-30 10:42:43,827 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 69 次
2025-04-30 10:42:44,343 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:44,368 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980963346}
2025-04-30 10:42:44,369 - services.sync_service - INFO - 任务块 1917409083057655810 动作未完成(actionStatus为空)，已尝试 70 次，继续等待...
2025-04-30 10:42:44,498 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:44,500 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:44,500 - sqlalchemy.engine.Engine - INFO - [cached since 45.58s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:44,502 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:44,872 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:44,911 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980963880}
2025-04-30 10:42:44,912 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 71 次
2025-04-30 10:42:45,429 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:45,509 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:45,513 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:45,514 - sqlalchemy.engine.Engine - INFO - [cached since 46.6s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:45,516 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:45,543 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980964521}
2025-04-30 10:42:45,545 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 72 次
2025-04-30 10:42:46,040 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:46,104 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980965077}
2025-04-30 10:42:46,106 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 73 次
2025-04-30 10:42:46,526 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:46,528 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:46,530 - sqlalchemy.engine.Engine - INFO - [cached since 47.61s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:46,531 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:46,620 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:46,653 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980965616}
2025-04-30 10:42:46,654 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 74 次
2025-04-30 10:42:47,160 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:47,185 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980966162}
2025-04-30 10:42:47,186 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 75 次
2025-04-30 10:42:47,535 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:47,540 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:47,542 - sqlalchemy.engine.Engine - INFO - [cached since 48.62s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:47,547 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:47,688 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:47,735 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980966711}
2025-04-30 10:42:47,737 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 76 次
2025-04-30 10:42:48,265 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:48,314 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980967289}
2025-04-30 10:42:48,315 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 77 次
2025-04-30 10:42:48,578 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:48,579 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:48,579 - sqlalchemy.engine.Engine - INFO - [cached since 49.66s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:48,580 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:48,843 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:48,912 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980967872}
2025-04-30 10:42:48,912 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 78 次
2025-04-30 10:42:49,402 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:49,499 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980968476}
2025-04-30 10:42:49,500 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 79 次
2025-04-30 10:42:49,608 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:49,610 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:49,611 - sqlalchemy.engine.Engine - INFO - [cached since 50.69s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:49,616 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:49,998 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:50,040 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980968997}
2025-04-30 10:42:50,040 - services.sync_service - INFO - 任务块 1917409083057655810 动作未完成(actionStatus为空)，已尝试 80 次，继续等待...
2025-04-30 10:42:50,555 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:50,605 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980969581}
2025-04-30 10:42:50,607 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 81 次
2025-04-30 10:42:50,607 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:50,610 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:50,612 - sqlalchemy.engine.Engine - INFO - [cached since 51.69s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:50,614 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:51,100 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:51,123 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980970101}
2025-04-30 10:42:51,123 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 82 次
2025-04-30 10:42:51,626 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:51,628 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:51,629 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:51,629 - sqlalchemy.engine.Engine - INFO - [cached since 52.71s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:51,631 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:51,674 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980970648}
2025-04-30 10:42:51,675 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 83 次
2025-04-30 10:42:52,199 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:52,225 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980971198}
2025-04-30 10:42:52,226 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 84 次
2025-04-30 10:42:52,637 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:52,639 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:52,640 - sqlalchemy.engine.Engine - INFO - [cached since 53.72s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:52,641 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:52,728 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:52,747 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980971725}
2025-04-30 10:42:52,748 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 85 次
2025-04-30 10:42:53,237 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:53,477 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980972275}
2025-04-30 10:42:53,478 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 86 次
2025-04-30 10:42:53,647 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:53,649 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:53,651 - sqlalchemy.engine.Engine - INFO - [cached since 54.73s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:53,654 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:53,712 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:53,714 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:42:53,714 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 42, 53, 711349))
2025-04-30 10:42:53,716 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:53,758 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:42:53,761 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:42:53,762 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:42:53,762 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:42:53,762 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:42:53,762 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:42:53,762 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:42:53,763 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:42:53,764 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:42:53,764 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:42:53,764 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:42:53,764 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:42:53,764 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:42:53,764 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:42:53,764 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:42:53,764 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:42:53,764 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:42:53,764 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:42:53,765 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:42:53,765 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:42:53,765 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:42:53,765 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:42:53,765 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:42:53,769 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:42:53,977 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:54,023 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980972999}
2025-04-30 10:42:54,024 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 87 次
2025-04-30 10:42:54,521 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:54,543 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980973520}
2025-04-30 10:42:54,543 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 88 次
2025-04-30 10:42:54,679 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:54,681 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:54,682 - sqlalchemy.engine.Engine - INFO - [cached since 55.76s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:54,685 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:55,052 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:55,081 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980974058}
2025-04-30 10:42:55,085 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 89 次
2025-04-30 10:42:55,591 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:55,640 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980974612}
2025-04-30 10:42:55,640 - services.sync_service - INFO - 任务块 1917409083057655810 动作未完成(actionStatus为空)，已尝试 90 次，继续等待...
2025-04-30 10:42:55,716 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:55,717 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:55,717 - sqlalchemy.engine.Engine - INFO - [cached since 56.8s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:55,718 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:56,166 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:56,196 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980975174}
2025-04-30 10:42:56,197 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 91 次
2025-04-30 10:42:56,710 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:56,713 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:56,713 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:56,714 - sqlalchemy.engine.Engine - INFO - [cached since 57.8s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:56,715 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:56,741 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980975719}
2025-04-30 10:42:56,741 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 92 次
2025-04-30 10:42:57,238 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:57,365 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980976336}
2025-04-30 10:42:57,367 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 93 次
2025-04-30 10:42:57,706 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:57,710 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:57,715 - sqlalchemy.engine.Engine - INFO - [cached since 58.8s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:57,716 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:57,862 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:57,880 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980976858}
2025-04-30 10:42:57,881 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 94 次
2025-04-30 10:42:58,389 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:58,455 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980977410}
2025-04-30 10:42:58,457 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 95 次
2025-04-30 10:42:58,719 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:58,720 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:58,724 - sqlalchemy.engine.Engine - INFO - [cached since 59.81s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:58,726 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:42:58,969 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:59,006 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980977984}
2025-04-30 10:42:59,006 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 96 次
2025-04-30 10:42:59,528 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:42:59,580 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980978554}
2025-04-30 10:42:59,581 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 97 次
2025-04-30 10:42:59,746 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:42:59,747 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:42:59,748 - sqlalchemy.engine.Engine - INFO - [cached since 60.83s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:42:59,750 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:00,075 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:43:00,120 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980979096}
2025-04-30 10:43:00,121 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 98 次
2025-04-30 10:43:00,621 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:43:00,641 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980979618}
2025-04-30 10:43:00,644 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 99 次
2025-04-30 10:43:00,776 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:00,777 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:00,779 - sqlalchemy.engine.Engine - INFO - [cached since 61.86s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:00,780 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:01,151 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:43:01,187 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980980151}
2025-04-30 10:43:01,188 - services.sync_service - INFO - 任务块 1917409083057655810 动作未完成(actionStatus为空)，已尝试 100 次，继续等待...
2025-04-30 10:43:01,696 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:43:01,713 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980980691}
2025-04-30 10:43:01,715 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 101 次
2025-04-30 10:43:01,788 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:01,789 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:01,790 - sqlalchemy.engine.Engine - INFO - [cached since 62.87s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:01,793 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:02,226 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:43:02,331 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980981279}
2025-04-30 10:43:02,331 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 102 次
2025-04-30 10:43:02,770 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:02,770 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:02,770 - sqlalchemy.engine.Engine - INFO - [cached since 63.85s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:02,772 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:02,847 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:43:02,876 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980981853}
2025-04-30 10:43:02,877 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 103 次
2025-04-30 10:43:03,391 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:43:03,464 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980982396}
2025-04-30 10:43:03,464 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 104 次
2025-04-30 10:43:03,799 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:03,800 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:03,801 - sqlalchemy.engine.Engine - INFO - [cached since 64.88s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:03,803 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:03,955 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:43:03,977 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980982954}
2025-04-30 10:43:03,979 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 105 次
2025-04-30 10:43:04,486 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:43:04,512 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980983491}
2025-04-30 10:43:04,513 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 106 次
2025-04-30 10:43:04,799 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:04,800 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:04,801 - sqlalchemy.engine.Engine - INFO - [cached since 65.88s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:04,802 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:05,003 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:43:05,063 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980984041}
2025-04-30 10:43:05,065 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 107 次
2025-04-30 10:43:05,592 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:43:05,621 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980984598}
2025-04-30 10:43:05,622 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 108 次
2025-04-30 10:43:05,812 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:05,815 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:05,816 - sqlalchemy.engine.Engine - INFO - [cached since 66.9s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:05,819 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:06,122 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:43:06,150 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980985120}
2025-04-30 10:43:06,151 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 109 次
2025-04-30 10:43:06,651 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:43:06,693 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980985671}
2025-04-30 10:43:06,693 - services.sync_service - INFO - 任务块 1917409083057655810 动作未完成(actionStatus为空)，已尝试 110 次，继续等待...
2025-04-30 10:43:06,825 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:06,826 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:06,827 - sqlalchemy.engine.Engine - INFO - [cached since 67.91s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:06,828 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:07,211 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:43:07,273 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980986249}
2025-04-30 10:43:07,275 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 111 次
2025-04-30 10:43:07,773 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:43:07,802 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980986779}
2025-04-30 10:43:07,803 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 112 次
2025-04-30 10:43:07,837 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:07,838 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:07,838 - sqlalchemy.engine.Engine - INFO - [cached since 68.92s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:07,840 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:08,320 - services.sync_service - INFO - 正在获取任务块动作详情: 1917409083057655810
2025-04-30 10:43:08,529 - services.sync_service - INFO - 成功获取任务块动作详情: 1917409083057655810 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917409083057655810', 'tenantId': 1000, 'taskId': '1917409053844328449', 'taskBlockId': '1917409054611886082', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:42:04'}, 'timestamp': 1745980987438}
2025-04-30 10:43:08,530 - services.sync_service - DEBUG - 任务块 1917409083057655810 动作未完成，已尝试 113 次
2025-04-30 10:43:08,769 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:43:08,772 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:43:08,772 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:43:08,772 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:43:08,773 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:43:08,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:43:08,850 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:08,851 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:08,852 - sqlalchemy.engine.Engine - INFO - [cached since 69.93s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:08,855 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:09,863 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:09,867 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:09,867 - sqlalchemy.engine.Engine - INFO - [cached since 70.95s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:09,868 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:10,877 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:10,881 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:10,881 - sqlalchemy.engine.Engine - INFO - [cached since 71.96s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:10,883 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:11,878 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:11,882 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:11,882 - sqlalchemy.engine.Engine - INFO - [cached since 72.96s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:11,884 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:12,902 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:12,903 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:12,905 - sqlalchemy.engine.Engine - INFO - [cached since 73.99s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:12,906 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:13,916 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:13,918 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:13,919 - sqlalchemy.engine.Engine - INFO - [cached since 75s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:13,926 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:14,944 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:14,946 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:14,946 - sqlalchemy.engine.Engine - INFO - [cached since 76.03s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:14,947 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:15,956 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:15,956 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:15,957 - sqlalchemy.engine.Engine - INFO - [cached since 77.04s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:15,958 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:16,963 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:16,964 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:16,965 - sqlalchemy.engine.Engine - INFO - [cached since 78.05s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:16,965 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:17,980 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:17,981 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:17,982 - sqlalchemy.engine.Engine - INFO - [cached since 79.06s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:17,983 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:18,990 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:18,991 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:18,991 - sqlalchemy.engine.Engine - INFO - [cached since 80.07s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:18,993 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:19,970 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:19,972 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:19,972 - sqlalchemy.engine.Engine - INFO - [cached since 81.05s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:19,973 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:20,982 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:20,982 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:20,983 - sqlalchemy.engine.Engine - INFO - [cached since 82.06s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:20,984 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:21,995 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:21,996 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:21,997 - sqlalchemy.engine.Engine - INFO - [cached since 83.08s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:21,998 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:23,006 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:23,006 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:23,006 - sqlalchemy.engine.Engine - INFO - [cached since 84.09s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:23,007 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:24,031 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:24,034 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:24,034 - sqlalchemy.engine.Engine - INFO - [cached since 85.12s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:24,037 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:25,044 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:25,047 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:25,051 - sqlalchemy.engine.Engine - INFO - [cached since 86.13s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:25,052 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:26,072 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:26,073 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:26,073 - sqlalchemy.engine.Engine - INFO - [cached since 87.16s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:26,076 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:27,085 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:27,086 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:27,086 - sqlalchemy.engine.Engine - INFO - [cached since 88.17s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:27,087 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:28,082 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:28,083 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:28,083 - sqlalchemy.engine.Engine - INFO - [cached since 89.17s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:28,084 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:29,108 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:29,112 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:29,113 - sqlalchemy.engine.Engine - INFO - [cached since 90.2s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:29,115 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:30,135 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:30,138 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:30,138 - sqlalchemy.engine.Engine - INFO - [cached since 91.22s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:30,139 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:31,160 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:31,161 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:31,161 - sqlalchemy.engine.Engine - INFO - [cached since 92.24s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:31,162 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:32,171 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:32,172 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:32,172 - sqlalchemy.engine.Engine - INFO - [cached since 93.25s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:32,173 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:33,197 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:33,201 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:33,204 - sqlalchemy.engine.Engine - INFO - [cached since 94.29s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:33,204 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:34,211 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:34,214 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:34,216 - sqlalchemy.engine.Engine - INFO - [cached since 95.3s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:34,221 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:35,238 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:35,241 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:35,243 - sqlalchemy.engine.Engine - INFO - [cached since 96.32s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:35,244 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:36,238 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:36,238 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:36,238 - sqlalchemy.engine.Engine - INFO - [cached since 97.32s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:36,239 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:37,251 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:37,252 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:37,253 - sqlalchemy.engine.Engine - INFO - [cached since 98.34s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:37,254 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:38,277 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:38,280 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:38,282 - sqlalchemy.engine.Engine - INFO - [cached since 99.36s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:38,284 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:39,304 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:39,307 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:39,308 - sqlalchemy.engine.Engine - INFO - [cached since 100.4s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:39,309 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:40,301 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:40,303 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:40,304 - sqlalchemy.engine.Engine - INFO - [cached since 101.4s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:40,304 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:41,312 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:41,316 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:41,318 - sqlalchemy.engine.Engine - INFO - [cached since 102.4s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:41,322 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:42,335 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:42,339 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:42,344 - sqlalchemy.engine.Engine - INFO - [cached since 103.4s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:42,348 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:43,360 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:43,360 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:43,361 - sqlalchemy.engine.Engine - INFO - [cached since 104.4s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:43,361 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:44,372 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:44,372 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:44,372 - sqlalchemy.engine.Engine - INFO - [cached since 105.5s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:44,374 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:45,382 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:45,383 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:45,384 - sqlalchemy.engine.Engine - INFO - [cached since 106.5s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:45,386 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:46,405 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:46,415 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:46,415 - sqlalchemy.engine.Engine - INFO - [cached since 107.5s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:46,417 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:47,421 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:47,422 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:47,422 - sqlalchemy.engine.Engine - INFO - [cached since 108.5s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:47,423 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:48,431 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:48,431 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:48,432 - sqlalchemy.engine.Engine - INFO - [cached since 109.5s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:48,432 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:49,440 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:49,441 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:49,442 - sqlalchemy.engine.Engine - INFO - [cached since 110.5s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:49,443 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:50,455 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:50,456 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:50,456 - sqlalchemy.engine.Engine - INFO - [cached since 111.5s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:50,458 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:51,481 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:51,482 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:51,483 - sqlalchemy.engine.Engine - INFO - [cached since 112.6s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:51,484 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:52,496 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:52,498 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:52,499 - sqlalchemy.engine.Engine - INFO - [cached since 113.6s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:52,501 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:53,517 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:53,520 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:53,521 - sqlalchemy.engine.Engine - INFO - [cached since 114.6s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:53,522 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:53,735 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:53,736 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:43:53,737 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 43, 53, 735436))
2025-04-30 10:43:53,739 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:53,797 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:43:53,798 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:43:53,798 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:43:53,798 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:43:53,799 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:43:53,799 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:43:53,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:43:53,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:43:53,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:43:53,799 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:43:53,799 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:43:53,800 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:43:53,800 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:43:53,800 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:43:53,800 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:43:53,800 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:43:53,800 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:43:53,800 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:43:53,800 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:43:53,801 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:43:53,801 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:43:53,801 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:43:53,801 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:43:53,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:43:54,544 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:54,546 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:54,546 - sqlalchemy.engine.Engine - INFO - [cached since 115.6s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:54,548 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:55,574 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:55,575 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:55,577 - sqlalchemy.engine.Engine - INFO - [cached since 116.7s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:55,578 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:56,588 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:56,589 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:56,590 - sqlalchemy.engine.Engine - INFO - [cached since 117.7s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:56,591 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:57,580 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:57,581 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:57,582 - sqlalchemy.engine.Engine - INFO - [cached since 118.7s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:57,584 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:58,602 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:58,602 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:58,603 - sqlalchemy.engine.Engine - INFO - [cached since 119.7s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:58,604 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:43:59,612 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:43:59,615 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:43:59,619 - sqlalchemy.engine.Engine - INFO - [cached since 120.7s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:43:59,624 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:00,650 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:00,650 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:00,650 - sqlalchemy.engine.Engine - INFO - [cached since 121.7s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:00,652 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:01,646 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:01,648 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:01,650 - sqlalchemy.engine.Engine - INFO - [cached since 122.7s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:01,652 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:02,671 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:02,671 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:02,672 - sqlalchemy.engine.Engine - INFO - [cached since 123.8s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:02,673 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:03,685 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:03,686 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:03,686 - sqlalchemy.engine.Engine - INFO - [cached since 124.8s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:03,687 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:04,696 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:04,698 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:04,701 - sqlalchemy.engine.Engine - INFO - [cached since 125.8s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:04,705 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:05,724 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:05,728 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:05,728 - sqlalchemy.engine.Engine - INFO - [cached since 126.8s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:05,729 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:06,738 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:06,739 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:06,740 - sqlalchemy.engine.Engine - INFO - [cached since 127.8s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:06,741 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:07,746 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:07,746 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:07,747 - sqlalchemy.engine.Engine - INFO - [cached since 128.8s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:07,749 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:08,756 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:08,756 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:08,756 - sqlalchemy.engine.Engine - INFO - [cached since 129.8s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:08,758 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:08,817 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:44:08,822 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:44:08,824 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:44:08,826 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:44:08,828 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:44:08,830 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:44:09,753 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:09,754 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:09,754 - sqlalchemy.engine.Engine - INFO - [cached since 130.8s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:09,755 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:10,780 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:10,780 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:10,780 - sqlalchemy.engine.Engine - INFO - [cached since 131.9s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:10,781 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:11,794 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:11,796 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:11,800 - sqlalchemy.engine.Engine - INFO - [cached since 132.9s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:11,804 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:12,820 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:12,821 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:12,822 - sqlalchemy.engine.Engine - INFO - [cached since 133.9s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:12,823 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:13,833 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:13,834 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:13,834 - sqlalchemy.engine.Engine - INFO - [cached since 134.9s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:13,837 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:14,829 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:14,830 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:14,831 - sqlalchemy.engine.Engine - INFO - [cached since 135.9s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:14,831 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:15,844 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:15,845 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:15,846 - sqlalchemy.engine.Engine - INFO - [cached since 136.9s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:15,847 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:16,873 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:16,875 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:16,875 - sqlalchemy.engine.Engine - INFO - [cached since 138s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:16,877 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:17,890 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:17,890 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:17,891 - sqlalchemy.engine.Engine - INFO - [cached since 139s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:17,895 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:18,917 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:18,919 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:18,921 - sqlalchemy.engine.Engine - INFO - [cached since 140s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:18,928 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:19,931 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:19,931 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:19,932 - sqlalchemy.engine.Engine - INFO - [cached since 141s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:19,932 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:20,947 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:20,947 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:20,948 - sqlalchemy.engine.Engine - INFO - [cached since 142s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:20,949 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:21,944 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:21,945 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:21,945 - sqlalchemy.engine.Engine - INFO - [cached since 143s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:21,947 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:22,953 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:22,953 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:22,955 - sqlalchemy.engine.Engine - INFO - [cached since 144s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:22,956 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:23,980 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:23,981 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:23,981 - sqlalchemy.engine.Engine - INFO - [cached since 145.1s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:23,983 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:24,992 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:24,992 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:24,992 - sqlalchemy.engine.Engine - INFO - [cached since 146.1s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:24,993 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:25,975 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:25,976 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:25,979 - sqlalchemy.engine.Engine - INFO - [cached since 147.1s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:25,984 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:26,990 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:26,991 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:26,991 - sqlalchemy.engine.Engine - INFO - [cached since 148.1s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:26,993 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:28,013 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:28,014 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:28,014 - sqlalchemy.engine.Engine - INFO - [cached since 149.1s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:28,016 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:29,025 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:29,027 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:29,027 - sqlalchemy.engine.Engine - INFO - [cached since 150.1s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:29,028 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:30,039 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:30,043 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:30,044 - sqlalchemy.engine.Engine - INFO - [cached since 151.1s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:30,048 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:31,065 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:31,067 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:31,070 - sqlalchemy.engine.Engine - INFO - [cached since 152.2s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:31,073 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:32,079 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:32,080 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:32,080 - sqlalchemy.engine.Engine - INFO - [cached since 153.2s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:32,081 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:33,067 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:33,069 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:33,072 - sqlalchemy.engine.Engine - INFO - [cached since 154.2s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:33,074 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:34,094 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:34,095 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:34,095 - sqlalchemy.engine.Engine - INFO - [cached since 155.2s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:34,096 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:35,111 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:35,112 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:35,112 - sqlalchemy.engine.Engine - INFO - [cached since 156.2s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:35,113 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:36,125 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:36,129 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:36,130 - sqlalchemy.engine.Engine - INFO - [cached since 157.2s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:36,133 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:37,155 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:37,156 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:37,156 - sqlalchemy.engine.Engine - INFO - [cached since 158.2s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:37,157 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:38,168 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:38,171 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:38,172 - sqlalchemy.engine.Engine - INFO - [cached since 159.3s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:38,174 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:39,192 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:39,193 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:39,194 - sqlalchemy.engine.Engine - INFO - [cached since 160.3s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:39,195 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:40,207 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:40,208 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:40,215 - sqlalchemy.engine.Engine - INFO - [cached since 161.3s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:40,218 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:41,232 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:41,232 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:41,232 - sqlalchemy.engine.Engine - INFO - [cached since 162.3s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:41,234 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:42,244 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:42,244 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:42,245 - sqlalchemy.engine.Engine - INFO - [cached since 163.3s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:42,245 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:43,222 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:43,222 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:43,222 - sqlalchemy.engine.Engine - INFO - [cached since 164.3s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:43,223 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:44,241 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:44,242 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:44,243 - sqlalchemy.engine.Engine - INFO - [cached since 165.3s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:44,244 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:45,225 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:45,227 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:45,227 - sqlalchemy.engine.Engine - INFO - [cached since 166.3s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:45,229 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:46,248 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:46,249 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:46,249 - sqlalchemy.engine.Engine - INFO - [cached since 167.3s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:46,250 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:47,262 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:47,267 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:47,269 - sqlalchemy.engine.Engine - INFO - [cached since 168.4s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:47,270 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:48,292 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:48,293 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:48,293 - sqlalchemy.engine.Engine - INFO - [cached since 169.4s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:48,294 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:49,303 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:49,303 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:49,304 - sqlalchemy.engine.Engine - INFO - [cached since 170.4s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:49,304 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:50,313 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:50,317 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:50,319 - sqlalchemy.engine.Engine - INFO - [cached since 171.4s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:50,321 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:51,330 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:51,331 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:51,332 - sqlalchemy.engine.Engine - INFO - [cached since 172.4s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:51,334 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:52,352 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:52,353 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:52,353 - sqlalchemy.engine.Engine - INFO - [cached since 173.4s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:52,355 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:53,365 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:53,366 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:53,366 - sqlalchemy.engine.Engine - INFO - [cached since 174.4s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:53,366 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:53,759 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:53,760 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:44:53,760 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 44, 53, 757799))
2025-04-30 10:44:53,761 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:53,867 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:44:53,868 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:44:53,870 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:44:53,872 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:44:53,874 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:44:53,877 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:44:53,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:44:53,882 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:44:53,883 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:44:53,887 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:44:53,889 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:44:53,890 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:44:53,891 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:44:53,892 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:44:53,895 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:44:53,897 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:44:53,899 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:44:53,902 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:44:53,905 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:44:53,905 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:44:53,907 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:44:53,908 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:44:53,910 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:44:53,921 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:44:54,368 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:54,369 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:54,370 - sqlalchemy.engine.Engine - INFO - [cached since 175.5s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:54,372 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:55,350 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:55,351 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:55,354 - sqlalchemy.engine.Engine - INFO - [cached since 176.4s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:55,355 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:56,376 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:56,376 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:56,376 - sqlalchemy.engine.Engine - INFO - [cached since 177.5s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:56,378 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:57,403 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:44:57,404 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:44:57,404 - sqlalchemy.engine.Engine - INFO - [cached since 178.5s ago] ('19fcc688-489e-47cc-bc2c-7bbedcb4484c',)
2025-04-30 10:44:57,406 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:44:57,828 - app - INFO - 应用程序关闭中...
2025-04-30 10:44:57,828 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 10:44:57,829 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 10:44:57,829 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 10:44:57,829 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 10:44:57,830 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 10:44:57,830 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 10:44:57,831 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 10:44:57,831 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 10:44:57,832 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 10:44:57,832 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 10:44:57,833 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:44:57,833 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:44:57,833 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:44:57,833 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:44:57,834 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:44:57,834 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 10:44:57,834 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:44:57,834 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:44:57,834 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 10:44:57,834 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:44:57,834 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:44:57,835 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 10:44:57,835 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:44:57,835 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:44:57,835 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 10:44:57,835 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 10:44:57,835 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 10:44:57,835 - app - INFO - 增强版任务调度器已停止
2025-04-30 10:44:57,835 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 10:44:57,837 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 10:44:57,837 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 10:44:57,837 - data.session - INFO - 数据库连接已关闭
2025-04-30 10:48:43,237 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 10:48:43,294 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 10:48:43,296 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 10:48:43,965 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 10:48:44,022 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 10:48:44,024 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 10:48:44,091 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 10:48:44,138 - data.session - INFO - 正在初始化数据库...
2025-04-30 10:48:44,174 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 10:48:44,198 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:48:44,198 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:48:44,199 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:48:44,199 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:48:44,200 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:48:44,200 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:48:44,200 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:48:44,201 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 10:48:44,201 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:48:44,202 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 10:48:44,202 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:48:44,203 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 10:48:44,206 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:48:44,209 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 10:48:44,209 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:48:44,210 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 10:48:44,210 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:48:44,211 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 10:48:44,211 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:48:44,212 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 10:48:44,212 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:48:44,214 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 10:48:44,214 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:48:44,215 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 10:48:44,215 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:48:44,216 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 10:48:44,216 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:48:44,217 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 10:48:44,217 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:48:44,218 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:48:44,218 - data.session - INFO - 数据库表初始化完成
2025-04-30 10:48:44,568 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 10:48:44,569 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 10:48:44,569 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 10:48:44,570 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 10:48:44,570 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 10:48:44,571 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 10:48:44,571 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 10:48:44,572 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 10:48:44,572 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 10:48:44,572 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 10:48:44,573 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:48:44,573 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 10:48:44,573 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 10:48:44,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:48:44,574 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:48:44,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:48:44,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:48:44,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:48:44,575 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 10:48:44,576 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 10:48:44,578 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:48:44,578 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:48:44,578 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:48:44,579 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:48:44,579 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:48:44,580 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:48:44,581 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:48:44,581 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:48:44,590 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 10:48:44,591 - sqlalchemy.engine.Engine - INFO - [generated in 0.00085s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 10:48:44,592 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 10:48:44,593 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:48:44,594 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 10:48:44,595 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 10:48:44,595 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 10:48:44,596 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:48:44,598 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 10:48:44,598 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 10:48:44,599 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:48:44,600 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 10:48:44,600 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 10:48:44,600 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 10:48:44,600 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 10:48:44,601 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:48:44,601 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:48:44,602 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:48:44,602 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 48, 44, 595235))
2025-04-30 10:48:44,603 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:48:51,986 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 10:48:51,994 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:48:51,996 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:48:51,997 - sqlalchemy.engine.Engine - INFO - [generated in 0.00066s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:48:51,998 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:48:52,000 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:48:52,000 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:48:52,001 - sqlalchemy.engine.Engine - INFO - [cached since 0.004564s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:48:52,002 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:48:52,003 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 10:48:52,003 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 10:48:52,003 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 10:48:52,004 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:48:52,005 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 10:48:52,005 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (None, datetime.datetime(2025, 4, 30, 10, 48, 52, 5389), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 10:48:52,006 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:48:52,019 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:48:52,020 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:48:52,020 - sqlalchemy.engine.Engine - INFO - [cached since 0.02406s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:48:52,022 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:48:52,022 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] ('b68a9ffd-9048-4c14-a081-0dc99187bff9', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 10, 48, 52, 3362), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.4", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 10, 48, 52, 22624), datetime.datetime(2025, 4, 30, 10, 48, 52, 22624), 0)
2025-04-30 10:48:52,024 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:48:52,031 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:48:52,032 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:48:52,032 - sqlalchemy.engine.Engine - INFO - [generated in 0.00059s] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:48:52,034 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:48:52,037 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 b68a9ffd-9048-4c14-a081-0dc99187bff9 (优先级 1) 添加到队列 0
2025-04-30 10:48:52,040 - services.sync_service - INFO - 正在同步创建任务到天风系统: b68a9ffd-9048-4c14-a081-0dc99187bff9
2025-04-30 10:48:52,041 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"b68a9ffd-9048-4c14-a081-0dc99187bff9","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 10:48:52","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 10:48:52,094 - services.sync_service - INFO - 成功同步任务到系统任务: b68a9ffd-9048-4c14-a081-0dc99187bff9
2025-04-30 10:48:52,094 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: b68a9ffd-9048-4c14-a081-0dc99187bff9, 优先级: 1
2025-04-30 10:48:52,094 - services.execution.task_executor - DEBUG - 任务 b68a9ffd-9048-4c14-a081-0dc99187bff9 设置超时时间: 3600秒
2025-04-30 10:48:52,095 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: b68a9ffd-9048-4c14-a081-0dc99187bff9
2025-04-30 10:48:52,095 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: b68a9ffd-9048-4c14-a081-0dc99187bff9
2025-04-30 10:48:52,096 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1098秒
2025-04-30 10:48:52,103 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:48:52,105 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:48:52,107 - sqlalchemy.engine.Engine - INFO - [cached since 0.07446s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:48:52,112 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:48:52,114 - sqlalchemy.engine.Engine - INFO - [cached since 0.1172s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:48:52,123 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 10:48:52,124 - sqlalchemy.engine.Engine - INFO - [generated in 0.00125s] (datetime.datetime(2025, 4, 30, 10, 48, 52, 118016), datetime.datetime(2025, 4, 30, 10, 48, 52, 123026), 'b68a9ffd-9048-4c14-a081-0dc99187bff9')
2025-04-30 10:48:52,126 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:48:52,136 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:48:52,137 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 10:48:52,138 - sqlalchemy.engine.Engine - INFO - [generated in 0.00056s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 48, 52, 137697), 'b68a9ffd-9048-4c14-a081-0dc99187bff9')
2025-04-30 10:48:52,139 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:48:52,148 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 10:48:52,149 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:48:52,161 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:48:52,162 - sqlalchemy.engine.Engine - INFO - [generated in 0.00183s] ('49abd776-789d-4bb9-ba06-3fa0b74b8164', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'b68a9ffd-9048-4c14-a081-0dc99187bff9', datetime.datetime(2025, 4, 30, 10, 48, 52, 148652), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 10, 48, 52, 161573), datetime.datetime(2025, 4, 30, 10, 48, 52, 161573), 0)
2025-04-30 10:48:52,164 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:48:52,172 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:48:52,173 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 10:48:52,176 - sqlalchemy.engine.Engine - INFO - [generated in 0.00231s] ('49abd776-789d-4bb9-ba06-3fa0b74b8164',)
2025-04-30 10:48:52,178 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 10:48:52,178 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 10:48:52,185 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 10:48:52,186 - sqlalchemy.engine.Engine - INFO - [generated in 0.00162s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 10, 48, 52, 185647), '49abd776-789d-4bb9-ba06-3fa0b74b8164')
2025-04-30 10:48:52,190 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:48:52,198 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 10:48:52,199 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 10:48:52,201 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 10:48:52,204 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:48:52,207 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:48:52,209 - sqlalchemy.engine.Engine - INFO - [cached since 0.04819s ago] ('a2c2480c-bf27-4874-bfd2-8ee8c87676ac', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'b68a9ffd-9048-4c14-a081-0dc99187bff9', datetime.datetime(2025, 4, 30, 10, 48, 52, 202638), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 10, 48, 52, 207653), datetime.datetime(2025, 4, 30, 10, 48, 52, 207653), 0)
2025-04-30 10:48:52,216 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:48:52,222 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: a2c2480c-bf27-4874-bfd2-8ee8c87676ac
2025-04-30 10:48:52,222 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:48:52,224 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 10:48:52,226 - sqlalchemy.engine.Engine - INFO - [cached since 0.05227s ago] ('a2c2480c-bf27-4874-bfd2-8ee8c87676ac',)
2025-04-30 10:48:52,227 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 10:48:52,228 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 10:48:52,230 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 10:48:52,232 - sqlalchemy.engine.Engine - INFO - [cached since 0.04726s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 10, 48, 52, 230006), 'a2c2480c-bf27-4874-bfd2-8ee8c87676ac')
2025-04-30 10:48:52,236 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:48:52,247 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 10:48:52,249 - services.sync_service - INFO - 正在创建选择AMR任务: b68a9ffd-9048-4c14-a081-0dc99187bff9, 站点: TK01
2025-04-30 10:48:52,271 - services.sync_service - INFO - 成功为任务选择AMR: b68a9ffd-9048-4c14-a081-0dc99187bff9, AMR: None
2025-04-30 10:48:52,272 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917410792031014913 的AMR选择结果
2025-04-30 10:48:52,274 - services.sync_service - INFO - 开始等待任务块 1917410792031014913 的AMR选择结果
2025-04-30 10:48:52,275 - services.sync_service - INFO - 正在获取任务块详情: 1917410792031014913
2025-04-30 10:48:52,339 - services.sync_service - INFO - 成功获取任务块详情: 1917410792031014913 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410792031014913', 'taskId': '1917410791276040194', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:48:51', 'updateTime': None}, 'timestamp': 1745981331297}
2025-04-30 10:48:52,340 - services.sync_service - DEBUG - 任务块 1917410792031014913 AMR选择未完成，已尝试 1 次
2025-04-30 10:48:52,830 - services.sync_service - INFO - 正在获取任务块详情: 1917410792031014913
2025-04-30 10:48:52,854 - services.sync_service - INFO - 成功获取任务块详情: 1917410792031014913 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410792031014913', 'taskId': '1917410791276040194', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:48:51', 'updateTime': None}, 'timestamp': 1745981331831}
2025-04-30 10:48:52,855 - services.sync_service - DEBUG - 任务块 1917410792031014913 AMR选择未完成，已尝试 2 次
2025-04-30 10:48:53,099 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:48:53,102 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:48:53,103 - sqlalchemy.engine.Engine - INFO - [generated in 0.00069s] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:48:53,104 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:48:53,348 - services.sync_service - INFO - 正在获取任务块详情: 1917410792031014913
2025-04-30 10:48:53,473 - services.sync_service - INFO - 成功获取任务块详情: 1917410792031014913 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410792031014913', 'taskId': '1917410791276040194', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:48:51', 'updateTime': None}, 'timestamp': 1745981332388}
2025-04-30 10:48:53,474 - services.sync_service - DEBUG - 任务块 1917410792031014913 AMR选择未完成，已尝试 3 次
2025-04-30 10:48:53,978 - services.sync_service - INFO - 正在获取任务块详情: 1917410792031014913
2025-04-30 10:48:54,006 - services.sync_service - INFO - 成功获取任务块详情: 1917410792031014913 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410792031014913', 'taskId': '1917410791276040194', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:48:51', 'updateTime': None}, 'timestamp': 1745981332983}
2025-04-30 10:48:54,006 - services.sync_service - DEBUG - 任务块 1917410792031014913 AMR选择未完成，已尝试 4 次
2025-04-30 10:48:54,103 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:48:54,103 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:48:54,104 - sqlalchemy.engine.Engine - INFO - [cached since 1.002s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:48:54,105 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:48:54,526 - services.sync_service - INFO - 正在获取任务块详情: 1917410792031014913
2025-04-30 10:48:54,581 - services.sync_service - INFO - 成功获取任务块详情: 1917410792031014913 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410792031014913', 'taskId': '1917410791276040194', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:48:51', 'updateTime': '2025-04-30 10:48:53'}, 'timestamp': 1745981333534}
2025-04-30 10:48:54,584 - services.sync_service - INFO - 任务块 1917410792031014913 已选择AMR: 1912328602264645634，共尝试 5 次
2025-04-30 10:48:54,585 - services.execution.handlers.robot_scheduling - INFO - 准备更新任务 b68a9ffd-9048-4c14-a081-0dc99187bff9 的机器人ID: 1912328602264645634
2025-04-30 10:48:54,587 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:48:54,589 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.agv_id 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:48:54,591 - sqlalchemy.engine.Engine - INFO - [generated in 0.00152s] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:48:54,597 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET agv_id=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 10:48:54,601 - sqlalchemy.engine.Engine - INFO - [generated in 0.00437s] ('1912328602264645634', datetime.datetime(2025, 4, 30, 10, 48, 54, 597446), 'b68a9ffd-9048-4c14-a081-0dc99187bff9')
2025-04-30 10:48:54,604 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:48:54,622 - services.execution.handlers.robot_scheduling - INFO - 成功更新任务记录 b68a9ffd-9048-4c14-a081-0dc99187bff9 的agv_id字段: 1912328602264645634
2025-04-30 10:48:54,622 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 10:48:54,623 - services.execution.handlers.robot_scheduling - INFO - 块 b1(ID:1) 有 1 个子块
2025-04-30 10:48:54,623 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: [2]
2025-04-30 10:48:54,623 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 10:48:54,623 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 1 个
2025-04-30 10:48:54,623 - services.execution.handlers.robot_scheduling - INFO - 1. b2(ID:2, 类型:CAgvOperationBp, 关系:direct_child)
2025-04-30 10:48:54,623 - services.execution.handlers.robot_scheduling - INFO - 开始执行选择机器人块 b1 的子块
2025-04-30 10:48:54,623 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-30 10:48:54,623 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 1 个子块
2025-04-30 10:48:54,624 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b2, ID: 2, 类型: CAgvOperationBp
2025-04-30 10:48:54,624 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:48:54,624 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:48:54,624 - sqlalchemy.engine.Engine - INFO - [cached since 2.464s ago] ('9d29d2df-888a-472a-96ae-0c520332e69b', 'b2', '2', '', '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"targetSiteLabel": "PT02", "scriptName": "JackUnload"}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917410792031014913"}', 'CAgvOperationBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'b68a9ffd-9048-4c14-a081-0dc99187bff9', datetime.datetime(2025, 4, 30, 10, 48, 54, 624037), <TaskBlockRecordStatus.RUNNING: 1001>, '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917410792031014913"}', 1, datetime.datetime(2025, 4, 30, 10, 48, 54, 624997), datetime.datetime(2025, 4, 30, 10, 48, 54, 624997), 0)
2025-04-30 10:48:54,625 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:48:54,635 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 9d29d2df-888a-472a-96ae-0c520332e69b
2025-04-30 10:48:54,635 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:48:54,635 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 10:48:54,635 - sqlalchemy.engine.Engine - INFO - [cached since 2.462s ago] ('9d29d2df-888a-472a-96ae-0c520332e69b',)
2025-04-30 10:48:54,636 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-30 10:48:54,637 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-30 10:48:54,638 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 10:48:54,638 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] ('{"selectedAgvId": "1912328602264645634"}', '执行中', "{'agv_for_block_2': '1912328602264645634', 'agv_for_b2': '1912328602264645634', 'agv_task_id_2': '1917410792031014913'}", '{"blocks": {"b2": {"selectedAgvId": "1912328602264645634"}}}', '执行中', datetime.datetime(2025, 4, 30, 10, 48, 54, 638023), '9d29d2df-888a-472a-96ae-0c520332e69b')
2025-04-30 10:48:54,639 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:48:54,646 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-30 10:48:54,646 - services.execution.handlers.robot_scheduling - INFO - 找到块 b2(ID:2) 专用的机器人ID: 1912328602264645634
2025-04-30 10:48:54,646 - services.execution.handlers.robot_scheduling - INFO - 执行机器人通用动作，块 b2(ID:2) 使用机器人: 1912328602264645634, 目标站点: PT02
2025-04-30 10:48:54,646 - services.sync_service - INFO - 正在为任务添加动作: 1917410792031014913, 站点: PT02, 动作: JackUnload
2025-04-30 10:48:54,703 - services.sync_service - INFO - 成功为任务添加动作: 1917410792031014913, 站点: PT02, 动作: JackUnload
2025-04-30 10:48:54,703 - services.sync_service - INFO - 开始等待任务块 1917410802076372994 的动作完成
2025-04-30 10:48:54,704 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:48:54,739 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981333715}
2025-04-30 10:48:54,739 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 1 次
2025-04-30 10:48:55,117 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:48:55,119 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:48:55,119 - sqlalchemy.engine.Engine - INFO - [cached since 2.017s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:48:55,123 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:48:55,228 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:48:55,293 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981334247}
2025-04-30 10:48:55,293 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 2 次
2025-04-30 10:48:55,770 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:48:55,846 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981334767}
2025-04-30 10:48:55,848 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 3 次
2025-04-30 10:48:56,098 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:48:56,100 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:48:56,103 - sqlalchemy.engine.Engine - INFO - [cached since 3.001s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:48:56,104 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:48:56,360 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:48:56,384 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981335359}
2025-04-30 10:48:56,384 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 4 次
2025-04-30 10:48:56,892 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:48:56,925 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981335887}
2025-04-30 10:48:56,926 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 5 次
2025-04-30 10:48:57,124 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:48:57,126 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:48:57,127 - sqlalchemy.engine.Engine - INFO - [cached since 4.025s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:48:57,129 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:48:57,448 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:48:57,473 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981336447}
2025-04-30 10:48:57,474 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 6 次
2025-04-30 10:48:57,978 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:48:58,022 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981336999}
2025-04-30 10:48:58,023 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 7 次
2025-04-30 10:48:58,148 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:48:58,149 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:48:58,150 - sqlalchemy.engine.Engine - INFO - [cached since 5.049s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:48:58,154 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:48:58,535 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:48:58,558 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981337530}
2025-04-30 10:48:58,559 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 8 次
2025-04-30 10:48:59,077 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:48:59,134 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981338099}
2025-04-30 10:48:59,135 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 9 次
2025-04-30 10:48:59,156 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:48:59,159 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:48:59,159 - sqlalchemy.engine.Engine - INFO - [cached since 6.057s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:48:59,161 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:48:59,638 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:48:59,666 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981338643}
2025-04-30 10:48:59,667 - services.sync_service - INFO - 任务块 1917410802076372994 动作未完成(actionStatus为空)，已尝试 10 次，继续等待...
2025-04-30 10:49:00,180 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:00,183 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:00,185 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:00,186 - sqlalchemy.engine.Engine - INFO - [cached since 7.084s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:00,187 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:00,224 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981339202}
2025-04-30 10:49:00,225 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 11 次
2025-04-30 10:49:00,722 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:00,753 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981339728}
2025-04-30 10:49:00,754 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 12 次
2025-04-30 10:49:01,190 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:01,194 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:01,194 - sqlalchemy.engine.Engine - INFO - [cached since 8.092s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:01,198 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:01,267 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:01,373 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981340288}
2025-04-30 10:49:01,374 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 13 次
2025-04-30 10:49:01,873 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:01,898 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981340875}
2025-04-30 10:49:01,901 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 14 次
2025-04-30 10:49:02,216 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:02,216 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:02,217 - sqlalchemy.engine.Engine - INFO - [cached since 9.115s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:02,218 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:02,404 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:02,558 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981341527}
2025-04-30 10:49:02,559 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 15 次
2025-04-30 10:49:03,055 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:03,122 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981342097}
2025-04-30 10:49:03,123 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 16 次
2025-04-30 10:49:03,225 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:03,227 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:03,227 - sqlalchemy.engine.Engine - INFO - [cached since 10.13s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:03,228 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:03,599 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:03,652 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981342623}
2025-04-30 10:49:03,652 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 17 次
2025-04-30 10:49:04,144 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:04,200 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981343175}
2025-04-30 10:49:04,201 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 18 次
2025-04-30 10:49:04,239 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:04,239 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:04,240 - sqlalchemy.engine.Engine - INFO - [cached since 11.14s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:04,241 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:04,705 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:04,728 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981343705}
2025-04-30 10:49:04,731 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 19 次
2025-04-30 10:49:05,238 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:05,240 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:05,242 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:05,242 - sqlalchemy.engine.Engine - INFO - [cached since 12.14s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:05,243 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:05,287 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981344262}
2025-04-30 10:49:05,288 - services.sync_service - INFO - 任务块 1917410802076372994 动作未完成(actionStatus为空)，已尝试 20 次，继续等待...
2025-04-30 10:49:05,783 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:05,803 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981344779}
2025-04-30 10:49:05,804 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 21 次
2025-04-30 10:49:06,221 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:06,222 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:06,226 - sqlalchemy.engine.Engine - INFO - [cached since 13.12s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:06,229 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:06,313 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:06,378 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981345318}
2025-04-30 10:49:06,380 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 22 次
2025-04-30 10:49:06,890 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:06,912 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981345887}
2025-04-30 10:49:06,912 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 23 次
2025-04-30 10:49:07,236 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:07,237 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:07,239 - sqlalchemy.engine.Engine - INFO - [cached since 14.14s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:07,244 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:07,421 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:07,477 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981346432}
2025-04-30 10:49:07,478 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 24 次
2025-04-30 10:49:07,996 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:08,042 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981347018}
2025-04-30 10:49:08,042 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 25 次
2025-04-30 10:49:08,246 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:08,247 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:08,248 - sqlalchemy.engine.Engine - INFO - [cached since 15.15s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:08,250 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:08,538 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:08,566 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981347543}
2025-04-30 10:49:08,567 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 26 次
2025-04-30 10:49:09,085 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:09,111 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981348090}
2025-04-30 10:49:09,112 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 27 次
2025-04-30 10:49:09,258 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:09,258 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:09,258 - sqlalchemy.engine.Engine - INFO - [cached since 16.16s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:09,259 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:09,629 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:09,658 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981348634}
2025-04-30 10:49:09,659 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 28 次
2025-04-30 10:49:10,174 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:10,193 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981349169}
2025-04-30 10:49:10,193 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 29 次
2025-04-30 10:49:10,269 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:10,270 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:10,271 - sqlalchemy.engine.Engine - INFO - [cached since 17.17s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:10,273 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:10,691 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:10,709 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981349685}
2025-04-30 10:49:10,709 - services.sync_service - INFO - 任务块 1917410802076372994 动作未完成(actionStatus为空)，已尝试 30 次，继续等待...
2025-04-30 10:49:11,224 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:11,262 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981350217}
2025-04-30 10:49:11,264 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 31 次
2025-04-30 10:49:11,287 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:11,290 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:11,294 - sqlalchemy.engine.Engine - INFO - [cached since 18.19s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:11,298 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:11,770 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:11,845 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981350821}
2025-04-30 10:49:11,845 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 32 次
2025-04-30 10:49:12,315 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:12,315 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:12,316 - sqlalchemy.engine.Engine - INFO - [cached since 19.21s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:12,318 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:12,361 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:12,500 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981351470}
2025-04-30 10:49:12,501 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 33 次
2025-04-30 10:49:12,986 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:13,044 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981352021}
2025-04-30 10:49:13,045 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 34 次
2025-04-30 10:49:13,327 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:13,331 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:13,332 - sqlalchemy.engine.Engine - INFO - [cached since 20.23s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:13,333 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:13,541 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:13,561 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981352536}
2025-04-30 10:49:13,562 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 35 次
2025-04-30 10:49:14,054 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:14,072 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981353050}
2025-04-30 10:49:14,077 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 36 次
2025-04-30 10:49:14,351 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:14,351 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:14,351 - sqlalchemy.engine.Engine - INFO - [cached since 21.25s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:14,352 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:14,586 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:14,606 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981353582}
2025-04-30 10:49:14,607 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 37 次
2025-04-30 10:49:15,114 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:15,133 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981354109}
2025-04-30 10:49:15,134 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 38 次
2025-04-30 10:49:15,349 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:15,351 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:15,352 - sqlalchemy.engine.Engine - INFO - [cached since 22.25s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:15,357 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:15,628 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:15,701 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981354633}
2025-04-30 10:49:15,702 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 39 次
2025-04-30 10:49:16,206 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:16,234 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981355210}
2025-04-30 10:49:16,234 - services.sync_service - INFO - 任务块 1917410802076372994 动作未完成(actionStatus为空)，已尝试 40 次，继续等待...
2025-04-30 10:49:16,345 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:16,346 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:16,347 - sqlalchemy.engine.Engine - INFO - [cached since 23.25s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:16,349 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:16,736 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:16,753 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981355729}
2025-04-30 10:49:16,754 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 41 次
2025-04-30 10:49:17,281 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:17,350 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981356310}
2025-04-30 10:49:17,351 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 42 次
2025-04-30 10:49:17,351 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:17,352 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:17,354 - sqlalchemy.engine.Engine - INFO - [cached since 24.25s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:17,355 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:17,860 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:17,890 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981356864}
2025-04-30 10:49:17,890 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 43 次
2025-04-30 10:49:18,372 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:18,376 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:18,377 - sqlalchemy.engine.Engine - INFO - [cached since 25.27s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:18,377 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:18,378 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:18,398 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981357376}
2025-04-30 10:49:18,398 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 44 次
2025-04-30 10:49:18,914 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:18,945 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981357907}
2025-04-30 10:49:18,946 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 45 次
2025-04-30 10:49:19,395 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:19,396 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:19,397 - sqlalchemy.engine.Engine - INFO - [cached since 26.29s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:19,398 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:19,456 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:19,482 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981358460}
2025-04-30 10:49:19,483 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 46 次
2025-04-30 10:49:19,985 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:20,002 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981358978}
2025-04-30 10:49:20,004 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 47 次
2025-04-30 10:49:20,420 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:20,422 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:20,425 - sqlalchemy.engine.Engine - INFO - [cached since 27.32s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:20,430 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:20,514 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:20,531 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981359507}
2025-04-30 10:49:20,532 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 48 次
2025-04-30 10:49:21,042 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:21,058 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981360036}
2025-04-30 10:49:21,059 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 49 次
2025-04-30 10:49:21,434 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:21,437 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:21,440 - sqlalchemy.engine.Engine - INFO - [cached since 28.34s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:21,445 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:21,571 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:21,599 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981360564}
2025-04-30 10:49:21,599 - services.sync_service - INFO - 任务块 1917410802076372994 动作未完成(actionStatus为空)，已尝试 50 次，继续等待...
2025-04-30 10:49:22,114 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:22,135 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981361111}
2025-04-30 10:49:22,136 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 51 次
2025-04-30 10:49:22,442 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:22,443 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:22,444 - sqlalchemy.engine.Engine - INFO - [cached since 29.34s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:22,446 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:22,629 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:22,656 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981361634}
2025-04-30 10:49:22,657 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 52 次
2025-04-30 10:49:23,159 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:23,206 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981362180}
2025-04-30 10:49:23,206 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 53 次
2025-04-30 10:49:23,470 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:23,471 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:23,472 - sqlalchemy.engine.Engine - INFO - [cached since 30.37s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:23,473 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:23,703 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:23,721 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981362698}
2025-04-30 10:49:23,723 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 54 次
2025-04-30 10:49:24,232 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:24,273 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981363227}
2025-04-30 10:49:24,274 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 55 次
2025-04-30 10:49:24,481 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:24,487 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:24,491 - sqlalchemy.engine.Engine - INFO - [cached since 31.39s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:24,497 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:24,776 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:24,796 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981363772}
2025-04-30 10:49:24,798 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 56 次
2025-04-30 10:49:25,307 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:25,353 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981364328}
2025-04-30 10:49:25,354 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 57 次
2025-04-30 10:49:25,512 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:25,512 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:25,513 - sqlalchemy.engine.Engine - INFO - [cached since 32.41s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:25,514 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:25,854 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:25,880 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981364858}
2025-04-30 10:49:25,881 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 58 次
2025-04-30 10:49:26,397 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:26,488 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981365464}
2025-04-30 10:49:26,489 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 59 次
2025-04-30 10:49:26,522 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:26,523 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:26,524 - sqlalchemy.engine.Engine - INFO - [cached since 33.42s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:26,525 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:27,008 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:27,052 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981366028}
2025-04-30 10:49:27,053 - services.sync_service - INFO - 任务块 1917410802076372994 动作未完成(actionStatus为空)，已尝试 60 次，继续等待...
2025-04-30 10:49:27,542 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:27,544 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:27,545 - sqlalchemy.engine.Engine - INFO - [cached since 34.44s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:27,546 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:27,572 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:27,598 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981366575}
2025-04-30 10:49:27,599 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 61 次
2025-04-30 10:49:28,117 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:28,134 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981367111}
2025-04-30 10:49:28,135 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 62 次
2025-04-30 10:49:28,519 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:28,520 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:28,521 - sqlalchemy.engine.Engine - INFO - [cached since 35.42s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:28,522 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:28,629 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:28,736 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981367633}
2025-04-30 10:49:28,737 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 63 次
2025-04-30 10:49:29,238 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:29,315 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981368289}
2025-04-30 10:49:29,315 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 64 次
2025-04-30 10:49:29,519 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:29,520 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:29,521 - sqlalchemy.engine.Engine - INFO - [cached since 36.42s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:29,522 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:29,816 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:29,969 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981368854}
2025-04-30 10:49:29,969 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 65 次
2025-04-30 10:49:30,484 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:30,509 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981369477}
2025-04-30 10:49:30,511 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 66 次
2025-04-30 10:49:30,531 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:30,533 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:30,533 - sqlalchemy.engine.Engine - INFO - [cached since 37.43s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:30,538 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:31,027 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:31,048 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981370026}
2025-04-30 10:49:31,049 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 67 次
2025-04-30 10:49:31,545 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:31,546 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:31,546 - sqlalchemy.engine.Engine - INFO - [cached since 38.44s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:31,547 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:31,576 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:31,604 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981370582}
2025-04-30 10:49:31,605 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 68 次
2025-04-30 10:49:32,119 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:32,146 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981371124}
2025-04-30 10:49:32,147 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 69 次
2025-04-30 10:49:32,524 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:32,524 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:32,525 - sqlalchemy.engine.Engine - INFO - [cached since 39.42s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:32,525 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:32,648 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:32,929 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981371745}
2025-04-30 10:49:32,930 - services.sync_service - INFO - 任务块 1917410802076372994 动作未完成(actionStatus为空)，已尝试 70 次，继续等待...
2025-04-30 10:49:33,453 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:33,539 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:33,539 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:33,540 - sqlalchemy.engine.Engine - INFO - [cached since 40.44s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:33,541 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:33,551 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981372528}
2025-04-30 10:49:33,551 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 71 次
2025-04-30 10:49:34,073 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:34,134 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981373109}
2025-04-30 10:49:34,137 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 72 次
2025-04-30 10:49:34,542 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:34,545 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:34,546 - sqlalchemy.engine.Engine - INFO - [cached since 41.44s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:34,549 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:34,636 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:34,662 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981373640}
2025-04-30 10:49:34,663 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 73 次
2025-04-30 10:49:35,181 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:35,198 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981374175}
2025-04-30 10:49:35,205 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 74 次
2025-04-30 10:49:35,572 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:35,573 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:35,573 - sqlalchemy.engine.Engine - INFO - [cached since 42.47s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:35,575 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:35,713 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:35,750 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981374728}
2025-04-30 10:49:35,753 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 75 次
2025-04-30 10:49:36,256 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:36,313 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981375288}
2025-04-30 10:49:36,313 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 76 次
2025-04-30 10:49:36,580 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:36,582 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:36,586 - sqlalchemy.engine.Engine - INFO - [cached since 43.48s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:36,587 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:36,814 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:36,832 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981375809}
2025-04-30 10:49:36,833 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 77 次
2025-04-30 10:49:37,358 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:37,453 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981376404}
2025-04-30 10:49:37,453 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 78 次
2025-04-30 10:49:37,607 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:37,609 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:37,610 - sqlalchemy.engine.Engine - INFO - [cached since 44.51s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:37,612 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:37,966 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:38,347 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981377286}
2025-04-30 10:49:38,349 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 79 次
2025-04-30 10:49:38,618 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:38,626 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:38,627 - sqlalchemy.engine.Engine - INFO - [cached since 45.52s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:38,628 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:38,851 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:38,901 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981377871}
2025-04-30 10:49:38,901 - services.sync_service - INFO - 任务块 1917410802076372994 动作未完成(actionStatus为空)，已尝试 80 次，继续等待...
2025-04-30 10:49:39,419 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:39,474 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981378451}
2025-04-30 10:49:39,474 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 81 次
2025-04-30 10:49:39,642 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:39,642 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:39,642 - sqlalchemy.engine.Engine - INFO - [cached since 46.54s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:39,643 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:39,971 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:39,988 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981378966}
2025-04-30 10:49:39,989 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 82 次
2025-04-30 10:49:40,489 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:40,551 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981379504}
2025-04-30 10:49:40,553 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 83 次
2025-04-30 10:49:40,662 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:40,663 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:40,664 - sqlalchemy.engine.Engine - INFO - [cached since 47.56s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:40,669 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:41,049 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:41,084 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981380061}
2025-04-30 10:49:41,085 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 84 次
2025-04-30 10:49:41,596 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:41,622 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981380600}
2025-04-30 10:49:41,624 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 85 次
2025-04-30 10:49:41,674 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:41,675 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:41,675 - sqlalchemy.engine.Engine - INFO - [cached since 48.57s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:41,677 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:42,125 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:42,154 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981381121}
2025-04-30 10:49:42,156 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 86 次
2025-04-30 10:49:42,670 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:42,675 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:42,678 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:42,678 - sqlalchemy.engine.Engine - INFO - [cached since 49.58s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:42,678 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:42,688 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981381665}
2025-04-30 10:49:42,688 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 87 次
2025-04-30 10:49:43,197 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:43,221 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981382196}
2025-04-30 10:49:43,223 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 88 次
2025-04-30 10:49:43,694 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:43,696 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:43,698 - sqlalchemy.engine.Engine - INFO - [cached since 50.6s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:43,702 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:43,726 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:43,769 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981382745}
2025-04-30 10:49:43,770 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 89 次
2025-04-30 10:49:44,268 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:44,310 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981383288}
2025-04-30 10:49:44,311 - services.sync_service - INFO - 任务块 1917410802076372994 动作未完成(actionStatus为空)，已尝试 90 次，继续等待...
2025-04-30 10:49:44,610 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:49:44,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:49:44,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:49:44,612 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:49:44,612 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:49:44,613 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:49:44,613 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:49:44,614 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:49:44,614 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:49:44,614 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:44,614 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:49:44,615 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 49, 44, 611722))
2025-04-30 10:49:44,615 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:49:44,615 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:49:44,615 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:49:44,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:49:44,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:49:44,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:49:44,616 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:49:44,616 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:49:44,616 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:49:44,616 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:44,618 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:49:44,618 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:49:44,618 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:49:44,618 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:49:44,618 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:49:44,624 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:49:44,723 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:44,724 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:44,724 - sqlalchemy.engine.Engine - INFO - [cached since 51.62s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:44,726 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:44,814 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:44,845 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981383820}
2025-04-30 10:49:44,846 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 91 次
2025-04-30 10:49:45,357 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:45,440 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981384404}
2025-04-30 10:49:45,443 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 92 次
2025-04-30 10:49:45,750 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:45,750 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:45,751 - sqlalchemy.engine.Engine - INFO - [cached since 52.65s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:45,753 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:45,952 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:45,996 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981384973}
2025-04-30 10:49:45,999 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 93 次
2025-04-30 10:49:46,496 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:46,538 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981385515}
2025-04-30 10:49:46,538 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 94 次
2025-04-30 10:49:46,761 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:46,764 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:46,765 - sqlalchemy.engine.Engine - INFO - [cached since 53.66s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:46,769 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:47,039 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:47,055 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981386031}
2025-04-30 10:49:47,055 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 95 次
2025-04-30 10:49:47,566 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:47,632 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981386595}
2025-04-30 10:49:47,634 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 96 次
2025-04-30 10:49:47,784 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:47,785 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:47,785 - sqlalchemy.engine.Engine - INFO - [cached since 54.68s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:47,788 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:48,155 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:48,199 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981387176}
2025-04-30 10:49:48,200 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 97 次
2025-04-30 10:49:48,702 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:48,732 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981387700}
2025-04-30 10:49:48,734 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 98 次
2025-04-30 10:49:48,779 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:48,779 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:48,780 - sqlalchemy.engine.Engine - INFO - [cached since 55.68s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:48,781 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:49,243 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:49,281 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981388237}
2025-04-30 10:49:49,284 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 99 次
2025-04-30 10:49:49,787 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:49,789 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:49,790 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:49,790 - sqlalchemy.engine.Engine - INFO - [cached since 56.69s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:49,791 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:49,814 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981388791}
2025-04-30 10:49:49,815 - services.sync_service - INFO - 任务块 1917410802076372994 动作未完成(actionStatus为空)，已尝试 100 次，继续等待...
2025-04-30 10:49:50,332 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:50,357 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981389333}
2025-04-30 10:49:50,357 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 101 次
2025-04-30 10:49:50,801 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:50,803 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:50,806 - sqlalchemy.engine.Engine - INFO - [cached since 57.7s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:50,811 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:50,847 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:50,903 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981389869}
2025-04-30 10:49:50,903 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 102 次
2025-04-30 10:49:51,422 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:51,467 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981390442}
2025-04-30 10:49:51,468 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 103 次
2025-04-30 10:49:51,843 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:51,847 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:51,851 - sqlalchemy.engine.Engine - INFO - [cached since 58.75s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:51,855 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:51,968 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:52,030 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981391006}
2025-04-30 10:49:52,030 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 104 次
2025-04-30 10:49:52,543 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:52,559 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981391536}
2025-04-30 10:49:52,559 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 105 次
2025-04-30 10:49:52,858 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:52,859 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:52,861 - sqlalchemy.engine.Engine - INFO - [cached since 59.76s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:52,862 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:53,063 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:53,081 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981392058}
2025-04-30 10:49:53,081 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 106 次
2025-04-30 10:49:53,588 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:53,603 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981392581}
2025-04-30 10:49:53,612 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 107 次
2025-04-30 10:49:53,886 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:53,887 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:53,887 - sqlalchemy.engine.Engine - INFO - [cached since 60.79s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:53,889 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:54,103 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:54,145 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981393122}
2025-04-30 10:49:54,148 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 108 次
2025-04-30 10:49:54,668 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:54,686 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981393663}
2025-04-30 10:49:54,687 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 109 次
2025-04-30 10:49:54,901 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:54,903 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:54,908 - sqlalchemy.engine.Engine - INFO - [cached since 61.81s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:54,912 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:55,179 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:55,206 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981394183}
2025-04-30 10:49:55,207 - services.sync_service - INFO - 任务块 1917410802076372994 动作未完成(actionStatus为空)，已尝试 110 次，继续等待...
2025-04-30 10:49:55,726 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:55,743 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981394720}
2025-04-30 10:49:55,744 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 111 次
2025-04-30 10:49:55,928 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:55,929 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:55,929 - sqlalchemy.engine.Engine - INFO - [cached since 62.83s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:55,930 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:56,256 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:56,346 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981395279}
2025-04-30 10:49:56,347 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 112 次
2025-04-30 10:49:56,863 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:56,894 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981395869}
2025-04-30 10:49:56,895 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 113 次
2025-04-30 10:49:56,940 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:56,940 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:56,940 - sqlalchemy.engine.Engine - INFO - [cached since 63.84s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:56,941 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:57,420 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:57,608 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981396508}
2025-04-30 10:49:57,608 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 114 次
2025-04-30 10:49:57,968 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:57,968 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:57,969 - sqlalchemy.engine.Engine - INFO - [cached since 64.87s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:57,970 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:58,121 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:58,226 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981397204}
2025-04-30 10:49:58,226 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 115 次
2025-04-30 10:49:58,743 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:58,768 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981397736}
2025-04-30 10:49:58,768 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 116 次
2025-04-30 10:49:58,992 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:58,993 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:58,996 - sqlalchemy.engine.Engine - INFO - [cached since 65.89s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:58,997 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:49:59,287 - services.sync_service - INFO - 正在获取任务块动作详情: 1917410802076372994
2025-04-30 10:49:59,337 - services.sync_service - INFO - 成功获取任务块动作详情: 1917410802076372994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917410802076372994', 'tenantId': 1000, 'taskId': '1917410791276040194', 'taskBlockId': '1917410792031014913', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:48:54'}, 'timestamp': 1745981398311}
2025-04-30 10:49:59,337 - services.sync_service - DEBUG - 任务块 1917410802076372994 动作未完成，已尝试 117 次
2025-04-30 10:49:59,614 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:49:59,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:49:59,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:49:59,615 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:49:59,616 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:49:59,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:49:59,987 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:49:59,991 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:49:59,991 - sqlalchemy.engine.Engine - INFO - [cached since 66.89s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:49:59,992 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:00,988 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:00,990 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:00,990 - sqlalchemy.engine.Engine - INFO - [cached since 67.89s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:00,991 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:01,999 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:02,001 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:02,005 - sqlalchemy.engine.Engine - INFO - [cached since 68.9s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:02,009 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:03,013 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:03,015 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:03,019 - sqlalchemy.engine.Engine - INFO - [cached since 69.92s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:03,021 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:04,029 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:04,031 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:04,031 - sqlalchemy.engine.Engine - INFO - [cached since 70.93s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:04,032 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:05,040 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:05,041 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:05,041 - sqlalchemy.engine.Engine - INFO - [cached since 71.94s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:05,043 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:06,019 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:06,020 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:06,021 - sqlalchemy.engine.Engine - INFO - [cached since 72.92s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:06,024 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:07,031 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:07,032 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:07,032 - sqlalchemy.engine.Engine - INFO - [cached since 73.93s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:07,034 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:08,044 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:08,047 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:08,051 - sqlalchemy.engine.Engine - INFO - [cached since 74.95s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:08,055 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:09,071 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:09,073 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:09,073 - sqlalchemy.engine.Engine - INFO - [cached since 75.97s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:09,075 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:10,081 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:10,081 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:10,082 - sqlalchemy.engine.Engine - INFO - [cached since 76.98s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:10,083 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:11,105 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:11,106 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:11,106 - sqlalchemy.engine.Engine - INFO - [cached since 78s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:11,107 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:12,118 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:12,119 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:12,120 - sqlalchemy.engine.Engine - INFO - [cached since 79.02s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:12,120 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:13,097 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:13,098 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:13,098 - sqlalchemy.engine.Engine - INFO - [cached since 80s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:13,099 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:14,113 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:14,114 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:14,114 - sqlalchemy.engine.Engine - INFO - [cached since 81.01s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:14,114 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:15,114 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:15,114 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:15,114 - sqlalchemy.engine.Engine - INFO - [cached since 82.01s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:15,115 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:16,126 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:16,130 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:16,131 - sqlalchemy.engine.Engine - INFO - [cached since 83.03s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:16,132 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:17,153 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:17,155 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:17,155 - sqlalchemy.engine.Engine - INFO - [cached since 84.05s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:17,160 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:18,179 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:18,181 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:18,181 - sqlalchemy.engine.Engine - INFO - [cached since 85.08s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:18,185 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:19,198 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:19,199 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:19,199 - sqlalchemy.engine.Engine - INFO - [cached since 86.1s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:19,200 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:20,215 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:20,215 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:20,216 - sqlalchemy.engine.Engine - INFO - [cached since 87.11s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:20,217 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:21,227 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:21,228 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:21,228 - sqlalchemy.engine.Engine - INFO - [cached since 88.13s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:21,229 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:22,239 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:22,247 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:22,247 - sqlalchemy.engine.Engine - INFO - [cached since 89.15s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:22,249 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:23,264 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:23,265 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:23,266 - sqlalchemy.engine.Engine - INFO - [cached since 90.16s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:23,268 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:24,279 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:24,280 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:24,280 - sqlalchemy.engine.Engine - INFO - [cached since 91.18s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:24,281 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:25,301 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:25,305 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:25,305 - sqlalchemy.engine.Engine - INFO - [cached since 92.2s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:25,310 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:26,303 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:26,303 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:26,303 - sqlalchemy.engine.Engine - INFO - [cached since 93.2s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:26,304 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:27,300 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:27,300 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:27,301 - sqlalchemy.engine.Engine - INFO - [cached since 94.2s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:27,302 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:28,311 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:28,312 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:28,312 - sqlalchemy.engine.Engine - INFO - [cached since 95.21s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:28,314 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:29,341 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:29,345 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:29,348 - sqlalchemy.engine.Engine - INFO - [cached since 96.25s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:29,353 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:30,368 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:30,369 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:30,370 - sqlalchemy.engine.Engine - INFO - [cached since 97.27s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:30,371 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:31,351 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:31,354 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:31,355 - sqlalchemy.engine.Engine - INFO - [cached since 98.25s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:31,360 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:32,365 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:32,367 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:32,368 - sqlalchemy.engine.Engine - INFO - [cached since 99.27s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:32,373 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:33,371 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:33,372 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:33,372 - sqlalchemy.engine.Engine - INFO - [cached since 100.3s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:33,373 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:34,374 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:34,375 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:34,376 - sqlalchemy.engine.Engine - INFO - [cached since 101.3s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:34,376 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:35,400 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:35,401 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:35,402 - sqlalchemy.engine.Engine - INFO - [cached since 102.3s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:35,403 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:36,394 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:36,395 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:36,396 - sqlalchemy.engine.Engine - INFO - [cached since 103.3s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:36,399 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:37,416 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:37,417 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:37,418 - sqlalchemy.engine.Engine - INFO - [cached since 104.3s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:37,420 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:38,429 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:38,433 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:38,437 - sqlalchemy.engine.Engine - INFO - [cached since 105.3s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:38,442 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:39,456 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:39,456 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:39,457 - sqlalchemy.engine.Engine - INFO - [cached since 106.4s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:39,459 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:40,464 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:40,465 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:40,466 - sqlalchemy.engine.Engine - INFO - [cached since 107.4s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:40,467 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:41,477 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:41,478 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:41,478 - sqlalchemy.engine.Engine - INFO - [cached since 108.4s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:41,479 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:42,487 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:42,488 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:42,488 - sqlalchemy.engine.Engine - INFO - [cached since 109.4s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:42,489 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:43,499 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:43,504 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:43,509 - sqlalchemy.engine.Engine - INFO - [cached since 110.4s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:43,513 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:44,527 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:44,529 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:44,529 - sqlalchemy.engine.Engine - INFO - [cached since 111.4s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:44,532 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:44,606 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:44,612 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:50:44,612 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 50, 44, 605035))
2025-04-30 10:50:44,619 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:45,540 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:45,543 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:45,543 - sqlalchemy.engine.Engine - INFO - [cached since 112.4s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:45,544 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:46,536 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:46,538 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:46,538 - sqlalchemy.engine.Engine - INFO - [cached since 113.4s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:46,538 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:47,535 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:47,536 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:47,537 - sqlalchemy.engine.Engine - INFO - [cached since 114.4s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:47,538 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:48,542 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:48,547 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:48,551 - sqlalchemy.engine.Engine - INFO - [cached since 115.4s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:48,555 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:49,549 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:49,549 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:49,550 - sqlalchemy.engine.Engine - INFO - [cached since 116.4s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:49,551 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:50,575 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:50,575 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:50,576 - sqlalchemy.engine.Engine - INFO - [cached since 117.5s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:50,577 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:51,583 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:51,585 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:51,587 - sqlalchemy.engine.Engine - INFO - [cached since 118.5s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:51,587 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:52,590 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:52,593 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:52,597 - sqlalchemy.engine.Engine - INFO - [cached since 119.5s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:52,602 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:53,614 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:53,616 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:53,616 - sqlalchemy.engine.Engine - INFO - [cached since 120.5s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:53,621 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:54,626 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:54,629 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:54,630 - sqlalchemy.engine.Engine - INFO - [cached since 121.5s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:54,631 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:55,652 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:55,654 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:55,655 - sqlalchemy.engine.Engine - INFO - [cached since 122.6s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:55,656 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:56,663 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:56,664 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:56,664 - sqlalchemy.engine.Engine - INFO - [cached since 123.6s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:56,665 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:57,655 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:57,659 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:57,664 - sqlalchemy.engine.Engine - INFO - [cached since 124.6s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:57,668 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:58,696 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:58,698 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:58,698 - sqlalchemy.engine.Engine - INFO - [cached since 125.6s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:58,700 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:50:59,614 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:50:59,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:50:59,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:50:59,617 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:50:59,620 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:50:59,620 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:50:59,624 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:50:59,626 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:50:59,628 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:50:59,630 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:50:59,630 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:50:59,631 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:50:59,635 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:50:59,637 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:50:59,637 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:50:59,641 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:50:59,643 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:50:59,645 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:50:59,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:50:59,651 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:50:59,653 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:50:59,653 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:50:59,655 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:50:59,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:50:59,708 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:50:59,709 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:50:59,709 - sqlalchemy.engine.Engine - INFO - [cached since 126.6s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:50:59,709 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:00,698 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:00,702 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:00,703 - sqlalchemy.engine.Engine - INFO - [cached since 127.6s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:00,704 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:01,698 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:01,700 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:01,701 - sqlalchemy.engine.Engine - INFO - [cached since 128.6s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:01,702 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:02,710 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:02,714 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:02,717 - sqlalchemy.engine.Engine - INFO - [cached since 129.6s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:02,722 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:03,740 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:03,743 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:03,743 - sqlalchemy.engine.Engine - INFO - [cached since 130.6s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:03,745 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:04,721 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:04,722 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:04,723 - sqlalchemy.engine.Engine - INFO - [cached since 131.6s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:04,725 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:05,052 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 10:51:05,053 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:05,054 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:51:05,054 - sqlalchemy.engine.Engine - INFO - [cached since 133.1s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:51:05,055 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:05,056 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:05,057 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:51:05,057 - sqlalchemy.engine.Engine - INFO - [cached since 133.1s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:51:05,057 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:05,058 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 10:51:05,058 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 10:51:05,058 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 10:51:05,059 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:05,059 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 10:51:05,059 - sqlalchemy.engine.Engine - INFO - [cached since 133.1s ago] (None, datetime.datetime(2025, 4, 30, 10, 51, 5, 59764), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 10:51:05,059 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:05,066 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:05,066 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:51:05,066 - sqlalchemy.engine.Engine - INFO - [cached since 133.1s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:51:05,067 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:51:05,068 - sqlalchemy.engine.Engine - INFO - [cached since 133s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 10, 51, 5, 58773), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.4", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 10, 51, 5, 67558), datetime.datetime(2025, 4, 30, 10, 51, 5, 67558), 0)
2025-04-30 10:51:05,069 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:05,076 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:05,076 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:05,076 - sqlalchemy.engine.Engine - INFO - [cached since 133s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:05,077 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:05,078 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 98ec7608-b61a-4e9e-b411-3b49fd658524 (优先级 1) 添加到队列 0
2025-04-30 10:51:05,078 - services.sync_service - INFO - 正在同步创建任务到天风系统: 98ec7608-b61a-4e9e-b411-3b49fd658524
2025-04-30 10:51:05,078 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"98ec7608-b61a-4e9e-b411-3b49fd658524","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 10:51:05","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 10:51:05,121 - services.sync_service - INFO - 成功同步任务到系统任务: 98ec7608-b61a-4e9e-b411-3b49fd658524
2025-04-30 10:51:05,122 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 98ec7608-b61a-4e9e-b411-3b49fd658524
2025-04-30 10:51:05,122 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 98ec7608-b61a-4e9e-b411-3b49fd658524
2025-04-30 10:51:05,123 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0715秒
2025-04-30 10:51:05,171 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 98ec7608-b61a-4e9e-b411-3b49fd658524, 优先级: 1
2025-04-30 10:51:05,171 - services.execution.task_executor - DEBUG - 任务 98ec7608-b61a-4e9e-b411-3b49fd658524 设置超时时间: 3600秒
2025-04-30 10:51:05,171 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:05,173 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:05,174 - sqlalchemy.engine.Engine - INFO - [cached since 133.1s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:05,175 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:51:05,176 - sqlalchemy.engine.Engine - INFO - [cached since 133.2s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:51:05,178 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:05,178 - sqlalchemy.engine.Engine - INFO - [cached since 133.1s ago] (datetime.datetime(2025, 4, 30, 10, 51, 5, 177979), datetime.datetime(2025, 4, 30, 10, 51, 5, 178979), '98ec7608-b61a-4e9e-b411-3b49fd658524')
2025-04-30 10:51:05,179 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:05,186 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:05,187 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:05,187 - sqlalchemy.engine.Engine - INFO - [cached since 133.1s ago] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 51, 5, 187977), '98ec7608-b61a-4e9e-b411-3b49fd658524')
2025-04-30 10:51:05,189 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:05,195 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 10:51:05,195 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:05,196 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:51:05,196 - sqlalchemy.engine.Engine - INFO - [cached since 133s ago] ('c7607c7d-4523-4390-96e6-63968955d7d5', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '98ec7608-b61a-4e9e-b411-3b49fd658524', datetime.datetime(2025, 4, 30, 10, 51, 5, 195348), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 10, 51, 5, 196347), datetime.datetime(2025, 4, 30, 10, 51, 5, 196347), 0)
2025-04-30 10:51:05,197 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:05,202 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:05,203 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 10:51:05,203 - sqlalchemy.engine.Engine - INFO - [cached since 133s ago] ('c7607c7d-4523-4390-96e6-63968955d7d5',)
2025-04-30 10:51:05,204 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 10:51:05,204 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 10:51:05,204 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 10:51:05,204 - sqlalchemy.engine.Engine - INFO - [cached since 133s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 10, 51, 5, 204835), 'c7607c7d-4523-4390-96e6-63968955d7d5')
2025-04-30 10:51:05,205 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:05,212 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 10:51:05,212 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 10:51:05,212 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 10:51:05,213 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:05,213 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:51:05,213 - sqlalchemy.engine.Engine - INFO - [cached since 133.1s ago] ('2e312b28-f5c1-45ba-8551-0c998edfcba1', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '98ec7608-b61a-4e9e-b411-3b49fd658524', datetime.datetime(2025, 4, 30, 10, 51, 5, 212821), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 10, 51, 5, 213828), datetime.datetime(2025, 4, 30, 10, 51, 5, 213828), 0)
2025-04-30 10:51:05,214 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:05,220 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 2e312b28-f5c1-45ba-8551-0c998edfcba1
2025-04-30 10:51:05,221 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:05,221 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 10:51:05,221 - sqlalchemy.engine.Engine - INFO - [cached since 133s ago] ('2e312b28-f5c1-45ba-8551-0c998edfcba1',)
2025-04-30 10:51:05,222 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 10:51:05,222 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 10:51:05,222 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 10:51:05,222 - sqlalchemy.engine.Engine - INFO - [cached since 133s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 10, 51, 5, 222860), '2e312b28-f5c1-45ba-8551-0c998edfcba1')
2025-04-30 10:51:05,223 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:05,235 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 10:51:05,235 - services.sync_service - INFO - 正在创建选择AMR任务: 98ec7608-b61a-4e9e-b411-3b49fd658524, 站点: TK01
2025-04-30 10:51:05,279 - services.sync_service - INFO - 成功为任务选择AMR: 98ec7608-b61a-4e9e-b411-3b49fd658524, AMR: None
2025-04-30 10:51:05,280 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917411349814726657 的AMR选择结果
2025-04-30 10:51:05,280 - services.sync_service - INFO - 开始等待任务块 1917411349814726657 的AMR选择结果
2025-04-30 10:51:05,280 - services.sync_service - INFO - 正在获取任务块详情: 1917411349814726657
2025-04-30 10:51:05,357 - services.sync_service - INFO - 成功获取任务块详情: 1917411349814726657 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411349814726657', 'taskId': '1917411349231718402', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:51:04', 'updateTime': None}, 'timestamp': 1745981464291}
2025-04-30 10:51:05,358 - services.sync_service - DEBUG - 任务块 1917411349814726657 AMR选择未完成，已尝试 1 次
2025-04-30 10:51:05,733 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:05,736 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:05,738 - sqlalchemy.engine.Engine - INFO - [cached since 132.6s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:05,739 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:05,871 - services.sync_service - INFO - 正在获取任务块详情: 1917411349814726657
2025-04-30 10:51:05,888 - services.sync_service - INFO - 成功获取任务块详情: 1917411349814726657 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411349814726657', 'taskId': '1917411349231718402', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:51:04', 'updateTime': None}, 'timestamp': 1745981464868}
2025-04-30 10:51:05,888 - services.sync_service - DEBUG - 任务块 1917411349814726657 AMR选择未完成，已尝试 2 次
2025-04-30 10:51:06,166 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:06,169 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:06,169 - sqlalchemy.engine.Engine - INFO - [cached since 133.1s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:06,171 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:06,397 - services.sync_service - INFO - 正在获取任务块详情: 1917411349814726657
2025-04-30 10:51:06,530 - services.sync_service - INFO - 成功获取任务块详情: 1917411349814726657 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411349814726657', 'taskId': '1917411349231718402', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:51:04', 'updateTime': None}, 'timestamp': 1745981465471}
2025-04-30 10:51:06,531 - services.sync_service - DEBUG - 任务块 1917411349814726657 AMR选择未完成，已尝试 3 次
2025-04-30 10:51:06,725 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:06,726 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:06,728 - sqlalchemy.engine.Engine - INFO - [cached since 133.6s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:06,729 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:07,019 - services.sync_service - INFO - 正在获取任务块详情: 1917411349814726657
2025-04-30 10:51:07,191 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:07,193 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:07,196 - sqlalchemy.engine.Engine - INFO - [cached since 134.1s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:07,200 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:07,750 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:07,753 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:07,754 - sqlalchemy.engine.Engine - INFO - [cached since 134.7s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:07,755 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:08,062 - services.sync_service - INFO - 成功获取任务块详情: 1917411349814726657 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411349814726657', 'taskId': '1917411349231718402', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:51:04', 'updateTime': None}, 'timestamp': 1745981467042}
2025-04-30 10:51:08,063 - services.sync_service - DEBUG - 任务块 1917411349814726657 AMR选择未完成，已尝试 4 次
2025-04-30 10:51:08,214 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:08,216 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:08,217 - sqlalchemy.engine.Engine - INFO - [cached since 135.1s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:08,219 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:08,573 - services.sync_service - INFO - 正在获取任务块详情: 1917411349814726657
2025-04-30 10:51:08,622 - services.sync_service - INFO - 成功获取任务块详情: 1917411349814726657 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411349814726657', 'taskId': '1917411349231718402', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:51:04', 'updateTime': None}, 'timestamp': 1745981467600}
2025-04-30 10:51:08,623 - services.sync_service - DEBUG - 任务块 1917411349814726657 AMR选择未完成，已尝试 5 次
2025-04-30 10:51:08,762 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:08,763 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:08,763 - sqlalchemy.engine.Engine - INFO - [cached since 135.7s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:08,765 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:09,119 - services.sync_service - INFO - 正在获取任务块详情: 1917411349814726657
2025-04-30 10:51:09,177 - services.sync_service - INFO - 成功获取任务块详情: 1917411349814726657 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411349814726657', 'taskId': '1917411349231718402', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:51:04', 'updateTime': None}, 'timestamp': 1745981468158}
2025-04-30 10:51:09,178 - services.sync_service - DEBUG - 任务块 1917411349814726657 AMR选择未完成，已尝试 6 次
2025-04-30 10:51:09,242 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:09,245 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:09,246 - sqlalchemy.engine.Engine - INFO - [cached since 136.1s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:09,248 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:09,703 - services.sync_service - INFO - 正在获取任务块详情: 1917411349814726657
2025-04-30 10:51:09,759 - services.sync_service - INFO - 成功获取任务块详情: 1917411349814726657 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411349814726657', 'taskId': '1917411349231718402', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:51:04', 'updateTime': None}, 'timestamp': 1745981468727}
2025-04-30 10:51:09,761 - services.sync_service - DEBUG - 任务块 1917411349814726657 AMR选择未完成，已尝试 7 次
2025-04-30 10:51:09,762 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:09,762 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:09,764 - sqlalchemy.engine.Engine - INFO - [cached since 136.7s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:09,766 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:10,247 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:10,250 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:10,254 - sqlalchemy.engine.Engine - INFO - [cached since 137.2s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:10,257 - services.sync_service - INFO - 正在获取任务块详情: 1917411349814726657
2025-04-30 10:51:10,259 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:10,372 - services.sync_service - INFO - 成功获取任务块详情: 1917411349814726657 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411349814726657', 'taskId': '1917411349231718402', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:51:04', 'updateTime': None}, 'timestamp': 1745981469317}
2025-04-30 10:51:10,373 - services.sync_service - DEBUG - 任务块 1917411349814726657 AMR选择未完成，已尝试 8 次
2025-04-30 10:51:10,790 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:10,791 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:10,791 - sqlalchemy.engine.Engine - INFO - [cached since 137.7s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:10,793 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:10,882 - services.sync_service - INFO - 正在获取任务块详情: 1917411349814726657
2025-04-30 10:51:11,021 - services.sync_service - INFO - 成功获取任务块详情: 1917411349814726657 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411349814726657', 'taskId': '1917411349231718402', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:51:04', 'updateTime': None}, 'timestamp': 1745981469919}
2025-04-30 10:51:11,021 - services.sync_service - DEBUG - 任务块 1917411349814726657 AMR选择未完成，已尝试 9 次
2025-04-30 10:51:11,255 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:11,259 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:11,264 - sqlalchemy.engine.Engine - INFO - [cached since 138.2s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:11,269 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:11,534 - services.sync_service - INFO - 正在获取任务块详情: 1917411349814726657
2025-04-30 10:51:11,597 - services.sync_service - INFO - 成功获取任务块详情: 1917411349814726657 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411349814726657', 'taskId': '1917411349231718402', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:51:04', 'updateTime': None}, 'timestamp': 1745981470533}
2025-04-30 10:51:11,598 - services.sync_service - INFO - 任务块 1917411349814726657 AMR选择未完成(amrId/appointAmrId/appointAmrGroupId均为空)，已尝试 10 次，继续等待...
2025-04-30 10:51:11,800 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:11,802 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:11,802 - sqlalchemy.engine.Engine - INFO - [cached since 138.7s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:11,804 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:12,123 - services.sync_service - INFO - 正在获取任务块详情: 1917411349814726657
2025-04-30 10:51:12,144 - services.sync_service - INFO - 成功获取任务块详情: 1917411349814726657 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411349814726657', 'taskId': '1917411349231718402', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:51:04', 'updateTime': None}, 'timestamp': 1745981471126}
2025-04-30 10:51:12,144 - services.sync_service - DEBUG - 任务块 1917411349814726657 AMR选择未完成，已尝试 11 次
2025-04-30 10:51:12,278 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:12,279 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:12,280 - sqlalchemy.engine.Engine - INFO - [cached since 139.2s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:12,282 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:12,665 - services.sync_service - INFO - 正在获取任务块详情: 1917411349814726657
2025-04-30 10:51:12,753 - services.sync_service - INFO - 成功获取任务块详情: 1917411349814726657 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411349814726657', 'taskId': '1917411349231718402', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:51:04', 'updateTime': None}, 'timestamp': 1745981471702}
2025-04-30 10:51:12,754 - services.sync_service - DEBUG - 任务块 1917411349814726657 AMR选择未完成，已尝试 12 次
2025-04-30 10:51:12,821 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:12,825 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:12,827 - sqlalchemy.engine.Engine - INFO - [cached since 139.7s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:12,828 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:13,257 - services.sync_service - INFO - 正在获取任务块详情: 1917411349814726657
2025-04-30 10:51:13,287 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:13,289 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:13,289 - sqlalchemy.engine.Engine - INFO - [cached since 140.2s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:13,290 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:13,299 - services.sync_service - INFO - 成功获取任务块详情: 1917411349814726657 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411349814726657', 'taskId': '1917411349231718402', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:51:04', 'updateTime': None}, 'timestamp': 1745981472280}
2025-04-30 10:51:13,300 - services.sync_service - DEBUG - 任务块 1917411349814726657 AMR选择未完成，已尝试 13 次
2025-04-30 10:51:13,813 - services.sync_service - INFO - 正在获取任务块详情: 1917411349814726657
2025-04-30 10:51:13,815 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:13,816 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:13,819 - sqlalchemy.engine.Engine - INFO - [cached since 140.7s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:13,823 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:13,941 - services.sync_service - INFO - 成功获取任务块详情: 1917411349814726657 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411349814726657', 'taskId': '1917411349231718402', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:51:04', 'updateTime': None}, 'timestamp': 1745981472903}
2025-04-30 10:51:13,941 - services.sync_service - DEBUG - 任务块 1917411349814726657 AMR选择未完成，已尝试 14 次
2025-04-30 10:51:14,293 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:14,294 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:14,294 - sqlalchemy.engine.Engine - INFO - [cached since 141.2s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:14,295 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:14,462 - services.sync_service - INFO - 正在获取任务块详情: 1917411349814726657
2025-04-30 10:51:14,507 - services.sync_service - INFO - 成功获取任务块详情: 1917411349814726657 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411349814726657', 'taskId': '1917411349231718402', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:51:04', 'updateTime': '2025-04-30 10:51:13'}, 'timestamp': 1745981473490}
2025-04-30 10:51:14,508 - services.sync_service - INFO - 任务块 1917411349814726657 已选择AMR: 1912328602264645634，共尝试 15 次
2025-04-30 10:51:14,510 - services.execution.handlers.robot_scheduling - INFO - 准备更新任务 98ec7608-b61a-4e9e-b411-3b49fd658524 的机器人ID: 1912328602264645634
2025-04-30 10:51:14,511 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:14,512 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.agv_id 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:14,512 - sqlalchemy.engine.Engine - INFO - [cached since 139.9s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:14,515 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET agv_id=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:14,515 - sqlalchemy.engine.Engine - INFO - [cached since 139.9s ago] ('1912328602264645634', datetime.datetime(2025, 4, 30, 10, 51, 14, 515350), '98ec7608-b61a-4e9e-b411-3b49fd658524')
2025-04-30 10:51:14,516 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:14,530 - services.execution.handlers.robot_scheduling - INFO - 成功更新任务记录 98ec7608-b61a-4e9e-b411-3b49fd658524 的agv_id字段: 1912328602264645634
2025-04-30 10:51:14,531 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 10:51:14,531 - services.execution.handlers.robot_scheduling - INFO - 块 b1(ID:1) 有 1 个子块
2025-04-30 10:51:14,532 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: [2]
2025-04-30 10:51:14,533 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 10:51:14,534 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 1 个
2025-04-30 10:51:14,536 - services.execution.handlers.robot_scheduling - INFO - 1. b2(ID:2, 类型:CAgvOperationBp, 关系:direct_child)
2025-04-30 10:51:14,537 - services.execution.handlers.robot_scheduling - INFO - 开始执行选择机器人块 b1 的子块
2025-04-30 10:51:14,539 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-30 10:51:14,540 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 1 个子块
2025-04-30 10:51:14,541 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b2, ID: 2, 类型: CAgvOperationBp
2025-04-30 10:51:14,543 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:14,545 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:51:14,546 - sqlalchemy.engine.Engine - INFO - [cached since 142.4s ago] ('06424be1-7893-4777-990e-fc4c09112131', 'b2', '2', '', '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"targetSiteLabel": "PT02", "scriptName": "JackUnload"}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917411349814726657"}', 'CAgvOperationBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '98ec7608-b61a-4e9e-b411-3b49fd658524', datetime.datetime(2025, 4, 30, 10, 51, 14, 541880), <TaskBlockRecordStatus.RUNNING: 1001>, '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917411349814726657"}', 1, datetime.datetime(2025, 4, 30, 10, 51, 14, 545955), datetime.datetime(2025, 4, 30, 10, 51, 14, 545955), 0)
2025-04-30 10:51:14,553 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:14,563 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 06424be1-7893-4777-990e-fc4c09112131
2025-04-30 10:51:14,564 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:14,567 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 10:51:14,568 - sqlalchemy.engine.Engine - INFO - [cached since 142.4s ago] ('06424be1-7893-4777-990e-fc4c09112131',)
2025-04-30 10:51:14,572 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-30 10:51:14,573 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-30 10:51:14,575 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 10:51:14,575 - sqlalchemy.engine.Engine - INFO - [cached since 139.9s ago] ('{"selectedAgvId": "1912328602264645634"}', '执行中', "{'agv_for_block_2': '1912328602264645634', 'agv_for_b2': '1912328602264645634', 'agv_task_id_2': '1917411349814726657'}", '{"blocks": {"b2": {"selectedAgvId": "1912328602264645634"}}}', '执行中', datetime.datetime(2025, 4, 30, 10, 51, 14, 575873), '06424be1-7893-4777-990e-fc4c09112131')
2025-04-30 10:51:14,579 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:14,589 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-30 10:51:14,591 - services.execution.handlers.robot_scheduling - INFO - 找到块 b2(ID:2) 专用的机器人ID: 1912328602264645634
2025-04-30 10:51:14,593 - services.execution.handlers.robot_scheduling - INFO - 执行机器人通用动作，块 b2(ID:2) 使用机器人: 1912328602264645634, 目标站点: PT02
2025-04-30 10:51:14,594 - services.sync_service - INFO - 正在为任务添加动作: 1917411349814726657, 站点: PT02, 动作: JackUnload
2025-04-30 10:51:14,648 - services.sync_service - INFO - 成功为任务添加动作: 1917411349814726657, 站点: PT02, 动作: JackUnload
2025-04-30 10:51:14,650 - services.sync_service - INFO - 开始等待任务块 1917411389169881090 的动作完成
2025-04-30 10:51:14,652 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:14,680 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981473662}
2025-04-30 10:51:14,681 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 1 次
2025-04-30 10:51:14,840 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:14,841 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:14,842 - sqlalchemy.engine.Engine - INFO - [cached since 141.7s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:14,844 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:15,196 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:15,265 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981474211}
2025-04-30 10:51:15,266 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 2 次
2025-04-30 10:51:15,290 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:15,292 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:15,292 - sqlalchemy.engine.Engine - INFO - [cached since 142.2s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:15,293 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:15,757 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:15,801 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981474783}
2025-04-30 10:51:15,804 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 3 次
2025-04-30 10:51:15,869 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:15,870 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:15,872 - sqlalchemy.engine.Engine - INFO - [cached since 142.8s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:15,874 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:16,293 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:16,294 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:16,294 - sqlalchemy.engine.Engine - INFO - [cached since 143.2s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:16,296 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:16,322 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:16,465 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981475357}
2025-04-30 10:51:16,467 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 4 次
2025-04-30 10:51:16,881 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:16,883 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:16,884 - sqlalchemy.engine.Engine - INFO - [cached since 143.8s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:16,889 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:16,943 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:17,041 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981476000}
2025-04-30 10:51:17,042 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 5 次
2025-04-30 10:51:17,285 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:17,286 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:17,286 - sqlalchemy.engine.Engine - INFO - [cached since 144.2s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:17,288 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:17,535 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:17,584 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981476559}
2025-04-30 10:51:17,585 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 6 次
2025-04-30 10:51:17,893 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:17,895 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:17,895 - sqlalchemy.engine.Engine - INFO - [cached since 144.8s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:17,896 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:18,094 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:18,149 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981477120}
2025-04-30 10:51:18,150 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 7 次
2025-04-30 10:51:18,313 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:18,314 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:18,315 - sqlalchemy.engine.Engine - INFO - [cached since 145.2s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:18,317 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:18,670 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:18,724 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981477685}
2025-04-30 10:51:18,724 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 8 次
2025-04-30 10:51:18,920 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:18,921 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:18,924 - sqlalchemy.engine.Engine - INFO - [cached since 145.8s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:18,926 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:19,227 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:19,337 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981478268}
2025-04-30 10:51:19,338 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 9 次
2025-04-30 10:51:19,339 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:19,340 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:19,341 - sqlalchemy.engine.Engine - INFO - [cached since 146.2s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:19,343 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:19,834 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:19,880 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981478861}
2025-04-30 10:51:19,881 - services.sync_service - INFO - 任务块 1917411389169881090 动作未完成(actionStatus为空)，已尝试 10 次，继续等待...
2025-04-30 10:51:19,944 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:19,950 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:19,951 - sqlalchemy.engine.Engine - INFO - [cached since 146.8s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:19,952 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:20,365 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:20,367 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:20,367 - sqlalchemy.engine.Engine - INFO - [cached since 147.3s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:20,369 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:20,395 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:20,491 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981479450}
2025-04-30 10:51:20,493 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 11 次
2025-04-30 10:51:20,962 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:20,963 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:20,964 - sqlalchemy.engine.Engine - INFO - [cached since 147.9s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:20,965 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:21,007 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:21,145 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981480031}
2025-04-30 10:51:21,146 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 12 次
2025-04-30 10:51:21,367 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:21,370 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:21,374 - sqlalchemy.engine.Engine - INFO - [cached since 148.3s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:21,378 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:21,659 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:21,740 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981480706}
2025-04-30 10:51:21,741 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 13 次
2025-04-30 10:51:21,971 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:21,972 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:21,972 - sqlalchemy.engine.Engine - INFO - [cached since 148.9s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:21,974 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:22,251 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:22,294 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981481275}
2025-04-30 10:51:22,294 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 14 次
2025-04-30 10:51:22,404 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:22,406 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:22,408 - sqlalchemy.engine.Engine - INFO - [cached since 149.3s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:22,409 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:22,808 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:22,867 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981481831}
2025-04-30 10:51:22,869 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 15 次
2025-04-30 10:51:22,986 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:22,987 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:22,987 - sqlalchemy.engine.Engine - INFO - [cached since 149.9s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:22,990 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:23,371 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:23,414 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:23,415 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:23,415 - sqlalchemy.engine.Engine - INFO - [cached since 150.3s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:23,416 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:23,471 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981482408}
2025-04-30 10:51:23,472 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 16 次
2025-04-30 10:51:23,993 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:23,995 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:23,997 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:23,997 - sqlalchemy.engine.Engine - INFO - [cached since 150.9s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:23,998 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:24,089 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981483024}
2025-04-30 10:51:24,090 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 17 次
2025-04-30 10:51:24,414 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:24,415 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:24,416 - sqlalchemy.engine.Engine - INFO - [cached since 151.3s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:24,419 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:24,598 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:24,736 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981483640}
2025-04-30 10:51:24,737 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 18 次
2025-04-30 10:51:24,989 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:24,991 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:24,994 - sqlalchemy.engine.Engine - INFO - [cached since 151.9s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:24,998 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:25,240 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:25,310 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981484254}
2025-04-30 10:51:25,312 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 19 次
2025-04-30 10:51:25,428 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:25,429 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:25,434 - sqlalchemy.engine.Engine - INFO - [cached since 152.3s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:25,439 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:25,815 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:25,847 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981484828}
2025-04-30 10:51:25,848 - services.sync_service - INFO - 任务块 1917411389169881090 动作未完成(actionStatus为空)，已尝试 20 次，继续等待...
2025-04-30 10:51:26,002 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:26,004 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:26,005 - sqlalchemy.engine.Engine - INFO - [cached since 152.9s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:26,006 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:26,373 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:26,395 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981485377}
2025-04-30 10:51:26,399 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 21 次
2025-04-30 10:51:26,453 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:26,453 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:26,454 - sqlalchemy.engine.Engine - INFO - [cached since 153.4s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:26,454 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:26,907 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:26,949 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981485918}
2025-04-30 10:51:26,950 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 22 次
2025-04-30 10:51:27,032 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:27,033 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:27,035 - sqlalchemy.engine.Engine - INFO - [cached since 153.9s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:27,037 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:27,440 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:27,442 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:27,443 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:27,444 - sqlalchemy.engine.Engine - INFO - [cached since 154.3s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:27,445 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:27,624 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981486533}
2025-04-30 10:51:27,625 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 23 次
2025-04-30 10:51:28,062 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:28,064 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:28,065 - sqlalchemy.engine.Engine - INFO - [cached since 155s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:28,069 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:28,123 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:28,171 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981487153}
2025-04-30 10:51:28,173 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 24 次
2025-04-30 10:51:28,451 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:28,452 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:28,452 - sqlalchemy.engine.Engine - INFO - [cached since 155.4s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:28,454 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:28,682 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:28,758 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981487712}
2025-04-30 10:51:28,758 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 25 次
2025-04-30 10:51:29,085 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:29,089 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:29,092 - sqlalchemy.engine.Engine - INFO - [cached since 156s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:29,097 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:29,269 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:29,326 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981488309}
2025-04-30 10:51:29,327 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 26 次
2025-04-30 10:51:29,485 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:29,485 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:29,486 - sqlalchemy.engine.Engine - INFO - [cached since 156.4s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:29,488 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:29,838 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:29,858 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981488840}
2025-04-30 10:51:29,859 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 27 次
2025-04-30 10:51:30,117 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:30,118 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:30,118 - sqlalchemy.engine.Engine - INFO - [cached since 157s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:30,121 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:30,366 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:30,499 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981489464}
2025-04-30 10:51:30,501 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 28 次
2025-04-30 10:51:30,501 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:30,502 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:30,504 - sqlalchemy.engine.Engine - INFO - [cached since 157.4s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:30,506 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:31,002 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:31,069 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981490043}
2025-04-30 10:51:31,069 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 29 次
2025-04-30 10:51:31,128 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:31,128 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:31,128 - sqlalchemy.engine.Engine - INFO - [cached since 158s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:31,129 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:31,516 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:31,517 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:31,518 - sqlalchemy.engine.Engine - INFO - [cached since 158.4s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:31,519 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:31,577 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:31,613 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981490586}
2025-04-30 10:51:31,613 - services.sync_service - INFO - 任务块 1917411389169881090 动作未完成(actionStatus为空)，已尝试 30 次，继续等待...
2025-04-30 10:51:32,107 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:32,140 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:32,142 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:32,145 - sqlalchemy.engine.Engine - INFO - [cached since 159s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:32,150 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:32,177 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981491135}
2025-04-30 10:51:32,177 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 31 次
2025-04-30 10:51:32,525 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:32,526 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:32,526 - sqlalchemy.engine.Engine - INFO - [cached since 159.4s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:32,527 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:32,697 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:32,776 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981491739}
2025-04-30 10:51:32,776 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 32 次
2025-04-30 10:51:33,162 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:33,163 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:33,164 - sqlalchemy.engine.Engine - INFO - [cached since 160.1s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:33,167 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:33,287 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:33,444 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981492362}
2025-04-30 10:51:33,453 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 33 次
2025-04-30 10:51:33,521 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:33,522 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:33,523 - sqlalchemy.engine.Engine - INFO - [cached since 160.4s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:33,525 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:33,941 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:34,016 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981492951}
2025-04-30 10:51:34,019 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 34 次
2025-04-30 10:51:34,159 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:34,160 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:34,161 - sqlalchemy.engine.Engine - INFO - [cached since 161.1s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:34,162 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:34,534 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:34,537 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:34,538 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:34,538 - sqlalchemy.engine.Engine - INFO - [cached since 161.4s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:34,540 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:34,966 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981493933}
2025-04-30 10:51:34,966 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 35 次
2025-04-30 10:51:35,154 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:35,156 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:35,161 - sqlalchemy.engine.Engine - INFO - [cached since 162.1s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:35,166 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:35,477 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:35,524 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:35,526 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:35,530 - sqlalchemy.engine.Engine - INFO - [cached since 162.4s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:35,534 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:35,549 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981494523}
2025-04-30 10:51:35,550 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 36 次
2025-04-30 10:51:36,069 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:36,114 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981495096}
2025-04-30 10:51:36,115 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 37 次
2025-04-30 10:51:36,163 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:36,164 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:36,164 - sqlalchemy.engine.Engine - INFO - [cached since 163.1s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:36,165 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:36,538 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:36,539 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:36,540 - sqlalchemy.engine.Engine - INFO - [cached since 163.4s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:36,541 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:36,632 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:36,681 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981495664}
2025-04-30 10:51:36,683 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 38 次
2025-04-30 10:51:37,161 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:37,162 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:37,166 - sqlalchemy.engine.Engine - INFO - [cached since 164.1s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:37,169 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:37,190 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:37,314 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981496248}
2025-04-30 10:51:37,317 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 39 次
2025-04-30 10:51:37,549 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:37,553 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:37,556 - sqlalchemy.engine.Engine - INFO - [cached since 164.5s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:37,558 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:37,842 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:37,904 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981496868}
2025-04-30 10:51:37,906 - services.sync_service - INFO - 任务块 1917411389169881090 动作未完成(actionStatus为空)，已尝试 40 次，继续等待...
2025-04-30 10:51:38,185 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:38,186 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:38,188 - sqlalchemy.engine.Engine - INFO - [cached since 165.1s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:38,189 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:38,420 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:38,481 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981497463}
2025-04-30 10:51:38,484 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 41 次
2025-04-30 10:51:38,576 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:38,582 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:38,583 - sqlalchemy.engine.Engine - INFO - [cached since 165.5s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:38,584 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:38,994 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:39,200 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:39,202 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:39,202 - sqlalchemy.engine.Engine - INFO - [cached since 166.1s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:39,205 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:39,295 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981498107}
2025-04-30 10:51:39,296 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 42 次
2025-04-30 10:51:39,603 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:39,607 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:39,608 - sqlalchemy.engine.Engine - INFO - [cached since 166.5s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:39,610 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:39,789 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:39,891 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981498864}
2025-04-30 10:51:39,892 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 43 次
2025-04-30 10:51:40,210 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:40,213 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:40,216 - sqlalchemy.engine.Engine - INFO - [cached since 167.1s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:40,218 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:40,410 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:40,500 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981499483}
2025-04-30 10:51:40,500 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 44 次
2025-04-30 10:51:40,613 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:40,615 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:40,616 - sqlalchemy.engine.Engine - INFO - [cached since 167.5s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:40,618 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:41,001 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:41,037 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981500019}
2025-04-30 10:51:41,038 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 45 次
2025-04-30 10:51:41,221 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:41,225 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:41,228 - sqlalchemy.engine.Engine - INFO - [cached since 168.1s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:41,233 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:41,530 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:41,546 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981500529}
2025-04-30 10:51:41,547 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 46 次
2025-04-30 10:51:41,626 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:41,630 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:41,632 - sqlalchemy.engine.Engine - INFO - [cached since 168.5s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:41,636 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:42,047 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:42,103 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981501080}
2025-04-30 10:51:42,104 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 47 次
2025-04-30 10:51:42,266 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:42,267 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:42,268 - sqlalchemy.engine.Engine - INFO - [cached since 169.2s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:42,271 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:42,623 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:42,630 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:42,633 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:42,637 - sqlalchemy.engine.Engine - INFO - [cached since 169.5s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:42,639 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:42,643 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981501625}
2025-04-30 10:51:42,644 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 48 次
2025-04-30 10:51:43,150 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:43,195 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981502180}
2025-04-30 10:51:43,196 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 49 次
2025-04-30 10:51:43,275 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:43,277 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:43,277 - sqlalchemy.engine.Engine - INFO - [cached since 170.2s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:43,278 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:43,667 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:43,668 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:43,668 - sqlalchemy.engine.Engine - INFO - [cached since 170.6s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:43,669 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:43,712 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:43,756 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981502740}
2025-04-30 10:51:43,756 - services.sync_service - INFO - 任务块 1917411389169881090 动作未完成(actionStatus为空)，已尝试 50 次，继续等待...
2025-04-30 10:51:44,255 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:44,278 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:44,279 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:44,279 - sqlalchemy.engine.Engine - INFO - [cached since 171.2s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:44,281 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:44,304 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981503286}
2025-04-30 10:51:44,305 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 51 次
2025-04-30 10:51:44,598 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:44,601 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:51:44,602 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 51, 44, 597138))
2025-04-30 10:51:44,603 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:44,660 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:44,663 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:44,663 - sqlalchemy.engine.Engine - INFO - [cached since 171.6s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:44,664 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:44,828 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:44,875 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981503857}
2025-04-30 10:51:44,877 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 52 次
2025-04-30 10:51:45,299 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:45,302 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:45,305 - sqlalchemy.engine.Engine - INFO - [cached since 172.2s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:45,310 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:45,409 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:45,442 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981504425}
2025-04-30 10:51:45,443 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 53 次
2025-04-30 10:51:45,658 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:45,661 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:45,661 - sqlalchemy.engine.Engine - INFO - [cached since 172.6s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:45,664 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:45,966 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:45,997 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981504979}
2025-04-30 10:51:45,998 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 54 次
2025-04-30 10:51:46,324 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:46,328 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:46,332 - sqlalchemy.engine.Engine - INFO - [cached since 173.2s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:46,337 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:46,495 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:46,521 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981505507}
2025-04-30 10:51:46,522 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 55 次
2025-04-30 10:51:46,667 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:46,670 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:46,673 - sqlalchemy.engine.Engine - INFO - [cached since 173.6s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:46,678 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:47,042 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:47,060 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981506044}
2025-04-30 10:51:47,063 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 56 次
2025-04-30 10:51:47,353 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:47,354 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:47,355 - sqlalchemy.engine.Engine - INFO - [cached since 174.3s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:47,357 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:47,569 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:47,590 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981506573}
2025-04-30 10:51:47,591 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 57 次
2025-04-30 10:51:47,681 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:47,681 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:47,683 - sqlalchemy.engine.Engine - INFO - [cached since 174.6s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:47,684 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:48,084 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:48,136 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981507112}
2025-04-30 10:51:48,137 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 58 次
2025-04-30 10:51:48,364 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:48,366 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:48,366 - sqlalchemy.engine.Engine - INFO - [cached since 175.3s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:48,369 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:48,628 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:48,676 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:48,677 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:48,679 - sqlalchemy.engine.Engine - INFO - [cached since 175.6s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:48,680 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:48,717 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981507702}
2025-04-30 10:51:48,718 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 59 次
2025-04-30 10:51:49,209 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:49,224 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981508209}
2025-04-30 10:51:49,224 - services.sync_service - INFO - 任务块 1917411389169881090 动作未完成(actionStatus为空)，已尝试 60 次，继续等待...
2025-04-30 10:51:49,364 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:49,366 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:49,367 - sqlalchemy.engine.Engine - INFO - [cached since 176.3s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:49,369 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:49,678 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:49,682 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:49,685 - sqlalchemy.engine.Engine - INFO - [cached since 176.6s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:49,690 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:49,740 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:49,755 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981508739}
2025-04-30 10:51:49,756 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 61 次
2025-04-30 10:51:50,268 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:50,341 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981509326}
2025-04-30 10:51:50,342 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 62 次
2025-04-30 10:51:50,376 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:50,379 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:50,379 - sqlalchemy.engine.Engine - INFO - [cached since 177.3s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:50,381 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:50,704 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:50,705 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:50,705 - sqlalchemy.engine.Engine - INFO - [cached since 177.6s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:50,709 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:50,842 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:50,930 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981509868}
2025-04-30 10:51:50,932 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 63 次
2025-04-30 10:51:51,402 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:51,403 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:51,403 - sqlalchemy.engine.Engine - INFO - [cached since 178.3s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:51,405 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:51,432 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:51,478 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981510460}
2025-04-30 10:51:51,478 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 64 次
2025-04-30 10:51:51,714 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:51,714 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:51,714 - sqlalchemy.engine.Engine - INFO - [cached since 178.6s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:51,715 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:51,978 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:51,998 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981510982}
2025-04-30 10:51:52,000 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 65 次
2025-04-30 10:51:52,429 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:52,430 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:52,430 - sqlalchemy.engine.Engine - INFO - [cached since 179.3s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:52,432 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:52,507 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:52,547 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981511533}
2025-04-30 10:51:52,548 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 66 次
2025-04-30 10:51:52,725 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:52,726 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:52,728 - sqlalchemy.engine.Engine - INFO - [cached since 179.6s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:52,729 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:53,052 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:53,071 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981512054}
2025-04-30 10:51:53,071 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 67 次
2025-04-30 10:51:53,431 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:53,434 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:53,438 - sqlalchemy.engine.Engine - INFO - [cached since 180.3s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:53,443 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:53,585 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:53,602 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981512587}
2025-04-30 10:51:53,603 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 68 次
2025-04-30 10:51:53,741 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:53,744 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:53,748 - sqlalchemy.engine.Engine - INFO - [cached since 180.6s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:53,753 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:54,114 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:54,144 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981513127}
2025-04-30 10:51:54,146 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 69 次
2025-04-30 10:51:54,458 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:54,459 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:54,459 - sqlalchemy.engine.Engine - INFO - [cached since 181.4s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:54,460 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:54,660 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:54,680 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981513662}
2025-04-30 10:51:54,682 - services.sync_service - INFO - 任务块 1917411389169881090 动作未完成(actionStatus为空)，已尝试 70 次，继续等待...
2025-04-30 10:51:54,771 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:54,772 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:54,773 - sqlalchemy.engine.Engine - INFO - [cached since 181.7s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:54,774 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:55,187 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:55,213 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981514197}
2025-04-30 10:51:55,214 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 71 次
2025-04-30 10:51:55,485 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:55,485 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:55,485 - sqlalchemy.engine.Engine - INFO - [cached since 182.4s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:55,487 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:55,720 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:55,743 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981514724}
2025-04-30 10:51:55,743 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 72 次
2025-04-30 10:51:55,782 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:55,783 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:55,783 - sqlalchemy.engine.Engine - INFO - [cached since 182.7s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:55,785 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:56,262 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:56,282 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981515266}
2025-04-30 10:51:56,282 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 73 次
2025-04-30 10:51:56,480 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:56,481 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:56,482 - sqlalchemy.engine.Engine - INFO - [cached since 183.4s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:56,483 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:56,773 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:56,775 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:56,780 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:56,784 - sqlalchemy.engine.Engine - INFO - [cached since 183.7s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:56,789 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:56,799 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981515785}
2025-04-30 10:51:56,801 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 74 次
2025-04-30 10:51:57,306 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:57,381 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981516335}
2025-04-30 10:51:57,382 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 75 次
2025-04-30 10:51:57,493 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:57,494 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:57,495 - sqlalchemy.engine.Engine - INFO - [cached since 184.4s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:57,496 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:57,771 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:57,772 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:57,774 - sqlalchemy.engine.Engine - INFO - [cached since 184.7s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:57,775 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:57,892 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:57,933 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981516919}
2025-04-30 10:51:57,934 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 76 次
2025-04-30 10:51:58,439 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:58,474 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:58,478 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:58,478 - sqlalchemy.engine.Engine - INFO - [cached since 185.4s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:58,479 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:58,487 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981517473}
2025-04-30 10:51:58,488 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 77 次
2025-04-30 10:51:58,770 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:58,770 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:58,770 - sqlalchemy.engine.Engine - INFO - [cached since 185.7s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:58,772 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:58,988 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:59,012 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981517994}
2025-04-30 10:51:59,013 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 78 次
2025-04-30 10:51:59,473 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:59,474 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:59,477 - sqlalchemy.engine.Engine - INFO - [cached since 186.4s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:51:59,481 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:51:59,518 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:51:59,547 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981518531}
2025-04-30 10:51:59,548 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 79 次
2025-04-30 10:51:59,658 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:51:59,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:51:59,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:51:59,660 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:51:59,661 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:51:59,661 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:51:59,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:51:59,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:51:59,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:51:59,663 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:51:59,664 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:51:59,664 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:51:59,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:51:59,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:51:59,665 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:51:59,666 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:51:59,666 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:51:59,666 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:51:59,666 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:51:59,666 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:51:59,666 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:51:59,666 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:51:59,666 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:51:59,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:51:59,798 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:51:59,801 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:51:59,803 - sqlalchemy.engine.Engine - INFO - [cached since 186.7s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:51:59,808 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:00,049 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:00,149 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981519092}
2025-04-30 10:52:00,151 - services.sync_service - INFO - 任务块 1917411389169881090 动作未完成(actionStatus为空)，已尝试 80 次，继续等待...
2025-04-30 10:52:00,482 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:00,483 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:00,484 - sqlalchemy.engine.Engine - INFO - [cached since 187.4s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:00,485 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:00,670 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:00,791 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981519700}
2025-04-30 10:52:00,793 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 81 次
2025-04-30 10:52:00,840 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:00,841 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:00,841 - sqlalchemy.engine.Engine - INFO - [cached since 187.7s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:00,842 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:01,277 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:01,405 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981520320}
2025-04-30 10:52:01,406 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 82 次
2025-04-30 10:52:01,495 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:01,510 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:01,511 - sqlalchemy.engine.Engine - INFO - [cached since 188.4s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:01,527 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:01,824 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:01,825 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:01,827 - sqlalchemy.engine.Engine - INFO - [cached since 188.7s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:01,829 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:01,901 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:01,921 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981520906}
2025-04-30 10:52:01,921 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 83 次
2025-04-30 10:52:02,433 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:02,487 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981521441}
2025-04-30 10:52:02,488 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 84 次
2025-04-30 10:52:02,525 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:02,526 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:02,527 - sqlalchemy.engine.Engine - INFO - [cached since 189.4s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:02,528 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:02,825 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:02,826 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:02,826 - sqlalchemy.engine.Engine - INFO - [cached since 189.7s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:02,828 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:02,996 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:03,040 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981522024}
2025-04-30 10:52:03,041 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 85 次
2025-04-30 10:52:03,539 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:03,542 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:03,545 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:03,549 - sqlalchemy.engine.Engine - INFO - [cached since 190.4s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:03,552 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:03,564 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981522549}
2025-04-30 10:52:03,565 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 86 次
2025-04-30 10:52:03,834 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:03,835 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:03,836 - sqlalchemy.engine.Engine - INFO - [cached since 190.7s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:03,840 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:04,079 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:04,161 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981523131}
2025-04-30 10:52:04,161 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 87 次
2025-04-30 10:52:04,577 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:04,578 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:04,579 - sqlalchemy.engine.Engine - INFO - [cached since 191.5s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:04,581 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:04,671 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:04,728 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981523700}
2025-04-30 10:52:04,728 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 88 次
2025-04-30 10:52:04,828 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:04,830 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:04,830 - sqlalchemy.engine.Engine - INFO - [cached since 191.7s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:04,833 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:05,245 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:05,290 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981524272}
2025-04-30 10:52:05,291 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 89 次
2025-04-30 10:52:05,573 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:05,574 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:05,574 - sqlalchemy.engine.Engine - INFO - [cached since 192.5s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:05,575 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:05,791 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:05,825 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:05,827 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:05,828 - sqlalchemy.engine.Engine - INFO - [cached since 192.7s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:05,829 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:05,866 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981524821}
2025-04-30 10:52:05,866 - services.sync_service - INFO - 任务块 1917411389169881090 动作未完成(actionStatus为空)，已尝试 90 次，继续等待...
2025-04-30 10:52:06,371 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:06,485 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981525435}
2025-04-30 10:52:06,486 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 91 次
2025-04-30 10:52:06,590 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:06,590 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:06,591 - sqlalchemy.engine.Engine - INFO - [cached since 193.5s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:06,592 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:06,854 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:06,855 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:06,856 - sqlalchemy.engine.Engine - INFO - [cached since 193.8s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:06,857 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:06,992 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:07,281 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981526238}
2025-04-30 10:52:07,282 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 92 次
2025-04-30 10:52:07,597 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:07,598 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:07,599 - sqlalchemy.engine.Engine - INFO - [cached since 194.5s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:07,601 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:07,781 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:07,800 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981526785}
2025-04-30 10:52:07,800 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 93 次
2025-04-30 10:52:07,859 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:07,860 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:07,863 - sqlalchemy.engine.Engine - INFO - [cached since 194.8s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:07,864 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:08,312 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:08,453 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981527394}
2025-04-30 10:52:08,453 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 94 次
2025-04-30 10:52:08,621 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:08,622 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:08,622 - sqlalchemy.engine.Engine - INFO - [cached since 195.5s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:08,623 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:08,872 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:08,873 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:08,874 - sqlalchemy.engine.Engine - INFO - [cached since 195.8s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:08,875 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:08,965 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:08,980 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981527966}
2025-04-30 10:52:08,980 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 95 次
2025-04-30 10:52:09,478 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:09,609 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981528507}
2025-04-30 10:52:09,620 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 96 次
2025-04-30 10:52:09,649 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:09,650 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:09,651 - sqlalchemy.engine.Engine - INFO - [cached since 196.5s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:09,653 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:09,905 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:09,906 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:09,907 - sqlalchemy.engine.Engine - INFO - [cached since 196.8s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:09,907 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:10,116 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:10,131 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981529118}
2025-04-30 10:52:10,131 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 97 次
2025-04-30 10:52:10,631 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:10,656 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981529632}
2025-04-30 10:52:10,658 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 98 次
2025-04-30 10:52:10,658 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:10,658 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:10,659 - sqlalchemy.engine.Engine - INFO - [cached since 197.6s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:10,659 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:10,926 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:10,927 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:10,928 - sqlalchemy.engine.Engine - INFO - [cached since 197.8s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:10,931 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:11,178 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:11,191 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981530179}
2025-04-30 10:52:11,191 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 99 次
2025-04-30 10:52:11,678 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:11,678 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:11,678 - sqlalchemy.engine.Engine - INFO - [cached since 198.6s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:11,679 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:11,708 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:11,749 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981530736}
2025-04-30 10:52:11,750 - services.sync_service - INFO - 任务块 1917411389169881090 动作未完成(actionStatus为空)，已尝试 100 次，继续等待...
2025-04-30 10:52:11,940 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:11,940 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:11,940 - sqlalchemy.engine.Engine - INFO - [cached since 198.8s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:11,941 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:12,236 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:12,258 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981531241}
2025-04-30 10:52:12,258 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 101 次
2025-04-30 10:52:12,677 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:12,679 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:12,679 - sqlalchemy.engine.Engine - INFO - [cached since 199.6s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:12,680 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:12,770 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:12,795 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981531782}
2025-04-30 10:52:12,797 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 102 次
2025-04-30 10:52:12,956 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:12,957 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:12,960 - sqlalchemy.engine.Engine - INFO - [cached since 199.9s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:12,962 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:13,311 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:13,381 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981532349}
2025-04-30 10:52:13,382 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 103 次
2025-04-30 10:52:13,683 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:13,687 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:13,687 - sqlalchemy.engine.Engine - INFO - [cached since 200.6s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:13,689 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:13,898 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:13,915 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981532901}
2025-04-30 10:52:13,915 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 104 次
2025-04-30 10:52:13,961 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:13,961 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:13,962 - sqlalchemy.engine.Engine - INFO - [cached since 200.9s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:13,962 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:14,398 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411389169881090
2025-04-30 10:52:14,469 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411389169881090 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411389169881090', 'tenantId': 1000, 'taskId': '1917411349231718402', 'taskBlockId': '1917411349814726657', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:51:14'}, 'timestamp': 1745981533401}
2025-04-30 10:52:14,470 - services.sync_service - DEBUG - 任务块 1917411389169881090 动作未完成，已尝试 105 次
2025-04-30 10:52:14,691 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:52:14,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:52:14,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:52:14,693 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:52:14,693 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:52:14,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:52:14,693 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:14,694 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:14,694 - sqlalchemy.engine.Engine - INFO - [cached since 201.6s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:14,694 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:14,946 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:14,947 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:14,948 - sqlalchemy.engine.Engine - INFO - [cached since 201.8s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:14,950 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:15,692 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:15,693 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:15,695 - sqlalchemy.engine.Engine - INFO - [cached since 202.6s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:15,703 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:15,957 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:15,958 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:15,958 - sqlalchemy.engine.Engine - INFO - [cached since 202.9s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:15,960 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:16,721 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:16,722 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:16,723 - sqlalchemy.engine.Engine - INFO - [cached since 203.6s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:16,725 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:16,958 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:16,958 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:16,958 - sqlalchemy.engine.Engine - INFO - [cached since 203.9s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:16,960 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:17,722 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:17,722 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:17,723 - sqlalchemy.engine.Engine - INFO - [cached since 204.6s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:17,724 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:17,968 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:17,969 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:17,969 - sqlalchemy.engine.Engine - INFO - [cached since 204.9s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:17,970 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:18,747 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:18,748 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:18,752 - sqlalchemy.engine.Engine - INFO - [cached since 205.6s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:18,757 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:18,979 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:18,982 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:18,982 - sqlalchemy.engine.Engine - INFO - [cached since 205.9s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:18,984 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:19,773 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:19,774 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:19,774 - sqlalchemy.engine.Engine - INFO - [cached since 206.7s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:19,775 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:20,004 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:20,005 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:20,005 - sqlalchemy.engine.Engine - INFO - [cached since 206.9s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:20,008 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:20,775 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:20,776 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:20,776 - sqlalchemy.engine.Engine - INFO - [cached since 207.7s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:20,778 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:21,023 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:21,024 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:21,025 - sqlalchemy.engine.Engine - INFO - [cached since 207.9s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:21,027 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:21,784 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:21,786 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:21,787 - sqlalchemy.engine.Engine - INFO - [cached since 208.7s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:21,791 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:22,047 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:22,048 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:22,052 - sqlalchemy.engine.Engine - INFO - [cached since 208.9s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:22,057 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:22,798 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:22,801 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:22,805 - sqlalchemy.engine.Engine - INFO - [cached since 209.7s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:22,812 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:23,062 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:23,063 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:23,065 - sqlalchemy.engine.Engine - INFO - [cached since 210s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:23,066 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:23,809 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:23,810 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:23,811 - sqlalchemy.engine.Engine - INFO - [cached since 210.7s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:23,813 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:24,091 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:24,093 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:24,095 - sqlalchemy.engine.Engine - INFO - [cached since 211s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:24,097 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:24,835 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:24,840 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:24,840 - sqlalchemy.engine.Engine - INFO - [cached since 211.7s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:24,842 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:25,111 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:25,111 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:25,112 - sqlalchemy.engine.Engine - INFO - [cached since 212s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:25,114 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:25,845 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:25,847 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:25,851 - sqlalchemy.engine.Engine - INFO - [cached since 212.7s ago] ('b68a9ffd-9048-4c14-a081-0dc99187bff9',)
2025-04-30 10:52:25,855 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:26,126 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:26,130 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:52:26,136 - sqlalchemy.engine.Engine - INFO - [cached since 213s ago] ('98ec7608-b61a-4e9e-b411-3b49fd658524',)
2025-04-30 10:52:26,139 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:26,693 - app - INFO - 应用程序关闭中...
2025-04-30 10:52:26,694 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 10:52:26,694 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 10:52:26,695 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 10:52:26,695 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 10:52:26,695 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 10:52:26,695 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 10:52:26,695 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 10:52:26,697 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 10:52:26,697 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 10:52:26,697 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 10:52:26,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:52:26,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:52:26,698 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:52:26,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:52:26,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:52:26,698 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 10:52:26,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:52:26,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:52:26,698 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-30 10:52:26,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:52:26,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:52:26,698 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-30 10:52:26,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:52:26,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:52:26,698 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 0
2025-04-30 10:52:26,698 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 10:52:26,698 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 10:52:26,698 - app - INFO - 增强版任务调度器已停止
2025-04-30 10:52:26,698 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 10:52:26,699 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 10:52:26,699 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 10:52:26,699 - data.session - INFO - 数据库连接已关闭
2025-04-30 10:52:54,828 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 10:52:54,892 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 10:52:54,893 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 10:52:55,530 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 10:52:55,589 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 10:52:55,590 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 10:52:55,663 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 10:52:55,710 - data.session - INFO - 正在初始化数据库...
2025-04-30 10:52:55,748 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 10:52:55,767 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:52:55,768 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:52:55,768 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:52:55,769 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:52:55,770 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:52:55,770 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:52:55,770 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:55,771 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 10:52:55,771 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:52:55,772 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 10:52:55,773 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:52:55,774 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 10:52:55,775 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:52:55,776 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 10:52:55,776 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:52:55,777 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 10:52:55,777 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:52:55,778 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 10:52:55,778 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:52:55,778 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 10:52:55,778 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:52:55,780 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 10:52:55,783 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:52:55,784 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 10:52:55,785 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:52:55,787 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 10:52:55,788 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:52:55,789 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 10:52:55,789 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:52:55,790 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:55,790 - data.session - INFO - 数据库表初始化完成
2025-04-30 10:52:56,126 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 10:52:56,127 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 10:52:56,127 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 10:52:56,127 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 10:52:56,128 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 10:52:56,128 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 10:52:56,129 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 10:52:56,129 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 10:52:56,129 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 10:52:56,130 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 10:52:56,130 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:52:56,130 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 10:52:56,131 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 10:52:56,132 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:52:56,132 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:52:56,132 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:52:56,133 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:52:56,133 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:52:56,133 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 10:52:56,133 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 10:52:56,134 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:52:56,134 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:52:56,134 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:52:56,136 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:52:56,136 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:52:56,136 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:52:56,136 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:52:56,136 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:56,145 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 10:52:56,147 - sqlalchemy.engine.Engine - INFO - [generated in 0.00233s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 10:52:56,148 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 10:52:56,149 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:56,150 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 10:52:56,151 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 10:52:56,151 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 10:52:56,151 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:56,154 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 10:52:56,154 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 10:52:56,155 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:52:56,155 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 10:52:56,156 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 10:52:56,156 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 10:52:56,156 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 10:52:56,157 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:52:56,157 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:52:56,162 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:52:56,162 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 52, 56, 151687))
2025-04-30 10:52:56,163 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:03,153 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 10:53:03,155 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:03,156 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:53:03,156 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:53:03,157 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:03,158 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:03,161 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:53:03,162 - sqlalchemy.engine.Engine - INFO - [cached since 0.005612s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:53:03,162 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:03,163 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 10:53:03,163 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 10:53:03,163 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 10:53:03,164 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:03,165 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 10:53:03,165 - sqlalchemy.engine.Engine - INFO - [generated in 0.00022s] (None, datetime.datetime(2025, 4, 30, 10, 53, 3, 165883), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 10:53:03,166 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:03,185 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:03,186 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:53:03,186 - sqlalchemy.engine.Engine - INFO - [cached since 0.03001s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:53:03,188 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:53:03,188 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] ('9f94e7aa-f000-40bf-b12c-ade670904f54', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 10, 53, 3, 163834), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.4", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 10, 53, 3, 188687), datetime.datetime(2025, 4, 30, 10, 53, 3, 188687), 0)
2025-04-30 10:53:03,189 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:03,197 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:03,198 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:03,198 - sqlalchemy.engine.Engine - INFO - [generated in 0.00042s] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:03,199 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:03,199 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 9f94e7aa-f000-40bf-b12c-ade670904f54 (优先级 1) 添加到队列 0
2025-04-30 10:53:03,204 - services.sync_service - INFO - 正在同步创建任务到天风系统: 9f94e7aa-f000-40bf-b12c-ade670904f54
2025-04-30 10:53:03,204 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"9f94e7aa-f000-40bf-b12c-ade670904f54","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 10:53:03","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 10:53:03,300 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 9f94e7aa-f000-40bf-b12c-ade670904f54, 优先级: 1
2025-04-30 10:53:03,301 - services.execution.task_executor - DEBUG - 任务 9f94e7aa-f000-40bf-b12c-ade670904f54 设置超时时间: 3600秒
2025-04-30 10:53:03,302 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:03,303 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:03,303 - sqlalchemy.engine.Engine - INFO - [cached since 0.1052s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:03,304 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:53:03,309 - sqlalchemy.engine.Engine - INFO - [cached since 0.1527s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:53:03,313 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:03,316 - sqlalchemy.engine.Engine - INFO - [generated in 0.00296s] (datetime.datetime(2025, 4, 30, 10, 53, 3, 312533), datetime.datetime(2025, 4, 30, 10, 53, 3, 313547), '9f94e7aa-f000-40bf-b12c-ade670904f54')
2025-04-30 10:53:03,317 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:03,327 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:03,328 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:03,331 - sqlalchemy.engine.Engine - INFO - [generated in 0.00287s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 53, 3, 328532), '9f94e7aa-f000-40bf-b12c-ade670904f54')
2025-04-30 10:53:03,335 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:03,345 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 10:53:03,346 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:03,353 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:53:03,353 - sqlalchemy.engine.Engine - INFO - [generated in 0.00060s] ('dc75e16f-f6a9-4822-bb84-501bedf6db5b', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '9f94e7aa-f000-40bf-b12c-ade670904f54', datetime.datetime(2025, 4, 30, 10, 53, 3, 346539), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 10, 53, 3, 353535), datetime.datetime(2025, 4, 30, 10, 53, 3, 353535), 0)
2025-04-30 10:53:03,358 - services.sync_service - INFO - 成功同步任务到系统任务: 9f94e7aa-f000-40bf-b12c-ade670904f54
2025-04-30 10:53:03,359 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 9f94e7aa-f000-40bf-b12c-ade670904f54
2025-04-30 10:53:03,360 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 9f94e7aa-f000-40bf-b12c-ade670904f54
2025-04-30 10:53:03,360 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:03,363 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.2099秒
2025-04-30 10:53:03,371 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:03,374 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 10:53:03,378 - sqlalchemy.engine.Engine - INFO - [generated in 0.00374s] ('dc75e16f-f6a9-4822-bb84-501bedf6db5b',)
2025-04-30 10:53:03,381 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 10:53:03,381 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 10:53:03,383 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 10:53:03,383 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 10, 53, 3, 383532), 'dc75e16f-f6a9-4822-bb84-501bedf6db5b')
2025-04-30 10:53:03,383 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:03,389 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 10:53:03,389 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 10:53:03,389 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 10:53:03,390 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:03,390 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:53:03,390 - sqlalchemy.engine.Engine - INFO - [cached since 0.03758s ago] ('a94427f3-14e5-4fe8-96a9-caa57334f87f', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '9f94e7aa-f000-40bf-b12c-ade670904f54', datetime.datetime(2025, 4, 30, 10, 53, 3, 389446), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 10, 53, 3, 390456), datetime.datetime(2025, 4, 30, 10, 53, 3, 390456), 0)
2025-04-30 10:53:03,391 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:03,398 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: a94427f3-14e5-4fe8-96a9-caa57334f87f
2025-04-30 10:53:03,398 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:03,399 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 10:53:03,400 - sqlalchemy.engine.Engine - INFO - [cached since 0.02554s ago] ('a94427f3-14e5-4fe8-96a9-caa57334f87f',)
2025-04-30 10:53:03,400 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 10:53:03,401 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 10:53:03,401 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 10:53:03,401 - sqlalchemy.engine.Engine - INFO - [cached since 0.01909s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 10, 53, 3, 401993), 'a94427f3-14e5-4fe8-96a9-caa57334f87f')
2025-04-30 10:53:03,402 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:03,411 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 10:53:03,411 - services.sync_service - INFO - 正在创建选择AMR任务: 9f94e7aa-f000-40bf-b12c-ade670904f54, 站点: TK01
2025-04-30 10:53:03,826 - services.sync_service - INFO - 成功为任务选择AMR: 9f94e7aa-f000-40bf-b12c-ade670904f54, AMR: None
2025-04-30 10:53:03,827 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917411847074631682 的AMR选择结果
2025-04-30 10:53:03,827 - services.sync_service - INFO - 开始等待任务块 1917411847074631682 的AMR选择结果
2025-04-30 10:53:03,827 - services.sync_service - INFO - 正在获取任务块详情: 1917411847074631682
2025-04-30 10:53:03,857 - services.sync_service - INFO - 成功获取任务块详情: 1917411847074631682 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411847074631682', 'taskId': '1917411844860039170', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:53:03', 'updateTime': None}, 'timestamp': 1745981582847}
2025-04-30 10:53:03,859 - services.sync_service - DEBUG - 任务块 1917411847074631682 AMR选择未完成，已尝试 1 次
2025-04-30 10:53:04,328 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:04,330 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:04,331 - sqlalchemy.engine.Engine - INFO - [generated in 0.00100s] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:04,332 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:04,357 - services.sync_service - INFO - 正在获取任务块详情: 1917411847074631682
2025-04-30 10:53:04,385 - services.sync_service - INFO - 成功获取任务块详情: 1917411847074631682 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411847074631682', 'taskId': '1917411844860039170', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:53:03', 'updateTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981583373}
2025-04-30 10:53:04,386 - services.sync_service - INFO - 任务块 1917411847074631682 已选择AMR: 1912328602264645634，共尝试 2 次
2025-04-30 10:53:04,386 - services.execution.handlers.robot_scheduling - INFO - 准备更新任务 9f94e7aa-f000-40bf-b12c-ade670904f54 的机器人ID: 1912328602264645634
2025-04-30 10:53:04,387 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:04,389 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.agv_id 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:04,392 - sqlalchemy.engine.Engine - INFO - [generated in 0.00295s] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:04,394 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET agv_id=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:04,396 - sqlalchemy.engine.Engine - INFO - [generated in 0.00096s] ('1912328602264645634', datetime.datetime(2025, 4, 30, 10, 53, 4, 394924), '9f94e7aa-f000-40bf-b12c-ade670904f54')
2025-04-30 10:53:04,398 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:04,415 - services.execution.handlers.robot_scheduling - INFO - 成功更新任务记录 9f94e7aa-f000-40bf-b12c-ade670904f54 的agv_id字段: 1912328602264645634
2025-04-30 10:53:04,416 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 10:53:04,416 - services.execution.handlers.robot_scheduling - INFO - 块 b1(ID:1) 有 1 个子块
2025-04-30 10:53:04,416 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: [2]
2025-04-30 10:53:04,418 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 10:53:04,418 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 1 个
2025-04-30 10:53:04,419 - services.execution.handlers.robot_scheduling - INFO - 1. b2(ID:2, 类型:CAgvOperationBp, 关系:direct_child)
2025-04-30 10:53:04,419 - services.execution.handlers.robot_scheduling - INFO - 开始执行选择机器人块 b1 的子块
2025-04-30 10:53:04,420 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-30 10:53:04,420 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 1 个子块
2025-04-30 10:53:04,421 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b2, ID: 2, 类型: CAgvOperationBp
2025-04-30 10:53:04,423 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:04,425 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:53:04,425 - sqlalchemy.engine.Engine - INFO - [cached since 1.073s ago] ('720f6e9b-d5e6-4263-b77f-db19b96f9e19', 'b2', '2', '', '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"targetSiteLabel": "PT02", "scriptName": "JackUnload"}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917411847074631682"}', 'CAgvOperationBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '9f94e7aa-f000-40bf-b12c-ade670904f54', datetime.datetime(2025, 4, 30, 10, 53, 4, 423961), <TaskBlockRecordStatus.RUNNING: 1001>, '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917411847074631682"}', 1, datetime.datetime(2025, 4, 30, 10, 53, 4, 425299), datetime.datetime(2025, 4, 30, 10, 53, 4, 425299), 0)
2025-04-30 10:53:04,427 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:04,434 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 720f6e9b-d5e6-4263-b77f-db19b96f9e19
2025-04-30 10:53:04,434 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:04,435 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 10:53:04,435 - sqlalchemy.engine.Engine - INFO - [cached since 1.061s ago] ('720f6e9b-d5e6-4263-b77f-db19b96f9e19',)
2025-04-30 10:53:04,436 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-30 10:53:04,436 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-30 10:53:04,437 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 10:53:04,437 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] ('{"selectedAgvId": "1912328602264645634"}', '执行中', "{'agv_for_block_2': '1912328602264645634', 'agv_for_b2': '1912328602264645634', 'agv_task_id_2': '1917411847074631682'}", '{"blocks": {"b2": {"selectedAgvId": "1912328602264645634"}}}', '执行中', datetime.datetime(2025, 4, 30, 10, 53, 4, 437243), '720f6e9b-d5e6-4263-b77f-db19b96f9e19')
2025-04-30 10:53:04,439 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:04,445 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-30 10:53:04,446 - services.execution.handlers.robot_scheduling - INFO - 找到块 b2(ID:2) 专用的机器人ID: 1912328602264645634
2025-04-30 10:53:04,446 - services.execution.handlers.robot_scheduling - INFO - 执行机器人通用动作，块 b2(ID:2) 使用机器人: 1912328602264645634, 目标站点: PT02
2025-04-30 10:53:04,446 - services.sync_service - INFO - 正在为任务添加动作: 1917411847074631682, 站点: PT02, 动作: JackUnload
2025-04-30 10:53:04,507 - services.sync_service - INFO - 成功为任务添加动作: 1917411847074631682, 站点: PT02, 动作: JackUnload
2025-04-30 10:53:04,508 - services.sync_service - INFO - 开始等待任务块 1917411849981284354 的动作完成
2025-04-30 10:53:04,508 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:04,588 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981583577}
2025-04-30 10:53:04,589 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 1 次
2025-04-30 10:53:05,086 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:05,104 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981584091}
2025-04-30 10:53:05,106 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 2 次
2025-04-30 10:53:05,352 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:05,353 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:05,354 - sqlalchemy.engine.Engine - INFO - [cached since 1.025s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:05,356 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:05,604 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:05,622 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981584610}
2025-04-30 10:53:05,624 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 3 次
2025-04-30 10:53:06,131 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:06,340 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981585247}
2025-04-30 10:53:06,342 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 4 次
2025-04-30 10:53:06,366 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:06,370 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:06,374 - sqlalchemy.engine.Engine - INFO - [cached since 2.045s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:06,379 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:06,845 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:07,171 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981586158}
2025-04-30 10:53:07,173 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 5 次
2025-04-30 10:53:07,402 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:07,404 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:07,408 - sqlalchemy.engine.Engine - INFO - [cached since 3.078s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:07,412 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:07,696 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:07,726 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981586715}
2025-04-30 10:53:07,727 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 6 次
2025-04-30 10:53:08,242 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:08,266 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981587254}
2025-04-30 10:53:08,267 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 7 次
2025-04-30 10:53:08,429 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:08,430 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:08,430 - sqlalchemy.engine.Engine - INFO - [cached since 4.1s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:08,431 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:08,788 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:08,836 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981587805}
2025-04-30 10:53:08,836 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 8 次
2025-04-30 10:53:09,331 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:09,386 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981588364}
2025-04-30 10:53:09,387 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 9 次
2025-04-30 10:53:09,441 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:09,442 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:09,443 - sqlalchemy.engine.Engine - INFO - [cached since 5.113s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:09,444 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:09,906 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:09,930 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981588914}
2025-04-30 10:53:09,931 - services.sync_service - INFO - 任务块 1917411849981284354 动作未完成(actionStatus为空)，已尝试 10 次，继续等待...
2025-04-30 10:53:10,434 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:10,466 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:10,466 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:10,466 - sqlalchemy.engine.Engine - INFO - [cached since 6.136s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:10,467 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:10,588 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981589577}
2025-04-30 10:53:10,589 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 11 次
2025-04-30 10:53:11,084 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:11,114 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981590105}
2025-04-30 10:53:11,114 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 12 次
2025-04-30 10:53:11,474 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:11,475 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:11,475 - sqlalchemy.engine.Engine - INFO - [cached since 7.145s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:11,476 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:11,627 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:11,648 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981590635}
2025-04-30 10:53:11,650 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 13 次
2025-04-30 10:53:12,170 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:12,237 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981591181}
2025-04-30 10:53:12,238 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 14 次
2025-04-30 10:53:12,495 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:12,497 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:12,497 - sqlalchemy.engine.Engine - INFO - [cached since 8.168s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:12,498 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:12,744 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:12,763 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981591752}
2025-04-30 10:53:12,764 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 15 次
2025-04-30 10:53:13,274 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:13,294 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981592284}
2025-04-30 10:53:13,296 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 16 次
2025-04-30 10:53:13,494 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:13,501 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:13,502 - sqlalchemy.engine.Engine - INFO - [cached since 9.172s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:13,504 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:13,791 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:13,838 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981592823}
2025-04-30 10:53:13,839 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 17 次
2025-04-30 10:53:14,346 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:14,491 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981593428}
2025-04-30 10:53:14,491 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 18 次
2025-04-30 10:53:14,520 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:14,525 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:14,528 - sqlalchemy.engine.Engine - INFO - [cached since 10.2s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:14,535 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:14,987 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:15,006 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981593993}
2025-04-30 10:53:15,010 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 19 次
2025-04-30 10:53:15,518 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:15,521 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:15,522 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:15,523 - sqlalchemy.engine.Engine - INFO - [cached since 11.19s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:15,524 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:15,561 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981594551}
2025-04-30 10:53:15,562 - services.sync_service - INFO - 任务块 1917411849981284354 动作未完成(actionStatus为空)，已尝试 20 次，继续等待...
2025-04-30 10:53:16,065 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:16,129 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981595074}
2025-04-30 10:53:16,129 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 21 次
2025-04-30 10:53:16,549 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:16,549 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:16,550 - sqlalchemy.engine.Engine - INFO - [cached since 12.22s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:16,551 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:16,656 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:16,704 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981595688}
2025-04-30 10:53:16,706 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 22 次
2025-04-30 10:53:17,215 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:17,238 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981596226}
2025-04-30 10:53:17,239 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 23 次
2025-04-30 10:53:17,575 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:17,582 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:17,583 - sqlalchemy.engine.Engine - INFO - [cached since 13.25s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:17,584 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:17,744 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:17,791 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981596779}
2025-04-30 10:53:17,791 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 24 次
2025-04-30 10:53:18,288 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:18,314 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981597301}
2025-04-30 10:53:18,315 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 25 次
2025-04-30 10:53:18,590 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:18,591 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:18,592 - sqlalchemy.engine.Engine - INFO - [cached since 14.26s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:18,593 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:18,823 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:18,868 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981597857}
2025-04-30 10:53:18,869 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 26 次
2025-04-30 10:53:19,373 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:19,418 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981598409}
2025-04-30 10:53:19,419 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 27 次
2025-04-30 10:53:19,592 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:19,593 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:19,594 - sqlalchemy.engine.Engine - INFO - [cached since 15.26s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:19,595 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:19,904 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:19,947 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981598937}
2025-04-30 10:53:19,948 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 28 次
2025-04-30 10:53:20,448 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:20,476 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981599466}
2025-04-30 10:53:20,477 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 29 次
2025-04-30 10:53:20,618 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:20,619 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:20,619 - sqlalchemy.engine.Engine - INFO - [cached since 16.29s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:20,620 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:20,993 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:21,034 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981600025}
2025-04-30 10:53:21,036 - services.sync_service - INFO - 任务块 1917411849981284354 动作未完成(actionStatus为空)，已尝试 30 次，继续等待...
2025-04-30 10:53:21,520 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:21,564 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981600553}
2025-04-30 10:53:21,566 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 31 次
2025-04-30 10:53:21,614 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:21,615 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:21,616 - sqlalchemy.engine.Engine - INFO - [cached since 17.29s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:21,617 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:22,082 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:22,098 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981601089}
2025-04-30 10:53:22,099 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 32 次
2025-04-30 10:53:22,597 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:22,599 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:22,602 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:22,605 - sqlalchemy.engine.Engine - INFO - [cached since 18.28s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:22,609 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:22,630 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981601618}
2025-04-30 10:53:22,630 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 33 次
2025-04-30 10:53:23,139 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:23,170 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981602160}
2025-04-30 10:53:23,170 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 34 次
2025-04-30 10:53:23,625 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:23,626 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:23,626 - sqlalchemy.engine.Engine - INFO - [cached since 19.3s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:23,628 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:23,670 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:23,697 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981602686}
2025-04-30 10:53:23,699 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 35 次
2025-04-30 10:53:24,198 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:24,241 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981603231}
2025-04-30 10:53:24,242 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 36 次
2025-04-30 10:53:24,636 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:24,638 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:24,638 - sqlalchemy.engine.Engine - INFO - [cached since 20.31s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:24,640 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:24,744 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:24,765 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981603752}
2025-04-30 10:53:24,767 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 37 次
2025-04-30 10:53:25,274 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:25,370 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981604360}
2025-04-30 10:53:25,371 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 38 次
2025-04-30 10:53:25,649 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:25,650 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:25,651 - sqlalchemy.engine.Engine - INFO - [cached since 21.32s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:25,653 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:25,882 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:25,949 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981604901}
2025-04-30 10:53:25,950 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 39 次
2025-04-30 10:53:26,443 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:26,502 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981605491}
2025-04-30 10:53:26,503 - services.sync_service - INFO - 任务块 1917411849981284354 动作未完成(actionStatus为空)，已尝试 40 次，继续等待...
2025-04-30 10:53:26,661 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:26,663 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:26,664 - sqlalchemy.engine.Engine - INFO - [cached since 22.33s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:26,665 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:27,031 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:27,061 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981606051}
2025-04-30 10:53:27,061 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 41 次
2025-04-30 10:53:27,566 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:27,611 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981606601}
2025-04-30 10:53:27,614 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 42 次
2025-04-30 10:53:27,645 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:27,662 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:27,662 - sqlalchemy.engine.Engine - INFO - [cached since 23.33s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:27,664 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:28,130 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:28,148 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981607139}
2025-04-30 10:53:28,149 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 43 次
2025-04-30 10:53:28,663 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:28,699 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:28,700 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:28,704 - sqlalchemy.engine.Engine - INFO - [cached since 24.37s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:28,705 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:28,709 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981607701}
2025-04-30 10:53:28,712 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 44 次
2025-04-30 10:53:29,208 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:29,228 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981608219}
2025-04-30 10:53:29,228 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 45 次
2025-04-30 10:53:29,719 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:29,721 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:29,722 - sqlalchemy.engine.Engine - INFO - [cached since 25.39s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:29,722 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:29,724 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:29,761 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981608751}
2025-04-30 10:53:29,761 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 46 次
2025-04-30 10:53:30,265 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:30,411 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981609330}
2025-04-30 10:53:30,414 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 47 次
2025-04-30 10:53:30,748 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:30,749 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:30,750 - sqlalchemy.engine.Engine - INFO - [cached since 26.42s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:30,751 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:30,920 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:30,956 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981609947}
2025-04-30 10:53:30,957 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 48 次
2025-04-30 10:53:31,466 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:31,510 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981610500}
2025-04-30 10:53:31,511 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 49 次
2025-04-30 10:53:31,762 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:31,762 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:31,763 - sqlalchemy.engine.Engine - INFO - [cached since 27.43s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:31,766 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:32,008 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:32,035 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981611026}
2025-04-30 10:53:32,037 - services.sync_service - INFO - 任务块 1917411849981284354 动作未完成(actionStatus为空)，已尝试 50 次，继续等待...
2025-04-30 10:53:32,521 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:32,549 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981611539}
2025-04-30 10:53:32,550 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 51 次
2025-04-30 10:53:32,769 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:32,775 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:32,778 - sqlalchemy.engine.Engine - INFO - [cached since 28.45s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:32,784 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:33,062 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:33,095 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981612073}
2025-04-30 10:53:33,100 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 52 次
2025-04-30 10:53:33,622 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:33,641 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981612632}
2025-04-30 10:53:33,641 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 53 次
2025-04-30 10:53:33,795 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:33,797 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:33,800 - sqlalchemy.engine.Engine - INFO - [cached since 29.47s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:33,804 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:34,153 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:34,170 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981613162}
2025-04-30 10:53:34,171 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 54 次
2025-04-30 10:53:34,669 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:34,695 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981613686}
2025-04-30 10:53:34,695 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 55 次
2025-04-30 10:53:34,808 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:34,809 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:34,810 - sqlalchemy.engine.Engine - INFO - [cached since 30.48s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:34,812 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:35,200 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:35,319 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981614224}
2025-04-30 10:53:35,319 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 56 次
2025-04-30 10:53:35,840 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:35,842 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:35,843 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:35,844 - sqlalchemy.engine.Engine - INFO - [cached since 31.51s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:35,844 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:35,904 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981614893}
2025-04-30 10:53:35,905 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 57 次
2025-04-30 10:53:36,414 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:36,444 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981615433}
2025-04-30 10:53:36,444 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 58 次
2025-04-30 10:53:36,816 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:36,820 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:36,825 - sqlalchemy.engine.Engine - INFO - [cached since 32.5s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:36,827 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:36,957 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:37,008 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981615992}
2025-04-30 10:53:37,008 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 59 次
2025-04-30 10:53:37,518 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:37,576 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981616568}
2025-04-30 10:53:37,579 - services.sync_service - INFO - 任务块 1917411849981284354 动作未完成(actionStatus为空)，已尝试 60 次，继续等待...
2025-04-30 10:53:37,846 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:37,848 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:37,849 - sqlalchemy.engine.Engine - INFO - [cached since 33.52s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:37,852 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:38,079 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:38,122 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981617112}
2025-04-30 10:53:38,122 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 61 次
2025-04-30 10:53:38,623 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:38,681 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981617672}
2025-04-30 10:53:38,681 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 62 次
2025-04-30 10:53:38,860 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:38,860 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:38,861 - sqlalchemy.engine.Engine - INFO - [cached since 34.53s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:38,862 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:39,203 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:39,238 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981618211}
2025-04-30 10:53:39,238 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 63 次
2025-04-30 10:53:39,746 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:39,855 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:39,858 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:39,862 - sqlalchemy.engine.Engine - INFO - [cached since 35.53s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:39,865 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:39,933 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981618866}
2025-04-30 10:53:39,934 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 64 次
2025-04-30 10:53:40,447 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:40,588 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981619567}
2025-04-30 10:53:40,590 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 65 次
2025-04-30 10:53:40,868 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:40,868 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:40,869 - sqlalchemy.engine.Engine - INFO - [cached since 36.54s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:40,870 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:41,084 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:41,104 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981620095}
2025-04-30 10:53:41,105 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 66 次
2025-04-30 10:53:41,610 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:41,642 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981620633}
2025-04-30 10:53:41,642 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 67 次
2025-04-30 10:53:41,875 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:41,876 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:41,876 - sqlalchemy.engine.Engine - INFO - [cached since 37.55s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:41,877 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:42,169 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:42,261 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981621203}
2025-04-30 10:53:42,262 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 68 次
2025-04-30 10:53:42,764 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:42,829 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981621798}
2025-04-30 10:53:42,829 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 69 次
2025-04-30 10:53:42,903 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:42,904 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:42,904 - sqlalchemy.engine.Engine - INFO - [cached since 38.57s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:42,906 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:43,337 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:43,374 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981622362}
2025-04-30 10:53:43,375 - services.sync_service - INFO - 任务块 1917411849981284354 动作未完成(actionStatus为空)，已尝试 70 次，继续等待...
2025-04-30 10:53:43,877 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:43,894 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:43,895 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:43,896 - sqlalchemy.engine.Engine - INFO - [cached since 39.57s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:43,897 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:43,905 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981622897}
2025-04-30 10:53:43,905 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 71 次
2025-04-30 10:53:44,421 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:44,482 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981623439}
2025-04-30 10:53:44,483 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 72 次
2025-04-30 10:53:44,904 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:44,908 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:44,912 - sqlalchemy.engine.Engine - INFO - [cached since 40.58s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:44,916 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:44,997 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:45,014 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981624006}
2025-04-30 10:53:45,015 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 73 次
2025-04-30 10:53:45,513 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:45,653 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981624564}
2025-04-30 10:53:45,654 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 74 次
2025-04-30 10:53:45,918 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:45,918 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:45,919 - sqlalchemy.engine.Engine - INFO - [cached since 41.59s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:45,920 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:46,167 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:46,210 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981625203}
2025-04-30 10:53:46,210 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 75 次
2025-04-30 10:53:46,714 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:46,756 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981625747}
2025-04-30 10:53:46,758 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 76 次
2025-04-30 10:53:46,930 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:46,931 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:46,934 - sqlalchemy.engine.Engine - INFO - [cached since 42.6s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:46,935 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:47,257 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:47,304 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981626295}
2025-04-30 10:53:47,305 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 77 次
2025-04-30 10:53:47,800 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:47,860 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981626819}
2025-04-30 10:53:47,862 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 78 次
2025-04-30 10:53:47,940 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:47,941 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:47,941 - sqlalchemy.engine.Engine - INFO - [cached since 43.61s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:47,943 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:48,389 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:48,477 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981627410}
2025-04-30 10:53:48,479 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 79 次
2025-04-30 10:53:48,966 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:48,966 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:48,966 - sqlalchemy.engine.Engine - INFO - [cached since 44.64s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:48,967 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:48,997 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:49,016 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981628007}
2025-04-30 10:53:49,017 - services.sync_service - INFO - 任务块 1917411849981284354 动作未完成(actionStatus为空)，已尝试 80 次，继续等待...
2025-04-30 10:53:49,510 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:49,639 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981628578}
2025-04-30 10:53:49,642 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 81 次
2025-04-30 10:53:49,962 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:49,964 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:49,971 - sqlalchemy.engine.Engine - INFO - [cached since 45.64s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:49,975 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:50,147 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:50,176 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981629166}
2025-04-30 10:53:50,176 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 82 次
2025-04-30 10:53:50,693 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:50,711 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981629702}
2025-04-30 10:53:50,712 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 83 次
2025-04-30 10:53:50,989 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:50,990 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:50,990 - sqlalchemy.engine.Engine - INFO - [cached since 46.66s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:50,991 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:51,220 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:51,264 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981630231}
2025-04-30 10:53:51,265 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 84 次
2025-04-30 10:53:51,766 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:51,787 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981630778}
2025-04-30 10:53:51,787 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 85 次
2025-04-30 10:53:51,985 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:51,987 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:51,987 - sqlalchemy.engine.Engine - INFO - [cached since 47.66s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:51,988 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:52,298 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:52,317 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981631308}
2025-04-30 10:53:52,317 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 86 次
2025-04-30 10:53:52,829 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:52,861 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981631837}
2025-04-30 10:53:52,862 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 87 次
2025-04-30 10:53:53,016 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:53,022 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:53,026 - sqlalchemy.engine.Engine - INFO - [cached since 48.7s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:53,030 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:53,373 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:53,448 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981632441}
2025-04-30 10:53:53,450 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 88 次
2025-04-30 10:53:53,964 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:53,987 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981632977}
2025-04-30 10:53:53,988 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 89 次
2025-04-30 10:53:54,043 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:54,044 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:54,045 - sqlalchemy.engine.Engine - INFO - [cached since 49.71s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:54,046 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:54,493 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:54,529 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981633520}
2025-04-30 10:53:54,529 - services.sync_service - INFO - 任务块 1917411849981284354 动作未完成(actionStatus为空)，已尝试 90 次，继续等待...
2025-04-30 10:53:55,037 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:55,039 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:55,041 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:55,041 - sqlalchemy.engine.Engine - INFO - [cached since 50.71s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:55,043 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:55,057 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981634046}
2025-04-30 10:53:55,058 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 91 次
2025-04-30 10:53:55,553 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:55,573 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981634565}
2025-04-30 10:53:55,574 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 92 次
2025-04-30 10:53:56,037 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:56,039 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:56,043 - sqlalchemy.engine.Engine - INFO - [cached since 51.71s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:56,047 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:56,067 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:56,094 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981635087}
2025-04-30 10:53:56,097 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 93 次
2025-04-30 10:53:56,161 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:53:56,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:53:56,163 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:53:56,164 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:53:56,165 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:53:56,165 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:53:56,166 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:56,167 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:53:56,167 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 53, 56, 161779))
2025-04-30 10:53:56,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:53:56,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:53:56,167 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:53:56,168 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:53:56,168 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:53:56,168 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:53:56,169 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:53:56,169 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:53:56,169 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:53:56,169 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:56,169 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:53:56,170 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:53:56,170 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:53:56,170 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:53:56,170 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:53:56,170 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:53:56,170 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:53:56,170 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:53:56,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:53:56,597 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:56,644 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981635637}
2025-04-30 10:53:56,645 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 94 次
2025-04-30 10:53:57,079 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:57,080 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:57,080 - sqlalchemy.engine.Engine - INFO - [cached since 52.75s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:57,082 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:57,171 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:57,199 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981636190}
2025-04-30 10:53:57,201 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 95 次
2025-04-30 10:53:57,718 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:57,733 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981636726}
2025-04-30 10:53:57,733 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 96 次
2025-04-30 10:53:58,094 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:58,099 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:58,099 - sqlalchemy.engine.Engine - INFO - [cached since 53.77s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:58,100 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:58,234 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:58,248 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981637242}
2025-04-30 10:53:58,250 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 97 次
2025-04-30 10:53:58,747 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:58,775 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981637767}
2025-04-30 10:53:58,776 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 98 次
2025-04-30 10:53:59,109 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:53:59,114 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:53:59,117 - sqlalchemy.engine.Engine - INFO - [cached since 54.79s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:53:59,123 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:53:59,295 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:59,365 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981638348}
2025-04-30 10:53:59,367 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 99 次
2025-04-30 10:53:59,888 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:53:59,922 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981638910}
2025-04-30 10:53:59,923 - services.sync_service - INFO - 任务块 1917411849981284354 动作未完成(actionStatus为空)，已尝试 100 次，继续等待...
2025-04-30 10:54:00,125 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:00,127 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:00,131 - sqlalchemy.engine.Engine - INFO - [cached since 55.8s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:00,134 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:00,421 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:54:00,509 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981639502}
2025-04-30 10:54:00,509 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 101 次
2025-04-30 10:54:01,026 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:54:01,076 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981640067}
2025-04-30 10:54:01,076 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 102 次
2025-04-30 10:54:01,136 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:01,138 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:01,140 - sqlalchemy.engine.Engine - INFO - [cached since 56.81s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:01,141 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:01,585 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:54:01,614 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981640607}
2025-04-30 10:54:01,615 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 103 次
2025-04-30 10:54:02,100 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:54:02,143 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981641135}
2025-04-30 10:54:02,144 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 104 次
2025-04-30 10:54:02,144 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:02,144 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:02,144 - sqlalchemy.engine.Engine - INFO - [cached since 57.81s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:02,145 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:02,647 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:54:02,664 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981641657}
2025-04-30 10:54:02,664 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 105 次
2025-04-30 10:54:03,157 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:54:03,158 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:03,161 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:03,163 - sqlalchemy.engine.Engine - INFO - [cached since 58.83s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:03,189 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:03,214 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981642194}
2025-04-30 10:54:03,215 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 106 次
2025-04-30 10:54:03,733 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:54:03,764 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981642755}
2025-04-30 10:54:03,765 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 107 次
2025-04-30 10:54:04,204 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:04,208 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:04,209 - sqlalchemy.engine.Engine - INFO - [cached since 59.88s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:04,210 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:04,266 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:54:04,340 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981643302}
2025-04-30 10:54:04,342 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 108 次
2025-04-30 10:54:04,837 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:54:04,881 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981643873}
2025-04-30 10:54:04,881 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 109 次
2025-04-30 10:54:05,227 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:05,229 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:05,230 - sqlalchemy.engine.Engine - INFO - [cached since 60.9s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:05,231 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:05,382 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:54:05,427 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981644418}
2025-04-30 10:54:05,427 - services.sync_service - INFO - 任务块 1917411849981284354 动作未完成(actionStatus为空)，已尝试 110 次，继续等待...
2025-04-30 10:54:05,931 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:54:05,971 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981644940}
2025-04-30 10:54:05,972 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 111 次
2025-04-30 10:54:06,240 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:06,241 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:06,241 - sqlalchemy.engine.Engine - INFO - [cached since 61.91s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:06,243 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:06,474 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:54:06,523 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981645513}
2025-04-30 10:54:06,523 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 112 次
2025-04-30 10:54:07,036 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:54:07,062 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981646055}
2025-04-30 10:54:07,063 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 113 次
2025-04-30 10:54:07,238 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:07,239 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:07,239 - sqlalchemy.engine.Engine - INFO - [cached since 62.91s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:07,240 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:07,565 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:54:07,582 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981646575}
2025-04-30 10:54:07,582 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 114 次
2025-04-30 10:54:08,097 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:54:08,159 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981647151}
2025-04-30 10:54:08,160 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 115 次
2025-04-30 10:54:08,237 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:08,238 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:08,239 - sqlalchemy.engine.Engine - INFO - [cached since 63.91s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:08,240 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:08,645 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:54:08,710 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981647699}
2025-04-30 10:54:08,711 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 116 次
2025-04-30 10:54:09,189 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:54:09,216 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981648209}
2025-04-30 10:54:09,217 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 117 次
2025-04-30 10:54:09,252 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:09,258 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:09,264 - sqlalchemy.engine.Engine - INFO - [cached since 64.93s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:09,267 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:09,718 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:54:09,760 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981648753}
2025-04-30 10:54:09,761 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 118 次
2025-04-30 10:54:10,262 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:54:10,294 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:10,296 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:10,296 - sqlalchemy.engine.Engine - INFO - [cached since 65.97s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:10,297 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:10,310 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981649300}
2025-04-30 10:54:10,311 - services.sync_service - DEBUG - 任务块 1917411849981284354 动作未完成，已尝试 119 次
2025-04-30 10:54:10,809 - services.sync_service - INFO - 正在获取任务块动作详情: 1917411849981284354
2025-04-30 10:54:10,851 - services.sync_service - INFO - 成功获取任务块动作详情: 1917411849981284354 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917411849981284354', 'tenantId': 1000, 'taskId': '1917411844860039170', 'taskBlockId': '1917411847074631682', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:53:03'}, 'timestamp': 1745981649844}
2025-04-30 10:54:10,852 - services.sync_service - INFO - 任务块 1917411849981284354 动作未完成(actionStatus为空)，已尝试 120 次，继续等待...
2025-04-30 10:54:11,183 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:54:11,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:54:11,185 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:54:11,185 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:54:11,187 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:54:11,189 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:54:11,293 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:11,294 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:11,294 - sqlalchemy.engine.Engine - INFO - [cached since 66.96s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:11,296 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:12,273 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:12,275 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:12,278 - sqlalchemy.engine.Engine - INFO - [cached since 67.95s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:12,281 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:13,302 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:13,308 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:13,308 - sqlalchemy.engine.Engine - INFO - [cached since 68.98s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:13,309 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:14,322 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:14,324 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:14,324 - sqlalchemy.engine.Engine - INFO - [cached since 69.99s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:14,326 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:15,321 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:15,322 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:15,322 - sqlalchemy.engine.Engine - INFO - [cached since 70.99s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:15,323 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:16,315 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:16,318 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:16,321 - sqlalchemy.engine.Engine - INFO - [cached since 71.99s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:16,325 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:17,332 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:17,333 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:17,334 - sqlalchemy.engine.Engine - INFO - [cached since 73s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:17,336 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:18,340 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:18,347 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:18,348 - sqlalchemy.engine.Engine - INFO - [cached since 74.02s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:18,352 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:19,369 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:19,374 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:19,378 - sqlalchemy.engine.Engine - INFO - [cached since 75.05s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:19,383 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:20,379 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:20,380 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:20,380 - sqlalchemy.engine.Engine - INFO - [cached since 76.05s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:20,381 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:21,406 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:21,407 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:21,407 - sqlalchemy.engine.Engine - INFO - [cached since 77.08s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:21,408 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:22,419 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:22,420 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:22,422 - sqlalchemy.engine.Engine - INFO - [cached since 78.09s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:22,423 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:23,440 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:23,443 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:23,448 - sqlalchemy.engine.Engine - INFO - [cached since 79.12s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:23,454 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:24,468 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:24,470 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:24,471 - sqlalchemy.engine.Engine - INFO - [cached since 80.14s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:24,474 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:25,492 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:25,492 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:25,493 - sqlalchemy.engine.Engine - INFO - [cached since 81.16s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:25,493 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:26,488 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:26,489 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:26,490 - sqlalchemy.engine.Engine - INFO - [cached since 82.16s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:26,491 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:27,509 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:27,511 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:27,512 - sqlalchemy.engine.Engine - INFO - [cached since 83.18s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:27,514 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:28,533 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:28,534 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:28,534 - sqlalchemy.engine.Engine - INFO - [cached since 84.2s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:28,536 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:29,561 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:29,562 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:29,564 - sqlalchemy.engine.Engine - INFO - [cached since 85.23s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:29,567 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:30,570 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:30,572 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:30,572 - sqlalchemy.engine.Engine - INFO - [cached since 86.24s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:30,574 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:31,569 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:31,570 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:31,571 - sqlalchemy.engine.Engine - INFO - [cached since 87.24s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:31,572 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:32,593 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:32,595 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:32,595 - sqlalchemy.engine.Engine - INFO - [cached since 88.27s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:32,596 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:33,605 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:33,606 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:33,606 - sqlalchemy.engine.Engine - INFO - [cached since 89.28s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:33,607 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:34,616 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:34,616 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:34,617 - sqlalchemy.engine.Engine - INFO - [cached since 90.29s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:34,619 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:35,623 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:35,623 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:35,624 - sqlalchemy.engine.Engine - INFO - [cached since 91.29s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:35,625 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:36,623 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:36,623 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:36,629 - sqlalchemy.engine.Engine - INFO - [cached since 92.3s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:36,632 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:37,666 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:37,668 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:37,668 - sqlalchemy.engine.Engine - INFO - [cached since 93.34s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:37,669 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:38,644 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:38,644 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:38,644 - sqlalchemy.engine.Engine - INFO - [cached since 94.32s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:38,646 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:39,658 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:39,663 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:39,667 - sqlalchemy.engine.Engine - INFO - [cached since 95.34s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:39,674 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:40,702 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:40,705 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:40,706 - sqlalchemy.engine.Engine - INFO - [cached since 96.38s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:40,711 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:41,713 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:41,714 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:41,714 - sqlalchemy.engine.Engine - INFO - [cached since 97.38s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:41,716 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:42,729 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:42,730 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:42,730 - sqlalchemy.engine.Engine - INFO - [cached since 98.4s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:42,732 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:43,741 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:43,742 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:43,742 - sqlalchemy.engine.Engine - INFO - [cached since 99.41s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:43,744 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:44,722 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:44,723 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:44,723 - sqlalchemy.engine.Engine - INFO - [cached since 100.4s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:44,725 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:45,738 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:45,738 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:45,739 - sqlalchemy.engine.Engine - INFO - [cached since 101.4s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:45,740 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:46,743 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:46,748 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:46,751 - sqlalchemy.engine.Engine - INFO - [cached since 102.4s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:46,754 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:47,771 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:47,772 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:47,772 - sqlalchemy.engine.Engine - INFO - [cached since 103.4s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:47,775 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:48,795 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:48,796 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:48,796 - sqlalchemy.engine.Engine - INFO - [cached since 104.5s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:48,797 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:49,808 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:49,810 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:49,814 - sqlalchemy.engine.Engine - INFO - [cached since 105.5s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:49,815 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:50,833 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:50,834 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:50,834 - sqlalchemy.engine.Engine - INFO - [cached since 106.5s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:50,835 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:51,856 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:54:51,857 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:54:51,858 - sqlalchemy.engine.Engine - INFO - [cached since 107.5s ago] ('9f94e7aa-f000-40bf-b12c-ade670904f54',)
2025-04-30 10:54:51,859 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:54:52,292 - app - INFO - 应用程序关闭中...
2025-04-30 10:54:52,292 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 10:54:52,292 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 10:54:52,292 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 10:54:52,292 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 10:54:52,293 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 10:54:52,293 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 10:54:52,293 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 10:54:52,293 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 10:54:52,293 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 10:54:52,293 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 10:54:52,293 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:54:52,293 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:54:52,294 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:54:52,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:54:52,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:54:52,294 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 10:54:52,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:54:52,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:54:52,294 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-30 10:54:52,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:54:52,294 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:54:52,294 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-30 10:54:52,295 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:54:52,295 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:54:52,295 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 0
2025-04-30 10:54:52,295 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 10:54:52,295 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 10:54:52,295 - app - INFO - 增强版任务调度器已停止
2025-04-30 10:54:52,297 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 10:54:52,297 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 10:54:52,297 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 10:54:52,297 - data.session - INFO - 数据库连接已关闭
2025-04-30 10:56:17,190 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 10:56:17,248 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 10:56:17,250 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 10:56:17,972 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 10:56:18,031 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 10:56:18,033 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 10:56:18,091 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 10:56:18,141 - data.session - INFO - 正在初始化数据库...
2025-04-30 10:56:18,184 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 10:56:18,201 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:56:18,202 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:56:18,203 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:56:18,203 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:56:18,204 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:56:18,204 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:56:18,204 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:18,204 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 10:56:18,204 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:56:18,206 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 10:56:18,207 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:56:18,207 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 10:56:18,208 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:56:18,209 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 10:56:18,209 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:56:18,210 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 10:56:18,210 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:56:18,211 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 10:56:18,211 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:56:18,212 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 10:56:18,212 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:56:18,215 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 10:56:18,216 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:56:18,217 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 10:56:18,217 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:56:18,218 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 10:56:18,218 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:56:18,221 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 10:56:18,221 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 10:56:18,222 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:18,223 - data.session - INFO - 数据库表初始化完成
2025-04-30 10:56:18,586 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 10:56:18,586 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 10:56:18,586 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 10:56:18,586 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 10:56:18,587 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 10:56:18,587 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 10:56:18,587 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 10:56:18,587 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 10:56:18,587 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 10:56:18,588 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 10:56:18,588 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:56:18,588 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 10:56:18,588 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 10:56:18,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:56:18,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:56:18,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:56:18,591 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:56:18,591 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:56:18,591 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 10:56:18,591 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 10:56:18,592 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:56:18,592 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 10:56:18,593 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:56:18,593 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 10:56:18,593 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:56:18,594 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 10:56:18,594 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 10:56:18,594 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:18,603 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 10:56:18,604 - sqlalchemy.engine.Engine - INFO - [generated in 0.00052s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 10:56:18,604 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 10:56:18,605 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:18,605 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 10:56:18,605 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 10:56:18,606 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 10:56:18,606 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:18,608 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 10:56:18,608 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 10:56:18,609 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:18,609 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 10:56:18,610 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 10:56:18,610 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 10:56:18,611 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 10:56:18,611 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 10:56:18,611 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:18,612 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:56:18,612 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 56, 18, 606454))
2025-04-30 10:56:18,613 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:22,239 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 10:56:22,242 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:22,248 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:56:22,249 - sqlalchemy.engine.Engine - INFO - [generated in 0.00068s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:56:22,250 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:22,254 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:22,257 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:56:22,258 - sqlalchemy.engine.Engine - INFO - [cached since 0.009809s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:56:22,259 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:22,261 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 10:56:22,261 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 10:56:22,261 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 10:56:22,263 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:22,265 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 10:56:22,267 - sqlalchemy.engine.Engine - INFO - [generated in 0.00151s] (None, datetime.datetime(2025, 4, 30, 10, 56, 22, 265139), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 10:56:22,271 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:22,285 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:22,288 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:56:22,288 - sqlalchemy.engine.Engine - INFO - [cached since 0.04033s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:56:22,292 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:56:22,297 - sqlalchemy.engine.Engine - INFO - [generated in 0.00503s] ('5de15d89-83ed-4cb2-ada2-3ade5e96a02d', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 10, 56, 22, 261069), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.4", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 10, 56, 22, 292124), datetime.datetime(2025, 4, 30, 10, 56, 22, 292124), 0)
2025-04-30 10:56:22,300 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:22,308 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:22,314 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:22,318 - sqlalchemy.engine.Engine - INFO - [generated in 0.00404s] ('5de15d89-83ed-4cb2-ada2-3ade5e96a02d',)
2025-04-30 10:56:22,320 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:22,321 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 5de15d89-83ed-4cb2-ada2-3ade5e96a02d (优先级 1) 添加到队列 0
2025-04-30 10:56:22,330 - services.sync_service - INFO - 正在同步创建任务到天风系统: 5de15d89-83ed-4cb2-ada2-3ade5e96a02d
2025-04-30 10:56:22,330 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"5de15d89-83ed-4cb2-ada2-3ade5e96a02d","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 10:56:22","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 10:56:22,360 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 5de15d89-83ed-4cb2-ada2-3ade5e96a02d, 优先级: 1
2025-04-30 10:56:22,362 - services.execution.task_executor - DEBUG - 任务 5de15d89-83ed-4cb2-ada2-3ade5e96a02d 设置超时时间: 3600秒
2025-04-30 10:56:22,362 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:22,365 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:22,368 - sqlalchemy.engine.Engine - INFO - [cached since 0.05442s ago] ('5de15d89-83ed-4cb2-ada2-3ade5e96a02d',)
2025-04-30 10:56:22,369 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:56:22,372 - sqlalchemy.engine.Engine - INFO - [cached since 0.1246s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:56:22,376 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:22,377 - sqlalchemy.engine.Engine - INFO - [generated in 0.00094s] (datetime.datetime(2025, 4, 30, 10, 56, 22, 376124), datetime.datetime(2025, 4, 30, 10, 56, 22, 376124), '5de15d89-83ed-4cb2-ada2-3ade5e96a02d')
2025-04-30 10:56:22,382 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:22,389 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:22,392 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:22,392 - sqlalchemy.engine.Engine - INFO - [generated in 0.00070s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 56, 22, 392504), '5de15d89-83ed-4cb2-ada2-3ade5e96a02d')
2025-04-30 10:56:22,393 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:22,399 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 10:56:22,400 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:22,410 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:56:22,412 - sqlalchemy.engine.Engine - INFO - [generated in 0.00144s] ('fb1e4e44-8f62-404f-881d-59ac2af8bcb3', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '5de15d89-83ed-4cb2-ada2-3ade5e96a02d', datetime.datetime(2025, 4, 30, 10, 56, 22, 399887), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 10, 56, 22, 410991), datetime.datetime(2025, 4, 30, 10, 56, 22, 410991), 0)
2025-04-30 10:56:22,415 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:22,424 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:22,433 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 10:56:22,434 - sqlalchemy.engine.Engine - INFO - [generated in 0.00127s] ('fb1e4e44-8f62-404f-881d-59ac2af8bcb3',)
2025-04-30 10:56:22,436 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 10:56:22,437 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 10:56:22,439 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 10:56:22,440 - sqlalchemy.engine.Engine - INFO - [generated in 0.00083s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 10, 56, 22, 439156), 'fb1e4e44-8f62-404f-881d-59ac2af8bcb3')
2025-04-30 10:56:22,442 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:22,450 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 10:56:22,451 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 10:56:22,451 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 10:56:22,453 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:22,453 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:56:22,454 - sqlalchemy.engine.Engine - INFO - [cached since 0.04317s ago] ('4a884408-e4d8-4a6c-98b6-6ab82e449582', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '5de15d89-83ed-4cb2-ada2-3ade5e96a02d', datetime.datetime(2025, 4, 30, 10, 56, 22, 451648), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 10, 56, 22, 453641), datetime.datetime(2025, 4, 30, 10, 56, 22, 453641), 0)
2025-04-30 10:56:22,454 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:22,461 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 4a884408-e4d8-4a6c-98b6-6ab82e449582
2025-04-30 10:56:22,461 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:22,462 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 10:56:22,463 - sqlalchemy.engine.Engine - INFO - [cached since 0.03014s ago] ('4a884408-e4d8-4a6c-98b6-6ab82e449582',)
2025-04-30 10:56:22,464 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 10:56:22,465 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 10:56:22,466 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 10:56:22,467 - sqlalchemy.engine.Engine - INFO - [cached since 0.02741s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 10, 56, 22, 466038), '4a884408-e4d8-4a6c-98b6-6ab82e449582')
2025-04-30 10:56:22,468 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:22,476 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 10:56:22,476 - services.sync_service - INFO - 正在创建选择AMR任务: 5de15d89-83ed-4cb2-ada2-3ade5e96a02d, 站点: TK01
2025-04-30 10:56:23,354 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:23,355 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:23,356 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] ('5de15d89-83ed-4cb2-ada2-3ade5e96a02d',)
2025-04-30 10:56:23,357 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:24,367 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:24,368 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:24,368 - sqlalchemy.engine.Engine - INFO - [cached since 1.013s ago] ('5de15d89-83ed-4cb2-ada2-3ade5e96a02d',)
2025-04-30 10:56:24,370 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:24,901 - services.sync_service - WARNING - 为任务选择AMR失败: 5de15d89-83ed-4cb2-ada2-3ade5e96a02d此天风任务id不存在
2025-04-30 10:56:24,903 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:24,907 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:56:24,910 - sqlalchemy.engine.Engine - INFO - [generated in 0.00345s] ('3a4ec3ba-e700-46b1-a93a-3bd5cd599de9', 3, '{"success": false, "message": "选择执行机器人失败: 5de15d89-83ed-4cb2-ada2-3ade5e96a02d此天风任务id不存在", "code": 400, "result": null, "timestamp": 1745981783503}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '5de15d89-83ed-4cb2-ada2-3ade5e96a02d', datetime.datetime(2025, 4, 30, 10, 56, 24, 907751), datetime.datetime(2025, 4, 30, 10, 56, 24, 907751), 0)
2025-04-30 10:56:24,911 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:24,934 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人失败: 5de15d89-83ed-4cb2-ada2-3ade5e96a02d此天风任务id不存在
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 759, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 10:56:24,936 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:24,938 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 10:56:24,941 - sqlalchemy.engine.Engine - INFO - [cached since 2.508s ago] ('4a884408-e4d8-4a6c-98b6-6ab82e449582',)
2025-04-30 10:56:24,942 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 10:56:24,943 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 10:56:24,944 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 10:56:24,946 - sqlalchemy.engine.Engine - INFO - [generated in 0.00215s] (datetime.datetime(2025, 4, 30, 10, 56, 24, 944162), '选择执行机器人失败: 5de15d89-83ed-4cb2-ada2-3ade5e96a02d此天风任务id不存在', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人失败: 5de15d89-83ed-4cb2-ada2-3ade5e96a02d此天风任务id不存在', datetime.datetime(2025, 4, 30, 10, 56, 24, 944162), '4a884408-e4d8-4a6c-98b6-6ab82e449582')
2025-04-30 10:56:24,950 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:24,959 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:24,961 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:56:24,965 - sqlalchemy.engine.Engine - INFO - [cached since 0.05792s ago] ('8327fa84-1da0-48a2-a5f9-2a9f15bb9676', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人失败: 5de15d89-83ed-4cb2-ada2-3ade5e96a02d此天风任务id不存在", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '5de15d89-83ed-4cb2-ada2-3ade5e96a02d', datetime.datetime(2025, 4, 30, 10, 56, 24, 961156), datetime.datetime(2025, 4, 30, 10, 56, 24, 961156), 0)
2025-04-30 10:56:24,970 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:24,979 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:24,983 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 10:56:24,986 - sqlalchemy.engine.Engine - INFO - [cached since 2.553s ago] ('fb1e4e44-8f62-404f-881d-59ac2af8bcb3',)
2025-04-30 10:56:24,990 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 10:56:24,992 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 10:56:24,993 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 10:56:24,994 - sqlalchemy.engine.Engine - INFO - [cached since 0.05118s ago] (datetime.datetime(2025, 4, 30, 10, 56, 24, 993828), '子块 1 执行失败: 选择执行机器人失败: 5de15d89-83ed-4cb2-ada2-3ade5e96a02d此天风任务id不存在', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人失败: 5de15d89-83ed-4cb2-ada2-3ade5e96a02d此天风任务id不存在', datetime.datetime(2025, 4, 30, 10, 56, 24, 993828), 'fb1e4e44-8f62-404f-881d-59ac2af8bcb3')
2025-04-30 10:56:25,000 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:25,013 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:25,016 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:25,018 - sqlalchemy.engine.Engine - INFO - [generated in 0.00214s] (datetime.datetime(2025, 4, 30, 10, 56, 25, 12879), '子块 1 执行失败: 选择执行机器人失败: 5de15d89-83ed-4cb2-ada2-3ade5e96a02d此天风任务id不存在', <TaskStatus.FAILED: 2000>, 2623, 1, datetime.datetime(2025, 4, 30, 10, 56, 25, 16851), '5de15d89-83ed-4cb2-ada2-3ade5e96a02d')
2025-04-30 10:56:25,020 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:25,028 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 5de15d89-83ed-4cb2-ada2-3ade5e96a02d, 结果: False
2025-04-30 10:56:26,318 - services.sync_service - INFO - 成功同步任务到系统任务: 5de15d89-83ed-4cb2-ada2-3ade5e96a02d
2025-04-30 10:56:26,319 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 5de15d89-83ed-4cb2-ada2-3ade5e96a02d
2025-04-30 10:56:26,319 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 5de15d89-83ed-4cb2-ada2-3ade5e96a02d
2025-04-30 10:56:26,319 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 4.0803秒
2025-04-30 10:56:37,980 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 10:56:37,982 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:37,982 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:56:37,982 - sqlalchemy.engine.Engine - INFO - [cached since 15.73s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:56:37,983 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:37,984 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:37,984 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:56:37,985 - sqlalchemy.engine.Engine - INFO - [cached since 15.74s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:56:37,985 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:37,986 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 10:56:37,986 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 10:56:37,986 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 10:56:37,986 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:37,987 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 10:56:37,987 - sqlalchemy.engine.Engine - INFO - [cached since 15.72s ago] (None, datetime.datetime(2025, 4, 30, 10, 56, 37, 987128), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 10:56:37,987 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:38,001 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:38,001 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:56:38,001 - sqlalchemy.engine.Engine - INFO - [cached since 15.75s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:56:38,002 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:56:38,002 - sqlalchemy.engine.Engine - INFO - [cached since 15.71s ago] ('864e72d9-092a-46b3-812b-1982f87e9073', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 10, 56, 37, 986128), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.4", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 10, 56, 38, 2147), datetime.datetime(2025, 4, 30, 10, 56, 38, 2147), 0)
2025-04-30 10:56:38,003 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:38,012 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:38,012 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:38,012 - sqlalchemy.engine.Engine - INFO - [cached since 15.7s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:56:38,013 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:38,014 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 864e72d9-092a-46b3-812b-1982f87e9073 (优先级 1) 添加到队列 0
2025-04-30 10:56:38,014 - services.sync_service - INFO - 正在同步创建任务到天风系统: 864e72d9-092a-46b3-812b-1982f87e9073
2025-04-30 10:56:38,014 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"864e72d9-092a-46b3-812b-1982f87e9073","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 10:56:38","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 10:56:38,057 - services.sync_service - INFO - 成功同步任务到系统任务: 864e72d9-092a-46b3-812b-1982f87e9073
2025-04-30 10:56:38,058 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 864e72d9-092a-46b3-812b-1982f87e9073
2025-04-30 10:56:38,059 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 864e72d9-092a-46b3-812b-1982f87e9073
2025-04-30 10:56:38,059 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0789秒
2025-04-30 10:56:38,096 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 864e72d9-092a-46b3-812b-1982f87e9073, 优先级: 1
2025-04-30 10:56:38,096 - services.execution.task_executor - DEBUG - 任务 864e72d9-092a-46b3-812b-1982f87e9073 设置超时时间: 3600秒
2025-04-30 10:56:38,096 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:38,097 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:38,099 - sqlalchemy.engine.Engine - INFO - [cached since 15.79s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:56:38,102 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 10:56:38,103 - sqlalchemy.engine.Engine - INFO - [cached since 15.86s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 10:56:38,104 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:38,104 - sqlalchemy.engine.Engine - INFO - [cached since 15.73s ago] (datetime.datetime(2025, 4, 30, 10, 56, 38, 104613), datetime.datetime(2025, 4, 30, 10, 56, 38, 104613), '864e72d9-092a-46b3-812b-1982f87e9073')
2025-04-30 10:56:38,105 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:38,112 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:38,112 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:38,113 - sqlalchemy.engine.Engine - INFO - [cached since 15.72s ago] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 56, 38, 112611), '864e72d9-092a-46b3-812b-1982f87e9073')
2025-04-30 10:56:38,114 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:38,120 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 10:56:38,121 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:38,123 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:56:38,123 - sqlalchemy.engine.Engine - INFO - [cached since 15.71s ago] ('f2e45241-a52d-480e-a248-f39919982850', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '864e72d9-092a-46b3-812b-1982f87e9073', datetime.datetime(2025, 4, 30, 10, 56, 38, 120611), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 10, 56, 38, 123610), datetime.datetime(2025, 4, 30, 10, 56, 38, 123610), 0)
2025-04-30 10:56:38,124 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:38,131 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:38,132 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 10:56:38,132 - sqlalchemy.engine.Engine - INFO - [cached since 15.7s ago] ('f2e45241-a52d-480e-a248-f39919982850',)
2025-04-30 10:56:38,133 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 10:56:38,133 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 10:56:38,133 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 10:56:38,134 - sqlalchemy.engine.Engine - INFO - [cached since 15.69s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 10, 56, 38, 133611), 'f2e45241-a52d-480e-a248-f39919982850')
2025-04-30 10:56:38,135 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:38,140 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 10:56:38,141 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 10:56:38,141 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 10:56:38,141 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:38,142 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:56:38,142 - sqlalchemy.engine.Engine - INFO - [cached since 15.73s ago] ('4126a6e6-2b02-4fde-932e-9c1d05cd640f', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '864e72d9-092a-46b3-812b-1982f87e9073', datetime.datetime(2025, 4, 30, 10, 56, 38, 141613), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 10, 56, 38, 142612), datetime.datetime(2025, 4, 30, 10, 56, 38, 142612), 0)
2025-04-30 10:56:38,143 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:38,149 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 4126a6e6-2b02-4fde-932e-9c1d05cd640f
2025-04-30 10:56:38,149 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:38,150 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 10:56:38,150 - sqlalchemy.engine.Engine - INFO - [cached since 15.72s ago] ('4126a6e6-2b02-4fde-932e-9c1d05cd640f',)
2025-04-30 10:56:38,151 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 10:56:38,151 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 10:56:38,151 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 10:56:38,151 - sqlalchemy.engine.Engine - INFO - [cached since 15.71s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 10, 56, 38, 151598), '4126a6e6-2b02-4fde-932e-9c1d05cd640f')
2025-04-30 10:56:38,153 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:38,160 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 10:56:38,160 - services.sync_service - INFO - 正在创建选择AMR任务: 864e72d9-092a-46b3-812b-1982f87e9073, 站点: TK01
2025-04-30 10:56:38,179 - services.sync_service - INFO - 成功为任务选择AMR: 864e72d9-092a-46b3-812b-1982f87e9073, AMR: None
2025-04-30 10:56:38,180 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917412746283077633 的AMR选择结果
2025-04-30 10:56:38,180 - services.sync_service - INFO - 开始等待任务块 1917412746283077633 的AMR选择结果
2025-04-30 10:56:38,180 - services.sync_service - INFO - 正在获取任务块详情: 1917412746283077633
2025-04-30 10:56:38,230 - services.sync_service - INFO - 成功获取任务块详情: 1917412746283077633 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412746283077633', 'taskId': '1917412745767178242', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:56:37', 'updateTime': None}, 'timestamp': 1745981797220}
2025-04-30 10:56:38,231 - services.sync_service - DEBUG - 任务块 1917412746283077633 AMR选择未完成，已尝试 1 次
2025-04-30 10:56:38,735 - services.sync_service - INFO - 正在获取任务块详情: 1917412746283077633
2025-04-30 10:56:38,762 - services.sync_service - INFO - 成功获取任务块详情: 1917412746283077633 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412746283077633', 'taskId': '1917412745767178242', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:56:37', 'updateTime': None}, 'timestamp': 1745981797763}
2025-04-30 10:56:38,763 - services.sync_service - DEBUG - 任务块 1917412746283077633 AMR选择未完成，已尝试 2 次
2025-04-30 10:56:39,123 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:39,125 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:39,125 - sqlalchemy.engine.Engine - INFO - [cached since 15.77s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:56:39,127 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:39,278 - services.sync_service - INFO - 正在获取任务块详情: 1917412746283077633
2025-04-30 10:56:39,314 - services.sync_service - INFO - 成功获取任务块详情: 1917412746283077633 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412746283077633', 'taskId': '1917412745767178242', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:56:37', 'updateTime': None}, 'timestamp': 1745981798314}
2025-04-30 10:56:39,315 - services.sync_service - DEBUG - 任务块 1917412746283077633 AMR选择未完成，已尝试 3 次
2025-04-30 10:56:39,841 - services.sync_service - INFO - 正在获取任务块详情: 1917412746283077633
2025-04-30 10:56:39,871 - services.sync_service - INFO - 成功获取任务块详情: 1917412746283077633 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412746283077633', 'taskId': '1917412745767178242', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:56:37', 'updateTime': None}, 'timestamp': 1745981798858}
2025-04-30 10:56:39,871 - services.sync_service - DEBUG - 任务块 1917412746283077633 AMR选择未完成，已尝试 4 次
2025-04-30 10:56:40,135 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:40,137 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:40,140 - sqlalchemy.engine.Engine - INFO - [cached since 16.79s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:56:40,143 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:40,352 - services.sync_service - INFO - 正在获取任务块详情: 1917412746283077633
2025-04-30 10:56:40,424 - services.sync_service - INFO - 成功获取任务块详情: 1917412746283077633 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412746283077633', 'taskId': '1917412745767178242', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:56:37', 'updateTime': None}, 'timestamp': 1745981799372}
2025-04-30 10:56:40,424 - services.sync_service - DEBUG - 任务块 1917412746283077633 AMR选择未完成，已尝试 5 次
2025-04-30 10:56:40,944 - services.sync_service - INFO - 正在获取任务块详情: 1917412746283077633
2025-04-30 10:56:41,026 - services.sync_service - INFO - 成功获取任务块详情: 1917412746283077633 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412746283077633', 'taskId': '1917412745767178242', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:56:37', 'updateTime': None}, 'timestamp': 1745981800021}
2025-04-30 10:56:41,026 - services.sync_service - DEBUG - 任务块 1917412746283077633 AMR选择未完成，已尝试 6 次
2025-04-30 10:56:41,161 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:41,162 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:41,162 - sqlalchemy.engine.Engine - INFO - [cached since 17.81s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:56:41,167 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:41,522 - services.sync_service - INFO - 正在获取任务块详情: 1917412746283077633
2025-04-30 10:56:41,582 - services.sync_service - INFO - 成功获取任务块详情: 1917412746283077633 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412746283077633', 'taskId': '1917412745767178242', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:56:37', 'updateTime': None}, 'timestamp': 1745981800582}
2025-04-30 10:56:41,584 - services.sync_service - DEBUG - 任务块 1917412746283077633 AMR选择未完成，已尝试 7 次
2025-04-30 10:56:42,090 - services.sync_service - INFO - 正在获取任务块详情: 1917412746283077633
2025-04-30 10:56:42,131 - services.sync_service - INFO - 成功获取任务块详情: 1917412746283077633 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412746283077633', 'taskId': '1917412745767178242', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:56:37', 'updateTime': None}, 'timestamp': 1745981801121}
2025-04-30 10:56:42,132 - services.sync_service - DEBUG - 任务块 1917412746283077633 AMR选择未完成，已尝试 8 次
2025-04-30 10:56:42,168 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:42,173 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:42,174 - sqlalchemy.engine.Engine - INFO - [cached since 18.82s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:56:42,176 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:42,646 - services.sync_service - INFO - 正在获取任务块详情: 1917412746283077633
2025-04-30 10:56:42,662 - services.sync_service - INFO - 成功获取任务块详情: 1917412746283077633 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412746283077633', 'taskId': '1917412745767178242', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:56:37', 'updateTime': None}, 'timestamp': 1745981801662}
2025-04-30 10:56:42,663 - services.sync_service - DEBUG - 任务块 1917412746283077633 AMR选择未完成，已尝试 9 次
2025-04-30 10:56:43,157 - services.sync_service - INFO - 正在获取任务块详情: 1917412746283077633
2025-04-30 10:56:43,174 - services.sync_service - INFO - 成功获取任务块详情: 1917412746283077633 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412746283077633', 'taskId': '1917412745767178242', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:56:37', 'updateTime': None}, 'timestamp': 1745981802174}
2025-04-30 10:56:43,174 - services.sync_service - INFO - 任务块 1917412746283077633 AMR选择未完成(amrId/appointAmrId/appointAmrGroupId均为空)，已尝试 10 次，继续等待...
2025-04-30 10:56:43,175 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:43,175 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:43,175 - sqlalchemy.engine.Engine - INFO - [cached since 19.82s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:56:43,176 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:43,686 - services.sync_service - INFO - 正在获取任务块详情: 1917412746283077633
2025-04-30 10:56:43,819 - services.sync_service - INFO - 成功获取任务块详情: 1917412746283077633 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412746283077633', 'taskId': '1917412745767178242', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:56:37', 'updateTime': None}, 'timestamp': 1745981802762}
2025-04-30 10:56:43,821 - services.sync_service - DEBUG - 任务块 1917412746283077633 AMR选择未完成，已尝试 11 次
2025-04-30 10:56:44,198 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:44,200 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:44,203 - sqlalchemy.engine.Engine - INFO - [cached since 20.85s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:56:44,207 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:44,338 - services.sync_service - INFO - 正在获取任务块详情: 1917412746283077633
2025-04-30 10:56:44,437 - services.sync_service - INFO - 成功获取任务块详情: 1917412746283077633 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412746283077633', 'taskId': '1917412745767178242', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 10:56:37', 'updateTime': '2025-04-30 10:56:43'}, 'timestamp': 1745981803438}
2025-04-30 10:56:44,439 - services.sync_service - INFO - 任务块 1917412746283077633 已选择AMR: 1912328602264645634，共尝试 12 次
2025-04-30 10:56:44,441 - services.execution.handlers.robot_scheduling - INFO - 准备更新任务 864e72d9-092a-46b3-812b-1982f87e9073 的机器人ID: 1912328602264645634
2025-04-30 10:56:44,443 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:44,444 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.agv_id 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:44,445 - sqlalchemy.engine.Engine - INFO - [generated in 0.00081s] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:56:44,450 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET agv_id=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:44,451 - sqlalchemy.engine.Engine - INFO - [generated in 0.00128s] ('1912328602264645634', datetime.datetime(2025, 4, 30, 10, 56, 44, 450270), '864e72d9-092a-46b3-812b-1982f87e9073')
2025-04-30 10:56:44,453 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:44,460 - services.execution.handlers.robot_scheduling - INFO - 成功更新任务记录 864e72d9-092a-46b3-812b-1982f87e9073 的agv_id字段: 1912328602264645634
2025-04-30 10:56:44,461 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 10:56:44,461 - services.execution.handlers.robot_scheduling - INFO - 块 b1(ID:1) 有 1 个子块
2025-04-30 10:56:44,462 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: [2]
2025-04-30 10:56:44,463 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 10:56:44,463 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 1 个
2025-04-30 10:56:44,463 - services.execution.handlers.robot_scheduling - INFO - 1. b2(ID:2, 类型:CAgvOperationBp, 关系:direct_child)
2025-04-30 10:56:44,465 - services.execution.handlers.robot_scheduling - INFO - 开始执行选择机器人块 b1 的子块
2025-04-30 10:56:44,465 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-30 10:56:44,466 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 1 个子块
2025-04-30 10:56:44,467 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b2, ID: 2, 类型: CAgvOperationBp
2025-04-30 10:56:44,469 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:44,471 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 10:56:44,472 - sqlalchemy.engine.Engine - INFO - [cached since 22.06s ago] ('3ba22084-310e-4dfd-b925-6b851cbf89ed', 'b2', '2', '', '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"targetSiteLabel": "PT02", "scriptName": "JackUnload"}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917412746283077633"}', 'CAgvOperationBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '864e72d9-092a-46b3-812b-1982f87e9073', datetime.datetime(2025, 4, 30, 10, 56, 44, 467171), <TaskBlockRecordStatus.RUNNING: 1001>, '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917412746283077633"}', 1, datetime.datetime(2025, 4, 30, 10, 56, 44, 471158), datetime.datetime(2025, 4, 30, 10, 56, 44, 471158), 0)
2025-04-30 10:56:44,473 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:44,485 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 3ba22084-310e-4dfd-b925-6b851cbf89ed
2025-04-30 10:56:44,485 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:44,487 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 10:56:44,491 - sqlalchemy.engine.Engine - INFO - [cached since 22.06s ago] ('3ba22084-310e-4dfd-b925-6b851cbf89ed',)
2025-04-30 10:56:44,497 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-30 10:56:44,498 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-30 10:56:44,500 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 10:56:44,501 - sqlalchemy.engine.Engine - INFO - [generated in 0.00121s] ('{"selectedAgvId": "1912328602264645634"}', '执行中', "{'agv_for_block_2': '1912328602264645634', 'agv_for_b2': '1912328602264645634', 'agv_task_id_2': '1917412746283077633'}", '{"blocks": {"b2": {"selectedAgvId": "1912328602264645634"}}}', '执行中', datetime.datetime(2025, 4, 30, 10, 56, 44, 500139), '3ba22084-310e-4dfd-b925-6b851cbf89ed')
2025-04-30 10:56:44,503 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:44,513 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-30 10:56:44,513 - services.execution.handlers.robot_scheduling - INFO - 找到块 b2(ID:2) 专用的机器人ID: 1912328602264645634
2025-04-30 10:56:44,513 - services.execution.handlers.robot_scheduling - INFO - 执行机器人通用动作，块 b2(ID:2) 使用机器人: 1912328602264645634, 目标站点: PT02
2025-04-30 10:56:44,513 - services.sync_service - INFO - 正在为任务添加动作: 1917412746283077633, 站点: PT02, 动作: JackUnload
2025-04-30 10:56:44,591 - services.sync_service - INFO - 成功为任务添加动作: 1917412746283077633, 站点: PT02, 动作: JackUnload
2025-04-30 10:56:44,592 - services.sync_service - INFO - 开始等待任务块 1917412773168566274 的动作完成
2025-04-30 10:56:44,593 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:44,608 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981803610}
2025-04-30 10:56:44,609 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 1 次
2025-04-30 10:56:45,121 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:45,173 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981804167}
2025-04-30 10:56:45,173 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 2 次
2025-04-30 10:56:45,230 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:45,231 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:45,234 - sqlalchemy.engine.Engine - INFO - [cached since 21.88s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:56:45,238 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:45,681 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:45,737 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981804739}
2025-04-30 10:56:45,738 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 3 次
2025-04-30 10:56:46,225 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:46,227 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:46,233 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:46,235 - sqlalchemy.engine.Engine - INFO - [cached since 22.88s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:56:46,236 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:46,349 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981805333}
2025-04-30 10:56:46,350 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 4 次
2025-04-30 10:56:46,861 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:46,945 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981805915}
2025-04-30 10:56:46,947 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 5 次
2025-04-30 10:56:47,252 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:47,253 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:47,253 - sqlalchemy.engine.Engine - INFO - [cached since 23.9s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:56:47,255 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:47,469 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:47,578 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981806560}
2025-04-30 10:56:47,578 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 6 次
2025-04-30 10:56:48,066 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:48,185 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981807132}
2025-04-30 10:56:48,186 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 7 次
2025-04-30 10:56:48,268 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:48,270 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:48,271 - sqlalchemy.engine.Engine - INFO - [cached since 24.92s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:56:48,272 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:48,690 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:48,779 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981807734}
2025-04-30 10:56:48,781 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 8 次
2025-04-30 10:56:49,294 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:49,296 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:49,297 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:49,298 - sqlalchemy.engine.Engine - INFO - [cached since 25.94s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:56:49,300 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:49,416 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981808374}
2025-04-30 10:56:49,416 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 9 次
2025-04-30 10:56:49,903 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:50,016 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981808977}
2025-04-30 10:56:50,018 - services.sync_service - INFO - 任务块 1917412773168566274 动作未完成(actionStatus为空)，已尝试 10 次，继续等待...
2025-04-30 10:56:50,320 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:50,323 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:50,324 - sqlalchemy.engine.Engine - INFO - [cached since 26.97s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:56:50,327 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:50,539 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:50,631 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981809598}
2025-04-30 10:56:50,632 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 11 次
2025-04-30 10:56:51,146 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:51,254 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981810221}
2025-04-30 10:56:51,254 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 12 次
2025-04-30 10:56:51,333 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:51,334 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:51,335 - sqlalchemy.engine.Engine - INFO - [cached since 27.98s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:56:51,335 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:51,753 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:51,796 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981810797}
2025-04-30 10:56:51,796 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 13 次
2025-04-30 10:56:52,280 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:52,342 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:52,343 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:52,343 - sqlalchemy.engine.Engine - INFO - [cached since 28.99s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:56:52,344 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:52,356 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981811322}
2025-04-30 10:56:52,356 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 14 次
2025-04-30 10:56:52,855 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:52,930 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981811930}
2025-04-30 10:56:52,932 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 15 次
2025-04-30 10:56:53,351 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:53,352 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:53,354 - sqlalchemy.engine.Engine - INFO - [cached since 30s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:56:53,357 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:53,443 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:53,530 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981812518}
2025-04-30 10:56:53,531 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 16 次
2025-04-30 10:56:54,035 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:54,109 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981813078}
2025-04-30 10:56:54,109 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 17 次
2025-04-30 10:56:54,375 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:54,376 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:54,376 - sqlalchemy.engine.Engine - INFO - [cached since 31.02s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:56:54,377 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:54,622 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:54,643 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981813644}
2025-04-30 10:56:54,643 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 18 次
2025-04-30 10:56:55,154 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:55,232 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981814212}
2025-04-30 10:56:55,232 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 19 次
2025-04-30 10:56:55,401 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:55,403 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:55,403 - sqlalchemy.engine.Engine - INFO - [cached since 32.05s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:56:55,406 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:55,732 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:55,812 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981814785}
2025-04-30 10:56:55,814 - services.sync_service - INFO - 任务块 1917412773168566274 动作未完成(actionStatus为空)，已尝试 20 次，继续等待...
2025-04-30 10:56:56,336 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:56,380 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981815379}
2025-04-30 10:56:56,381 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 21 次
2025-04-30 10:56:56,397 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:56,399 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:56,400 - sqlalchemy.engine.Engine - INFO - [cached since 33.04s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:56:56,401 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:56,907 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:56,959 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981815927}
2025-04-30 10:56:56,959 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 22 次
2025-04-30 10:56:57,420 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:57,423 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:57,426 - sqlalchemy.engine.Engine - INFO - [cached since 34.07s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:56:57,430 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:57,466 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:57,513 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981816500}
2025-04-30 10:56:57,514 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 23 次
2025-04-30 10:56:58,026 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:58,092 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981817048}
2025-04-30 10:56:58,093 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 24 次
2025-04-30 10:56:58,446 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:58,448 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:58,450 - sqlalchemy.engine.Engine - INFO - [cached since 35.09s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:56:58,451 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:58,600 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:58,782 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981817698}
2025-04-30 10:56:58,783 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 25 次
2025-04-30 10:56:59,303 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:59,374 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981818376}
2025-04-30 10:56:59,377 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 26 次
2025-04-30 10:56:59,458 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:56:59,466 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:56:59,466 - sqlalchemy.engine.Engine - INFO - [cached since 36.11s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:56:59,468 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:56:59,907 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:56:59,996 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981818968}
2025-04-30 10:56:59,998 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 27 次
2025-04-30 10:57:00,469 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:00,470 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:00,470 - sqlalchemy.engine.Engine - INFO - [cached since 37.12s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:00,472 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:00,472 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:00,581 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981819544}
2025-04-30 10:57:00,581 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 28 次
2025-04-30 10:57:01,095 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:01,121 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981820121}
2025-04-30 10:57:01,122 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 29 次
2025-04-30 10:57:01,498 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:01,499 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:01,499 - sqlalchemy.engine.Engine - INFO - [cached since 38.14s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:01,502 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:01,636 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:01,758 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981820757}
2025-04-30 10:57:01,760 - services.sync_service - INFO - 任务块 1917412773168566274 动作未完成(actionStatus为空)，已尝试 30 次，继续等待...
2025-04-30 10:57:02,261 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:02,313 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981821309}
2025-04-30 10:57:02,314 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 31 次
2025-04-30 10:57:02,525 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:02,526 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:02,527 - sqlalchemy.engine.Engine - INFO - [cached since 39.17s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:02,530 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:02,822 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:02,850 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981821852}
2025-04-30 10:57:02,851 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 32 次
2025-04-30 10:57:03,365 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:03,475 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981822408}
2025-04-30 10:57:03,476 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 33 次
2025-04-30 10:57:03,535 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:03,536 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:03,537 - sqlalchemy.engine.Engine - INFO - [cached since 40.18s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:03,538 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:03,985 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:04,112 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981823111}
2025-04-30 10:57:04,113 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 34 次
2025-04-30 10:57:04,531 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:04,532 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:04,534 - sqlalchemy.engine.Engine - INFO - [cached since 41.18s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:04,536 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:04,621 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:04,652 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981823654}
2025-04-30 10:57:04,653 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 35 次
2025-04-30 10:57:05,171 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:05,217 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981824204}
2025-04-30 10:57:05,220 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 36 次
2025-04-30 10:57:05,540 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:05,542 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:05,546 - sqlalchemy.engine.Engine - INFO - [cached since 42.19s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:05,548 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:05,741 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:05,799 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981824799}
2025-04-30 10:57:05,802 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 37 次
2025-04-30 10:57:06,320 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:06,396 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981825399}
2025-04-30 10:57:06,402 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 38 次
2025-04-30 10:57:06,566 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:06,567 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:06,567 - sqlalchemy.engine.Engine - INFO - [cached since 43.21s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:06,569 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:06,894 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:07,011 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981825984}
2025-04-30 10:57:07,012 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 39 次
2025-04-30 10:57:07,512 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:07,561 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981826556}
2025-04-30 10:57:07,562 - services.sync_service - INFO - 任务块 1917412773168566274 动作未完成(actionStatus为空)，已尝试 40 次，继续等待...
2025-04-30 10:57:07,591 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:07,594 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:07,595 - sqlalchemy.engine.Engine - INFO - [cached since 44.24s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:07,596 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:08,075 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:08,135 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981827118}
2025-04-30 10:57:08,136 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 41 次
2025-04-30 10:57:08,618 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:08,619 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:08,620 - sqlalchemy.engine.Engine - INFO - [cached since 45.27s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:08,622 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:08,648 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:08,693 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981827691}
2025-04-30 10:57:08,694 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 42 次
2025-04-30 10:57:09,211 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:09,234 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981828230}
2025-04-30 10:57:09,237 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 43 次
2025-04-30 10:57:09,604 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:09,604 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:09,606 - sqlalchemy.engine.Engine - INFO - [cached since 46.25s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:09,607 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:09,763 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:09,808 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981828806}
2025-04-30 10:57:09,808 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 44 次
2025-04-30 10:57:10,304 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:10,394 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981829354}
2025-04-30 10:57:10,395 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 45 次
2025-04-30 10:57:10,615 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:10,620 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:10,623 - sqlalchemy.engine.Engine - INFO - [cached since 47.27s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:10,628 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:10,910 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:10,962 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981829945}
2025-04-30 10:57:10,964 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 46 次
2025-04-30 10:57:11,470 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:11,572 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981830528}
2025-04-30 10:57:11,573 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 47 次
2025-04-30 10:57:11,657 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:11,660 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:11,660 - sqlalchemy.engine.Engine - INFO - [cached since 48.3s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:11,662 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:12,092 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:12,207 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981831186}
2025-04-30 10:57:12,207 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 48 次
2025-04-30 10:57:12,670 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:12,671 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:12,672 - sqlalchemy.engine.Engine - INFO - [cached since 49.32s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:12,675 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:12,716 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:12,794 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981831774}
2025-04-30 10:57:12,795 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 49 次
2025-04-30 10:57:13,301 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:13,412 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981832388}
2025-04-30 10:57:13,414 - services.sync_service - INFO - 任务块 1917412773168566274 动作未完成(actionStatus为空)，已尝试 50 次，继续等待...
2025-04-30 10:57:13,691 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:13,693 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:13,693 - sqlalchemy.engine.Engine - INFO - [cached since 50.34s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:13,695 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:13,923 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:13,996 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981832998}
2025-04-30 10:57:13,998 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 51 次
2025-04-30 10:57:14,482 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:14,556 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981833557}
2025-04-30 10:57:14,558 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 52 次
2025-04-30 10:57:14,701 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:14,703 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:14,703 - sqlalchemy.engine.Engine - INFO - [cached since 51.35s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:14,704 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:15,076 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:15,156 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981834156}
2025-04-30 10:57:15,159 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 53 次
2025-04-30 10:57:15,654 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:15,683 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981834682}
2025-04-30 10:57:15,685 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 54 次
2025-04-30 10:57:15,730 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:15,731 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:15,732 - sqlalchemy.engine.Engine - INFO - [cached since 52.38s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:15,734 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:16,198 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:16,288 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981835289}
2025-04-30 10:57:16,291 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 55 次
2025-04-30 10:57:16,729 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:16,731 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:16,731 - sqlalchemy.engine.Engine - INFO - [cached since 53.38s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:16,733 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:16,807 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:16,887 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981835865}
2025-04-30 10:57:16,888 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 56 次
2025-04-30 10:57:17,397 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:17,514 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981836457}
2025-04-30 10:57:17,518 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 57 次
2025-04-30 10:57:17,724 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:17,724 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:17,725 - sqlalchemy.engine.Engine - INFO - [cached since 54.37s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:17,725 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:18,034 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:18,104 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981837093}
2025-04-30 10:57:18,104 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 58 次
2025-04-30 10:57:18,607 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:18,609 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 10:57:18,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:57:18,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:57:18,612 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:57:18,612 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 10:57:18,613 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 10:57:18,614 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 10:57:18,614 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:57:18,614 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:57:18,614 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:18,614 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 10:57:18,616 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 9, 57, 18, 610206))
2025-04-30 10:57:18,617 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 10:57:18,617 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 10:57:18,617 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 10:57:18,617 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 10:57:18,618 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:57:18,618 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:57:18,618 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 10:57:18,618 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 10:57:18,626 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:18,627 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 10:57:18,643 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981837639}
2025-04-30 10:57:18,644 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 59 次
2025-04-30 10:57:18,734 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:18,735 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:18,736 - sqlalchemy.engine.Engine - INFO - [cached since 55.38s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:18,738 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:19,168 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:19,347 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981838267}
2025-04-30 10:57:19,348 - services.sync_service - INFO - 任务块 1917412773168566274 动作未完成(actionStatus为空)，已尝试 60 次，继续等待...
2025-04-30 10:57:19,723 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:19,724 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:19,725 - sqlalchemy.engine.Engine - INFO - [cached since 56.37s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:19,726 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:19,862 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:19,915 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981838914}
2025-04-30 10:57:19,916 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 61 次
2025-04-30 10:57:20,409 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:20,478 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981839451}
2025-04-30 10:57:20,479 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 62 次
2025-04-30 10:57:20,724 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:20,725 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:20,727 - sqlalchemy.engine.Engine - INFO - [cached since 57.37s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:20,732 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:20,985 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:21,077 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981840044}
2025-04-30 10:57:21,079 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 63 次
2025-04-30 10:57:21,598 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:21,668 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981840670}
2025-04-30 10:57:21,669 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 64 次
2025-04-30 10:57:21,721 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:21,721 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:21,722 - sqlalchemy.engine.Engine - INFO - [cached since 58.37s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:21,723 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:22,163 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:22,219 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981841221}
2025-04-30 10:57:22,220 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 65 次
2025-04-30 10:57:22,709 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:22,740 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:22,740 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:22,740 - sqlalchemy.engine.Engine - INFO - [cached since 59.39s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:22,743 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:22,752 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981841753}
2025-04-30 10:57:22,753 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 66 次
2025-04-30 10:57:23,254 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:23,309 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981842308}
2025-04-30 10:57:23,310 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 67 次
2025-04-30 10:57:23,742 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:23,745 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:23,749 - sqlalchemy.engine.Engine - INFO - [cached since 60.39s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:23,754 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:23,805 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:23,952 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981842889}
2025-04-30 10:57:23,952 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 68 次
2025-04-30 10:57:24,460 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:24,555 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981843505}
2025-04-30 10:57:24,557 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 69 次
2025-04-30 10:57:24,772 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:24,773 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:24,774 - sqlalchemy.engine.Engine - INFO - [cached since 61.42s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:24,776 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:25,070 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:25,108 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981844100}
2025-04-30 10:57:25,110 - services.sync_service - INFO - 任务块 1917412773168566274 动作未完成(actionStatus为空)，已尝试 70 次，继续等待...
2025-04-30 10:57:25,616 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:25,678 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981844680}
2025-04-30 10:57:25,678 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 71 次
2025-04-30 10:57:25,786 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:25,788 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:25,789 - sqlalchemy.engine.Engine - INFO - [cached since 62.43s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:25,791 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:26,193 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:26,236 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981845239}
2025-04-30 10:57:26,237 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 72 次
2025-04-30 10:57:26,734 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:26,750 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981845753}
2025-04-30 10:57:26,752 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 73 次
2025-04-30 10:57:26,796 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:26,801 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:26,801 - sqlalchemy.engine.Engine - INFO - [cached since 63.45s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:26,802 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:27,259 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:27,335 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981846333}
2025-04-30 10:57:27,336 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 74 次
2025-04-30 10:57:27,808 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:27,816 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:27,861 - sqlalchemy.engine.Engine - INFO - [cached since 64.51s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:27,863 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:27,866 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:27,923 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981846886}
2025-04-30 10:57:27,940 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 75 次
2025-04-30 10:57:28,448 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:28,567 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981847497}
2025-04-30 10:57:28,568 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 76 次
2025-04-30 10:57:28,871 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:28,875 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:28,878 - sqlalchemy.engine.Engine - INFO - [cached since 65.52s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:28,886 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:29,088 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:29,146 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981848132}
2025-04-30 10:57:29,147 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 77 次
2025-04-30 10:57:29,663 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:29,715 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981848698}
2025-04-30 10:57:29,716 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 78 次
2025-04-30 10:57:29,881 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:29,882 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:29,882 - sqlalchemy.engine.Engine - INFO - [cached since 66.53s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:29,883 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:30,224 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:30,265 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981849242}
2025-04-30 10:57:30,266 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 79 次
2025-04-30 10:57:30,770 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:30,813 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981849815}
2025-04-30 10:57:30,814 - services.sync_service - INFO - 任务块 1917412773168566274 动作未完成(actionStatus为空)，已尝试 80 次，继续等待...
2025-04-30 10:57:30,896 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:30,897 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:30,898 - sqlalchemy.engine.Engine - INFO - [cached since 67.54s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:30,901 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:31,335 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:31,547 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981850444}
2025-04-30 10:57:31,550 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 81 次
2025-04-30 10:57:31,914 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:31,915 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:31,916 - sqlalchemy.engine.Engine - INFO - [cached since 68.56s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:31,920 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:32,072 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:32,120 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981851114}
2025-04-30 10:57:32,121 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 82 次
2025-04-30 10:57:32,613 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:32,635 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981851637}
2025-04-30 10:57:32,636 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 83 次
2025-04-30 10:57:32,943 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:32,944 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:32,945 - sqlalchemy.engine.Engine - INFO - [cached since 69.59s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:32,949 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:33,129 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:33,185 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981852168}
2025-04-30 10:57:33,185 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 84 次
2025-04-30 10:57:33,626 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 10:57:33,628 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:57:33,629 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:57:33,629 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 10:57:33,631 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 10:57:33,632 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 10:57:33,690 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:33,787 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981852765}
2025-04-30 10:57:33,788 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 85 次
2025-04-30 10:57:33,972 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:33,973 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:33,974 - sqlalchemy.engine.Engine - INFO - [cached since 70.62s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:33,976 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:34,311 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:34,362 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981853345}
2025-04-30 10:57:34,362 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 86 次
2025-04-30 10:57:34,866 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:34,966 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981853934}
2025-04-30 10:57:34,968 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 87 次
2025-04-30 10:57:34,995 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:34,996 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:34,998 - sqlalchemy.engine.Engine - INFO - [cached since 71.64s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:34,999 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:35,466 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:35,606 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981854559}
2025-04-30 10:57:35,607 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 88 次
2025-04-30 10:57:36,023 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:36,024 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:36,025 - sqlalchemy.engine.Engine - INFO - [cached since 72.67s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:36,026 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:36,116 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:36,140 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981855144}
2025-04-30 10:57:36,141 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 89 次
2025-04-30 10:57:36,662 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:36,701 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981855686}
2025-04-30 10:57:36,704 - services.sync_service - INFO - 任务块 1917412773168566274 动作未完成(actionStatus为空)，已尝试 90 次，继续等待...
2025-04-30 10:57:37,033 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:37,034 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:37,034 - sqlalchemy.engine.Engine - INFO - [cached since 73.68s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:37,035 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:37,218 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:37,288 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981856266}
2025-04-30 10:57:37,289 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 91 次
2025-04-30 10:57:37,796 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:37,855 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981856857}
2025-04-30 10:57:37,855 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 92 次
2025-04-30 10:57:38,047 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:38,049 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:38,050 - sqlalchemy.engine.Engine - INFO - [cached since 74.69s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:38,053 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:38,359 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:38,455 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981857432}
2025-04-30 10:57:38,456 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 93 次
2025-04-30 10:57:38,979 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:39,006 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981858007}
2025-04-30 10:57:39,007 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 94 次
2025-04-30 10:57:39,056 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:39,056 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:39,057 - sqlalchemy.engine.Engine - INFO - [cached since 75.7s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:39,060 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:39,509 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:39,584 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981858586}
2025-04-30 10:57:39,585 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 95 次
2025-04-30 10:57:40,054 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:40,055 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:40,057 - sqlalchemy.engine.Engine - INFO - [cached since 76.7s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:40,060 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:40,100 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:40,194 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981859176}
2025-04-30 10:57:40,195 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 96 次
2025-04-30 10:57:40,694 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:40,748 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981859750}
2025-04-30 10:57:40,748 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 97 次
2025-04-30 10:57:41,053 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:41,053 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:41,054 - sqlalchemy.engine.Engine - INFO - [cached since 77.7s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:41,055 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:41,240 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:41,460 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981860413}
2025-04-30 10:57:41,461 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 98 次
2025-04-30 10:57:41,984 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:42,077 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:42,079 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:42,082 - sqlalchemy.engine.Engine - INFO - [cached since 78.73s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:42,085 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:42,156 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981861149}
2025-04-30 10:57:42,156 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 99 次
2025-04-30 10:57:42,675 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:42,714 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981861717}
2025-04-30 10:57:42,715 - services.sync_service - INFO - 任务块 1917412773168566274 动作未完成(actionStatus为空)，已尝试 100 次，继续等待...
2025-04-30 10:57:43,095 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:43,096 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:43,097 - sqlalchemy.engine.Engine - INFO - [cached since 79.74s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:43,097 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:43,236 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:43,385 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981862350}
2025-04-30 10:57:43,386 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 101 次
2025-04-30 10:57:43,907 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:44,031 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981862998}
2025-04-30 10:57:44,033 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 102 次
2025-04-30 10:57:44,108 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:44,109 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:44,112 - sqlalchemy.engine.Engine - INFO - [cached since 80.76s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:44,116 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:44,560 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:44,625 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981863621}
2025-04-30 10:57:44,625 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 103 次
2025-04-30 10:57:45,107 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:45,108 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:45,110 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:45,110 - sqlalchemy.engine.Engine - INFO - [cached since 81.75s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:45,112 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:45,127 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981864130}
2025-04-30 10:57:45,127 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 104 次
2025-04-30 10:57:45,640 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:45,658 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981864659}
2025-04-30 10:57:45,660 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 105 次
2025-04-30 10:57:46,134 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:46,135 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:46,136 - sqlalchemy.engine.Engine - INFO - [cached since 82.78s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:46,139 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:46,163 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:46,282 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981865208}
2025-04-30 10:57:46,283 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 106 次
2025-04-30 10:57:46,789 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:46,862 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981865864}
2025-04-30 10:57:46,863 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 107 次
2025-04-30 10:57:47,149 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:47,150 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:47,151 - sqlalchemy.engine.Engine - INFO - [cached since 83.8s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:47,152 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:47,362 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:47,462 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981866442}
2025-04-30 10:57:47,463 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 108 次
2025-04-30 10:57:47,969 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:48,017 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981866992}
2025-04-30 10:57:48,018 - services.sync_service - DEBUG - 任务块 1917412773168566274 动作未完成，已尝试 109 次
2025-04-30 10:57:48,168 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:48,169 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:48,171 - sqlalchemy.engine.Engine - INFO - [cached since 84.82s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:48,172 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:48,542 - services.sync_service - INFO - 正在获取任务块动作详情: 1917412773168566274
2025-04-30 10:57:48,620 - services.sync_service - INFO - 成功获取任务块动作详情: 1917412773168566274 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917412773168566274', 'tenantId': 1000, 'taskId': '1917412745767178242', 'taskBlockId': '1917412746283077633', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 10:56:44'}, 'timestamp': 1745981867587}
2025-04-30 10:57:48,621 - services.sync_service - INFO - 任务块 1917412773168566274 动作未完成(actionStatus为空)，已尝试 110 次，继续等待...
2025-04-30 10:57:48,651 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 10:57:48,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:57:48,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:57:48,653 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 10:57:48,653 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 10:57:48,653 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 10:57:49,195 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:49,198 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:49,200 - sqlalchemy.engine.Engine - INFO - [cached since 85.84s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:49,201 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:50,215 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:50,216 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:50,220 - sqlalchemy.engine.Engine - INFO - [cached since 86.87s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:50,223 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:51,240 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:51,241 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:51,241 - sqlalchemy.engine.Engine - INFO - [cached since 87.89s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:51,243 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:52,248 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:52,250 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:52,252 - sqlalchemy.engine.Engine - INFO - [cached since 88.9s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:52,257 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:53,273 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:53,274 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:53,275 - sqlalchemy.engine.Engine - INFO - [cached since 89.92s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:53,276 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:54,269 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:54,271 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:54,271 - sqlalchemy.engine.Engine - INFO - [cached since 90.92s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:54,272 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:55,295 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:55,297 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:55,297 - sqlalchemy.engine.Engine - INFO - [cached since 91.94s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:55,298 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:56,306 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:56,307 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:56,307 - sqlalchemy.engine.Engine - INFO - [cached since 92.95s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:56,308 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:57,317 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:57,320 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:57,324 - sqlalchemy.engine.Engine - INFO - [cached since 93.97s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:57,328 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:58,346 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:58,347 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:58,348 - sqlalchemy.engine.Engine - INFO - [cached since 94.99s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:58,349 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:57:59,360 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:57:59,361 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:57:59,361 - sqlalchemy.engine.Engine - INFO - [cached since 96.01s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:57:59,362 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:58:00,373 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:58:00,376 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:58:00,377 - sqlalchemy.engine.Engine - INFO - [cached since 97.02s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:58:00,383 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:58:01,397 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:58:01,399 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:58:01,399 - sqlalchemy.engine.Engine - INFO - [cached since 98.04s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:58:01,401 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:58:02,425 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:58:02,425 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:58:02,427 - sqlalchemy.engine.Engine - INFO - [cached since 99.07s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:58:02,428 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:58:03,446 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:58:03,447 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:58:03,448 - sqlalchemy.engine.Engine - INFO - [cached since 100.1s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:58:03,449 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:58:04,458 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:58:04,460 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:58:04,460 - sqlalchemy.engine.Engine - INFO - [cached since 101.1s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:58:04,461 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:58:05,470 - app - INFO - 应用程序关闭中...
2025-04-30 10:58:05,471 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 10:58:05,471 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 10:58:05,471 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 10:58:05,472 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 10:58:05,474 - sqlalchemy.engine.Engine - INFO - [cached since 102.1s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 10:58:05,475 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 10:58:05,475 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 10:58:05,476 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 10:58:05,476 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 10:58:05,477 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 10:58:05,479 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 10:58:05,480 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 10:58:05,480 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 10:58:05,480 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 10:58:05,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 10:58:05,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 10:58:05,481 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 10:58:05,481 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 10:58:05,482 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 10:58:05,482 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 3
2025-04-30 10:58:05,482 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 10:58:05,482 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 10:58:05,483 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 2
2025-04-30 10:58:05,484 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 10:58:05,484 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 10:58:05,484 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 1
2025-04-30 10:58:05,484 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 10:58:05,484 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 10:58:05,485 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 0
2025-04-30 10:58:05,486 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 10:58:05,487 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 10:58:05,487 - app - INFO - 增强版任务调度器已停止
2025-04-30 10:58:05,487 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 10:58:05,488 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 10:58:05,488 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 10:58:05,488 - data.session - INFO - 数据库连接已关闭
2025-04-30 11:01:35,057 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:01:35,126 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:01:35,127 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:01:35,827 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:01:35,883 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:01:35,885 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:01:35,948 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 11:01:35,993 - data.session - INFO - 正在初始化数据库...
2025-04-30 11:01:36,018 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 11:01:36,040 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:01:36,040 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:01:36,041 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:01:36,042 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:01:36,042 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:01:36,043 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:01:36,043 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:01:36,044 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 11:01:36,044 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:01:36,045 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 11:01:36,046 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:01:36,047 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 11:01:36,048 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:01:36,049 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 11:01:36,050 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:01:36,052 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 11:01:36,053 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:01:36,055 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 11:01:36,055 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:01:36,057 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 11:01:36,059 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:01:36,060 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 11:01:36,060 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:01:36,062 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 11:01:36,062 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:01:36,063 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 11:01:36,064 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:01:36,065 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 11:01:36,065 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:01:36,066 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:01:36,067 - data.session - INFO - 数据库表初始化完成
2025-04-30 11:01:36,431 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 11:01:36,431 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 11:01:36,431 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 11:01:36,431 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 11:01:36,433 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 11:01:36,433 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 11:01:36,433 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 11:01:36,433 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 11:01:36,433 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 11:01:36,433 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 11:01:36,434 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 11:01:36,434 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 11:01:36,434 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 11:01:36,437 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 11:01:36,437 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 11:01:36,437 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 11:01:36,438 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 11:01:36,438 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 11:01:36,438 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 11:01:36,438 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 11:01:36,458 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:01:36,459 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:01:36,461 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:01:36,462 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:01:36,462 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:01:36,463 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:01:36,464 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:01:36,465 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:01:36,474 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 11:01:36,476 - sqlalchemy.engine.Engine - INFO - [generated in 0.00107s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 11:01:36,477 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 11:01:36,477 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:01:36,478 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 11:01:36,478 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 11:01:36,478 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 11:01:36,480 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:01:36,481 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 11:01:36,482 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 11:01:36,483 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:01:36,483 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (211.0小时)，不使用它恢复任务
2025-04-30 11:01:36,483 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-30 11:01:36,483 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:01:36,483 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:01:36,485 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:01:36,485 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 11:01:36,487 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:01:36,488 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:01:36,488 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 11:01:36,490 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 1, 36, 480054))
2025-04-30 11:01:36,490 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 864e72d9-092a-46b3-812b-1982f87e9073 (优先级 1) 添加到队列 0
2025-04-30 11:01:36,490 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 864e72d9-092a-46b3-812b-1982f87e9073, 优先级: 1
2025-04-30 11:01:36,490 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 1 个未完成的任务，移除 0 个不需要恢复的任务
2025-04-30 11:01:36,490 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 11:01:36,490 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 11:01:36,491 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:01:36,536 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 864e72d9-092a-46b3-812b-1982f87e9073, 优先级: 1
2025-04-30 11:01:36,537 - services.execution.task_executor - DEBUG - 任务 864e72d9-092a-46b3-812b-1982f87e9073 设置超时时间: 3600秒
2025-04-30 11:01:36,538 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:01:36,538 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:01:36,538 - sqlalchemy.engine.Engine - INFO - [cached since 0.05343s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 11:01:36,540 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:01:36,540 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:01:36,541 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:01:36,544 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:01:36,544 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:01:36,545 - sqlalchemy.engine.Engine - INFO - [generated in 0.00114s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 1, 36, 544984), '864e72d9-092a-46b3-812b-1982f87e9073')
2025-04-30 11:01:36,546 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:01:36,555 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 11:01:36,556 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:01:36,557 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:01:36,557 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] ('c274f118-ce84-4b97-b215-a68d22888906', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '864e72d9-092a-46b3-812b-1982f87e9073', datetime.datetime(2025, 4, 30, 11, 1, 36, 556057), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 1, 36, 557283), datetime.datetime(2025, 4, 30, 11, 1, 36, 557283), 0)
2025-04-30 11:01:36,558 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:01:36,564 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:01:36,565 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:01:36,565 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] ('c274f118-ce84-4b97-b215-a68d22888906',)
2025-04-30 11:01:36,566 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 11:01:36,566 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 11:01:36,567 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:01:36,567 - sqlalchemy.engine.Engine - INFO - [generated in 0.00060s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 1, 36, 567898), 'c274f118-ce84-4b97-b215-a68d22888906')
2025-04-30 11:01:36,568 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:01:36,573 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 11:01:36,574 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 11:01:36,574 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 11:01:36,575 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:01:36,575 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:01:36,576 - sqlalchemy.engine.Engine - INFO - [cached since 0.01931s ago] ('0987ba32-620a-40c4-a44c-b971a4adc4a5', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '864e72d9-092a-46b3-812b-1982f87e9073', datetime.datetime(2025, 4, 30, 11, 1, 36, 574894), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 1, 36, 575893), datetime.datetime(2025, 4, 30, 11, 1, 36, 575893), 0)
2025-04-30 11:01:36,579 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:01:36,586 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 0987ba32-620a-40c4-a44c-b971a4adc4a5
2025-04-30 11:01:36,587 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:01:36,587 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:01:36,587 - sqlalchemy.engine.Engine - INFO - [cached since 0.02231s ago] ('0987ba32-620a-40c4-a44c-b971a4adc4a5',)
2025-04-30 11:01:36,588 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 11:01:36,589 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 11:01:36,589 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:01:36,589 - sqlalchemy.engine.Engine - INFO - [cached since 0.02197s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 1, 36, 589264), '0987ba32-620a-40c4-a44c-b971a4adc4a5')
2025-04-30 11:01:36,590 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:01:36,598 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 11:01:36,606 - services.sync_service - INFO - 正在创建选择AMR任务: 864e72d9-092a-46b3-812b-1982f87e9073, 站点: TK01
2025-04-30 11:01:36,640 - services.sync_service - INFO - 成功为任务选择AMR: 864e72d9-092a-46b3-812b-1982f87e9073, AMR: None
2025-04-30 11:01:36,641 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917413998165381121 的AMR选择结果
2025-04-30 11:01:36,641 - services.sync_service - INFO - 开始等待任务块 1917413998165381121 的AMR选择结果
2025-04-30 11:01:36,641 - services.sync_service - INFO - 正在获取任务块详情: 1917413998165381121
2025-04-30 11:01:36,659 - services.sync_service - INFO - 成功获取任务块详情: 1917413998165381121 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917413998165381121', 'taskId': '1917412745767178242', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:01:36', 'updateTime': None}, 'timestamp': 1745982095668}
2025-04-30 11:01:36,659 - services.sync_service - DEBUG - 任务块 1917413998165381121 AMR选择未完成，已尝试 1 次
2025-04-30 11:01:37,175 - services.sync_service - INFO - 正在获取任务块详情: 1917413998165381121
2025-04-30 11:01:37,198 - services.sync_service - INFO - 成功获取任务块详情: 1917413998165381121 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917413998165381121', 'taskId': '1917412745767178242', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:01:36', 'updateTime': None}, 'timestamp': 1745982096206}
2025-04-30 11:01:37,199 - services.sync_service - DEBUG - 任务块 1917413998165381121 AMR选择未完成，已尝试 2 次
2025-04-30 11:01:37,535 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:01:37,537 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:01:37,537 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 11:01:37,538 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:01:37,705 - services.sync_service - INFO - 正在获取任务块详情: 1917413998165381121
2025-04-30 11:01:37,723 - services.sync_service - INFO - 成功获取任务块详情: 1917413998165381121 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917413998165381121', 'taskId': '1917412745767178242', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:01:36', 'updateTime': None}, 'timestamp': 1745982096734}
2025-04-30 11:01:37,723 - services.sync_service - DEBUG - 任务块 1917413998165381121 AMR选择未完成，已尝试 3 次
2025-04-30 11:01:38,235 - services.sync_service - INFO - 正在获取任务块详情: 1917413998165381121
2025-04-30 11:01:38,321 - services.sync_service - INFO - 成功获取任务块详情: 1917413998165381121 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917413998165381121', 'taskId': '1917412745767178242', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:01:36', 'updateTime': None}, 'timestamp': 1745982097310}
2025-04-30 11:01:38,322 - services.sync_service - DEBUG - 任务块 1917413998165381121 AMR选择未完成，已尝试 4 次
2025-04-30 11:01:38,544 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:01:38,550 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:01:38,552 - sqlalchemy.engine.Engine - INFO - [cached since 1.016s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 11:01:38,555 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:01:38,842 - services.sync_service - INFO - 正在获取任务块详情: 1917413998165381121
2025-04-30 11:01:38,870 - services.sync_service - INFO - 成功获取任务块详情: 1917413998165381121 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917413998165381121', 'taskId': '1917412745767178242', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:01:36', 'updateTime': None}, 'timestamp': 1745982097872}
2025-04-30 11:01:38,871 - services.sync_service - DEBUG - 任务块 1917413998165381121 AMR选择未完成，已尝试 5 次
2025-04-30 11:01:39,361 - services.sync_service - INFO - 正在获取任务块详情: 1917413998165381121
2025-04-30 11:01:39,455 - services.sync_service - INFO - 成功获取任务块详情: 1917413998165381121 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917413998165381121', 'taskId': '1917412745767178242', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:01:36', 'updateTime': None}, 'timestamp': 1745982098461}
2025-04-30 11:01:39,456 - services.sync_service - DEBUG - 任务块 1917413998165381121 AMR选择未完成，已尝试 6 次
2025-04-30 11:01:39,579 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:01:39,580 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:01:39,580 - sqlalchemy.engine.Engine - INFO - [cached since 2.044s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 11:01:39,581 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:01:39,982 - services.sync_service - INFO - 正在获取任务块详情: 1917413998165381121
2025-04-30 11:01:40,027 - services.sync_service - INFO - 成功获取任务块详情: 1917413998165381121 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917413998165381121', 'taskId': '1917412745767178242', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:01:36', 'updateTime': None}, 'timestamp': 1745982099035}
2025-04-30 11:01:40,028 - services.sync_service - DEBUG - 任务块 1917413998165381121 AMR选择未完成，已尝试 7 次
2025-04-30 11:01:40,542 - services.sync_service - INFO - 正在获取任务块详情: 1917413998165381121
2025-04-30 11:01:40,557 - app - INFO - 应用程序关闭中...
2025-04-30 11:01:40,557 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 11:01:40,557 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 11:01:40,558 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 11:01:40,558 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 11:01:40,558 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 11:01:40,558 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 11:01:40,559 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 11:01:40,559 - services.sync_service - INFO - 成功获取任务块详情: 1917413998165381121 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917413998165381121', 'taskId': '1917412745767178242', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:01:36', 'updateTime': None}, 'timestamp': 1745982099568}
2025-04-30 11:01:40,559 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 11:01:40,559 - services.sync_service - DEBUG - 任务块 1917413998165381121 AMR选择未完成，已尝试 8 次
2025-04-30 11:01:40,560 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 11:01:40,560 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 11:01:40,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 11:01:40,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 11:01:40,560 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 11:01:40,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 11:01:40,561 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 11:01:40,561 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 11:01:40,561 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 11:01:40,561 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 11:01:40,562 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 11:01:40,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 11:01:40,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 11:01:40,562 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 11:01:40,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 11:01:40,563 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 11:01:40,563 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 11:01:40,563 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 11:01:40,563 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 11:01:40,563 - app - INFO - 增强版任务调度器已停止
2025-04-30 11:01:40,563 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 11:01:40,564 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 11:01:40,564 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 11:01:40,564 - data.session - INFO - 数据库连接已关闭
2025-04-30 11:02:45,383 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:02:45,443 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:02:45,445 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:02:46,165 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:02:46,221 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:02:46,223 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:02:46,296 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 11:02:46,347 - data.session - INFO - 正在初始化数据库...
2025-04-30 11:02:46,381 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 11:02:46,399 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:02:46,400 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:02:46,400 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:02:46,401 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:02:46,402 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:02:46,402 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:02:46,403 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:02:46,403 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 11:02:46,403 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:02:46,405 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 11:02:46,406 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:02:46,407 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 11:02:46,408 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:02:46,409 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 11:02:46,409 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:02:46,410 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 11:02:46,410 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:02:46,411 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 11:02:46,411 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:02:46,412 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 11:02:46,412 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:02:46,413 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 11:02:46,413 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:02:46,414 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 11:02:46,414 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:02:46,415 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 11:02:46,416 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:02:46,416 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 11:02:46,417 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:02:46,418 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:02:46,418 - data.session - INFO - 数据库表初始化完成
2025-04-30 11:02:46,768 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 11:02:46,772 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 11:02:46,772 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 11:02:46,773 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 11:02:46,774 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 11:02:46,774 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 11:02:46,775 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 11:02:46,775 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 11:02:46,775 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 11:02:46,775 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 11:02:46,776 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 11:02:46,776 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 11:02:46,776 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 11:02:46,777 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 11:02:46,778 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 11:02:46,778 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 11:02:46,778 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 11:02:46,778 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 11:02:46,778 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 11:02:46,778 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 11:02:46,779 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:02:46,780 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:02:46,780 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:02:46,781 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:02:46,781 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:02:46,782 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:02:46,782 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:02:46,782 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:02:46,792 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 11:02:46,792 - sqlalchemy.engine.Engine - INFO - [generated in 0.00060s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 11:02:46,794 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 11:02:46,794 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:02:46,795 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 11:02:46,795 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 11:02:46,796 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 11:02:46,796 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:02:46,798 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 11:02:46,798 - sqlalchemy.engine.Engine - INFO - [generated in 0.00066s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 11:02:46,820 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:02:46,826 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (211.1小时)，不使用它恢复任务
2025-04-30 11:02:46,826 - services.enhanced_scheduler.task_persistence - INFO - 已加载 1 个待处理任务
2025-04-30 11:02:46,829 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:02:46,830 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:02:46,830 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:02:46,831 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 11:02:46,831 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:02:46,832 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 11:02:46,832 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 2, 46, 796476))
2025-04-30 11:02:46,833 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:02:46,834 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:02:46,835 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 864e72d9-092a-46b3-812b-1982f87e9073 (优先级 1) 添加到队列 0
2025-04-30 11:02:46,835 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 864e72d9-092a-46b3-812b-1982f87e9073, 优先级: 1
2025-04-30 11:02:46,835 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 1 个未完成的任务，移除 0 个不需要恢复的任务
2025-04-30 11:02:46,835 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 11:02:46,835 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 11:02:46,882 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 864e72d9-092a-46b3-812b-1982f87e9073, 优先级: 1
2025-04-30 11:02:46,883 - services.execution.task_executor - DEBUG - 任务 864e72d9-092a-46b3-812b-1982f87e9073 设置超时时间: 3600秒
2025-04-30 11:02:46,883 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:02:46,884 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:02:46,884 - sqlalchemy.engine.Engine - INFO - [cached since 0.05386s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 11:02:46,886 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:02:46,886 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:02:46,887 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:02:46,889 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:02:46,890 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:02:46,891 - sqlalchemy.engine.Engine - INFO - [generated in 0.00067s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 2, 46, 890827), '864e72d9-092a-46b3-812b-1982f87e9073')
2025-04-30 11:02:46,894 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:02:46,909 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 11:02:46,910 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:02:46,912 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:02:46,913 - sqlalchemy.engine.Engine - INFO - [generated in 0.00158s] ('177769d7-5366-4ade-b351-2373eb6dc1a9', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '864e72d9-092a-46b3-812b-1982f87e9073', datetime.datetime(2025, 4, 30, 11, 2, 46, 909972), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 2, 46, 912016), datetime.datetime(2025, 4, 30, 11, 2, 46, 912016), 0)
2025-04-30 11:02:46,914 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:02:46,950 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:02:46,953 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:02:46,960 - sqlalchemy.engine.Engine - INFO - [generated in 0.00639s] ('177769d7-5366-4ade-b351-2373eb6dc1a9',)
2025-04-30 11:02:46,960 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 11:02:46,975 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 11:02:46,977 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:02:46,979 - sqlalchemy.engine.Engine - INFO - [generated in 0.00156s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 2, 46, 977233), '177769d7-5366-4ade-b351-2373eb6dc1a9')
2025-04-30 11:02:46,980 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:02:46,987 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 11:02:46,987 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 11:02:46,987 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 11:02:46,988 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:02:46,988 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:02:46,988 - sqlalchemy.engine.Engine - INFO - [cached since 0.07619s ago] ('b4a5907f-3a1d-45e3-945f-1127c3dc11b1', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '864e72d9-092a-46b3-812b-1982f87e9073', datetime.datetime(2025, 4, 30, 11, 2, 46, 987255), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 2, 46, 988286), datetime.datetime(2025, 4, 30, 11, 2, 46, 988286), 0)
2025-04-30 11:02:46,989 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:02:46,997 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: b4a5907f-3a1d-45e3-945f-1127c3dc11b1
2025-04-30 11:02:46,998 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:02:47,009 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:02:47,024 - sqlalchemy.engine.Engine - INFO - [cached since 0.06975s ago] ('b4a5907f-3a1d-45e3-945f-1127c3dc11b1',)
2025-04-30 11:02:47,025 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 11:02:47,025 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 11:02:47,025 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:02:47,026 - sqlalchemy.engine.Engine - INFO - [cached since 0.04852s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 2, 47, 25237), 'b4a5907f-3a1d-45e3-945f-1127c3dc11b1')
2025-04-30 11:02:47,027 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:02:47,033 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 11:02:47,042 - services.sync_service - INFO - 正在创建选择AMR任务: 864e72d9-092a-46b3-812b-1982f87e9073, 站点: TK01
2025-04-30 11:02:47,135 - services.sync_service - INFO - 成功为任务选择AMR: 864e72d9-092a-46b3-812b-1982f87e9073, AMR: None
2025-04-30 11:02:47,136 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917414293834452994 的AMR选择结果
2025-04-30 11:02:47,136 - services.sync_service - INFO - 开始等待任务块 1917414293834452994 的AMR选择结果
2025-04-30 11:02:47,137 - services.sync_service - INFO - 正在获取任务块详情: 1917414293834452994
2025-04-30 11:02:47,186 - services.sync_service - INFO - 成功获取任务块详情: 1917414293834452994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414293834452994', 'taskId': '1917412745767178242', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:02:46', 'updateTime': None}, 'timestamp': 1745982166192}
2025-04-30 11:02:47,187 - services.sync_service - DEBUG - 任务块 1917414293834452994 AMR选择未完成，已尝试 1 次
2025-04-30 11:02:47,678 - services.sync_service - INFO - 正在获取任务块详情: 1917414293834452994
2025-04-30 11:02:47,697 - services.sync_service - INFO - 成功获取任务块详情: 1917414293834452994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414293834452994', 'taskId': '1917412745767178242', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:02:46', 'updateTime': None}, 'timestamp': 1745982166710}
2025-04-30 11:02:47,698 - services.sync_service - DEBUG - 任务块 1917414293834452994 AMR选择未完成，已尝试 2 次
2025-04-30 11:02:47,895 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:02:47,896 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:02:47,896 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 11:02:47,897 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:02:48,191 - services.sync_service - INFO - 正在获取任务块详情: 1917414293834452994
2025-04-30 11:02:48,211 - services.sync_service - INFO - 成功获取任务块详情: 1917414293834452994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414293834452994', 'taskId': '1917412745767178242', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:02:46', 'updateTime': None}, 'timestamp': 1745982167222}
2025-04-30 11:02:48,212 - services.sync_service - DEBUG - 任务块 1917414293834452994 AMR选择未完成，已尝试 3 次
2025-04-30 11:02:48,707 - services.sync_service - INFO - 正在获取任务块详情: 1917414293834452994
2025-04-30 11:02:48,730 - services.sync_service - INFO - 成功获取任务块详情: 1917414293834452994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414293834452994', 'taskId': '1917412745767178242', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:02:46', 'updateTime': None}, 'timestamp': 1745982167735}
2025-04-30 11:02:48,732 - services.sync_service - DEBUG - 任务块 1917414293834452994 AMR选择未完成，已尝试 4 次
2025-04-30 11:02:48,910 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:02:48,911 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:02:48,911 - sqlalchemy.engine.Engine - INFO - [cached since 1.016s ago] ('864e72d9-092a-46b3-812b-1982f87e9073',)
2025-04-30 11:02:48,912 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:02:49,235 - services.sync_service - INFO - 正在获取任务块详情: 1917414293834452994
2025-04-30 11:02:49,261 - services.sync_service - INFO - 成功获取任务块详情: 1917414293834452994 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414293834452994', 'taskId': '1917412745767178242', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:02:46', 'updateTime': None}, 'timestamp': 1745982168274}
2025-04-30 11:02:49,262 - services.sync_service - DEBUG - 任务块 1917414293834452994 AMR选择未完成，已尝试 5 次
2025-04-30 11:02:49,750 - app - INFO - 应用程序关闭中...
2025-04-30 11:02:49,751 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 11:02:49,751 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 11:02:49,751 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 11:02:49,752 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 11:02:49,752 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 11:02:49,752 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 11:02:49,752 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 11:02:49,752 - services.sync_service - INFO - 正在获取任务块详情: 1917414293834452994
2025-04-30 11:02:49,753 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 11:02:49,753 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 11:02:49,753 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 11:02:49,753 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 11:02:49,754 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 11:02:49,754 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 11:02:49,754 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 11:02:49,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 11:02:49,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 11:02:49,755 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 11:02:49,755 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 11:02:49,755 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 11:02:49,755 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 11:02:49,757 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 11:02:49,757 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 11:02:49,757 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 11:02:49,757 - app - INFO - 增强版任务调度器已停止
2025-04-30 11:02:49,757 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 11:02:49,760 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 11:02:49,761 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 11:02:49,761 - data.session - INFO - 数据库连接已关闭
2025-04-30 11:03:01,314 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:03:01,389 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:03:01,391 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:03:02,152 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:03:02,219 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:03:02,220 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:03:02,283 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 11:03:02,341 - data.session - INFO - 正在初始化数据库...
2025-04-30 11:03:02,383 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 11:03:02,400 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:03:02,400 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:03:02,400 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:03:02,401 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:03:02,401 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:03:02,404 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:03:02,405 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:03:02,405 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 11:03:02,405 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:03:02,407 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 11:03:02,408 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:03:02,409 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 11:03:02,409 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:03:02,410 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 11:03:02,410 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:03:02,411 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 11:03:02,411 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:03:02,412 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 11:03:02,412 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:03:02,413 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 11:03:02,413 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:03:02,414 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 11:03:02,415 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:03:02,416 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 11:03:02,416 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:03:02,416 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 11:03:02,417 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:03:02,417 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 11:03:02,418 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:03:02,421 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:03:02,422 - data.session - INFO - 数据库表初始化完成
2025-04-30 11:03:02,794 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 11:03:02,795 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 11:03:02,795 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 11:03:02,795 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 11:03:02,796 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 11:03:02,796 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 11:03:02,796 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 11:03:02,796 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 11:03:02,797 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 11:03:02,797 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 11:03:02,797 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 11:03:02,797 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 11:03:02,797 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 11:03:02,798 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 11:03:02,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 11:03:02,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 11:03:02,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 11:03:02,800 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 11:03:02,800 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 11:03:02,800 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 11:03:02,803 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:03:02,803 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:03:02,804 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:03:02,806 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:03:02,806 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:03:02,806 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:03:02,806 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:03:02,807 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:03:02,816 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 11:03:02,817 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 11:03:02,818 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 11:03:02,818 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:03:02,819 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 11:03:02,819 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 11:03:02,819 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 11:03:02,821 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:03:02,823 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 11:03:02,823 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 11:03:02,824 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:03:02,825 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 11:03:02,825 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 11:03:02,825 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 11:03:02,826 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 11:03:02,826 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:03:02,827 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:03:02,828 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 11:03:02,828 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 3, 2, 821101))
2025-04-30 11:03:02,829 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:02,841 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时且空闲，重启中...
2025-04-30 11:04:02,842 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 11:04:02,842 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 11:04:02,843 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 11:04:02,843 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 11:04:02,843 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时且空闲，重启中...
2025-04-30 11:04:02,843 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 11:04:02,843 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 11:04:02,843 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 11:04:02,843 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:02,843 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 11:04:02,844 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 4, 2, 841270))
2025-04-30 11:04:02,844 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 11:04:02,844 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 11:04:02,844 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时且空闲，重启中...
2025-04-30 11:04:02,845 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 11:04:02,845 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 11:04:02,845 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 11:04:02,845 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 11:04:02,845 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 11:04:02,846 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时且空闲，重启中...
2025-04-30 11:04:02,846 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:02,847 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 11:04:02,847 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 11:04:02,847 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 11:04:02,847 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 11:04:02,847 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 11:04:02,847 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时且空闲，重启中...
2025-04-30 11:04:02,848 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 11:04:02,848 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 11:04:02,848 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 11:04:02,848 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 11:04:02,848 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 11:04:02,853 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 11:04:14,282 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 11:04:14,285 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:14,291 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:04:14,292 - sqlalchemy.engine.Engine - INFO - [generated in 0.00146s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:04:14,295 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:14,301 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:14,303 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:04:14,305 - sqlalchemy.engine.Engine - INFO - [cached since 0.01427s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:04:14,310 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:14,311 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 11:04:14,312 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 11:04:14,313 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 11:04:14,315 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:14,317 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 11:04:14,318 - sqlalchemy.engine.Engine - INFO - [generated in 0.00092s] (None, datetime.datetime(2025, 4, 30, 11, 4, 14, 317541), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 11:04:14,320 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:14,331 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:14,332 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:04:14,332 - sqlalchemy.engine.Engine - INFO - [cached since 0.04169s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:04:14,334 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:04:14,337 - sqlalchemy.engine.Engine - INFO - [generated in 0.00248s] ('8d703a5a-a861-438e-9a8c-590c79d02ccc', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 11, 4, 14, 311535), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.4", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 11, 4, 14, 334533), datetime.datetime(2025, 4, 30, 11, 4, 14, 334533), 0)
2025-04-30 11:04:14,340 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:14,349 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:14,350 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:14,352 - sqlalchemy.engine.Engine - INFO - [generated in 0.00262s] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:14,358 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:14,363 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 8d703a5a-a861-438e-9a8c-590c79d02ccc (优先级 1) 添加到队列 0
2025-04-30 11:04:14,366 - services.sync_service - INFO - 正在同步创建任务到天风系统: 8d703a5a-a861-438e-9a8c-590c79d02ccc
2025-04-30 11:04:14,368 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"8d703a5a-a861-438e-9a8c-590c79d02ccc","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 11:04:14","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 11:04:14,399 - services.sync_service - INFO - 成功同步任务到系统任务: 8d703a5a-a861-438e-9a8c-590c79d02ccc
2025-04-30 11:04:14,400 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 8d703a5a-a861-438e-9a8c-590c79d02ccc
2025-04-30 11:04:14,401 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 8d703a5a-a861-438e-9a8c-590c79d02ccc
2025-04-30 11:04:14,401 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1201秒
2025-04-30 11:04:14,456 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 8d703a5a-a861-438e-9a8c-590c79d02ccc, 优先级: 1
2025-04-30 11:04:14,456 - services.execution.task_executor - DEBUG - 任务 8d703a5a-a861-438e-9a8c-590c79d02ccc 设置超时时间: 3600秒
2025-04-30 11:04:14,457 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:14,458 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:14,458 - sqlalchemy.engine.Engine - INFO - [cached since 0.1081s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:14,460 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:04:14,461 - sqlalchemy.engine.Engine - INFO - [cached since 0.1701s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:04:14,463 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:14,464 - sqlalchemy.engine.Engine - INFO - [generated in 0.00064s] (datetime.datetime(2025, 4, 30, 11, 4, 14, 462459), datetime.datetime(2025, 4, 30, 11, 4, 14, 463447), '8d703a5a-a861-438e-9a8c-590c79d02ccc')
2025-04-30 11:04:14,465 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:14,475 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:14,477 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:14,478 - sqlalchemy.engine.Engine - INFO - [generated in 0.00102s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 4, 14, 477455), '8d703a5a-a861-438e-9a8c-590c79d02ccc')
2025-04-30 11:04:14,481 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:14,490 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 11:04:14,492 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:14,494 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:04:14,496 - sqlalchemy.engine.Engine - INFO - [generated in 0.00275s] ('a814be23-322b-4c59-a54d-3e65ca035082', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '8d703a5a-a861-438e-9a8c-590c79d02ccc', datetime.datetime(2025, 4, 30, 11, 4, 14, 491446), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 4, 14, 494446), datetime.datetime(2025, 4, 30, 11, 4, 14, 494446), 0)
2025-04-30 11:04:14,498 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:14,505 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:14,508 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:04:14,509 - sqlalchemy.engine.Engine - INFO - [generated in 0.00131s] ('a814be23-322b-4c59-a54d-3e65ca035082',)
2025-04-30 11:04:14,513 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 11:04:14,514 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 11:04:14,518 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:04:14,518 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 4, 14, 518449), 'a814be23-322b-4c59-a54d-3e65ca035082')
2025-04-30 11:04:14,521 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:14,531 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 11:04:14,532 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 11:04:14,533 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 11:04:14,535 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:14,537 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:04:14,538 - sqlalchemy.engine.Engine - INFO - [cached since 0.04483s ago] ('a41c256b-acd3-4347-8a81-b246865d4dc0', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '8d703a5a-a861-438e-9a8c-590c79d02ccc', datetime.datetime(2025, 4, 30, 11, 4, 14, 534587), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 4, 14, 537602), datetime.datetime(2025, 4, 30, 11, 4, 14, 537602), 0)
2025-04-30 11:04:14,540 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:14,546 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: a41c256b-acd3-4347-8a81-b246865d4dc0
2025-04-30 11:04:14,547 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:14,548 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:04:14,550 - sqlalchemy.engine.Engine - INFO - [cached since 0.04179s ago] ('a41c256b-acd3-4347-8a81-b246865d4dc0',)
2025-04-30 11:04:14,551 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 11:04:14,553 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 11:04:14,553 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:04:14,554 - sqlalchemy.engine.Engine - INFO - [cached since 0.03654s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 4, 14, 553587), 'a41c256b-acd3-4347-8a81-b246865d4dc0')
2025-04-30 11:04:14,555 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:14,561 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 11:04:14,562 - services.sync_service - INFO - 正在创建选择AMR任务: 8d703a5a-a861-438e-9a8c-590c79d02ccc, 站点: TK01
2025-04-30 11:04:14,592 - services.sync_service - INFO - 成功为任务选择AMR: 8d703a5a-a861-438e-9a8c-590c79d02ccc, AMR: None
2025-04-30 11:04:14,593 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917414660643115009 的AMR选择结果
2025-04-30 11:04:14,593 - services.sync_service - INFO - 开始等待任务块 1917414660643115009 的AMR选择结果
2025-04-30 11:04:14,594 - services.sync_service - INFO - 正在获取任务块详情: 1917414660643115009
2025-04-30 11:04:14,636 - services.sync_service - INFO - 成功获取任务块详情: 1917414660643115009 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414660643115009', 'taskId': '1917414659854585858', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:04:14', 'updateTime': None}, 'timestamp': 1745982253642}
2025-04-30 11:04:14,637 - services.sync_service - DEBUG - 任务块 1917414660643115009 AMR选择未完成，已尝试 1 次
2025-04-30 11:04:15,142 - services.sync_service - INFO - 正在获取任务块详情: 1917414660643115009
2025-04-30 11:04:15,186 - services.sync_service - INFO - 成功获取任务块详情: 1917414660643115009 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414660643115009', 'taskId': '1917414659854585858', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:04:14', 'updateTime': None}, 'timestamp': 1745982254198}
2025-04-30 11:04:15,187 - services.sync_service - DEBUG - 任务块 1917414660643115009 AMR选择未完成，已尝试 2 次
2025-04-30 11:04:15,481 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:15,483 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:15,483 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:15,484 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:15,684 - services.sync_service - INFO - 正在获取任务块详情: 1917414660643115009
2025-04-30 11:04:15,726 - services.sync_service - INFO - 成功获取任务块详情: 1917414660643115009 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414660643115009', 'taskId': '1917414659854585858', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:04:14', 'updateTime': None}, 'timestamp': 1745982254740}
2025-04-30 11:04:15,728 - services.sync_service - DEBUG - 任务块 1917414660643115009 AMR选择未完成，已尝试 3 次
2025-04-30 11:04:16,229 - services.sync_service - INFO - 正在获取任务块详情: 1917414660643115009
2025-04-30 11:04:16,271 - services.sync_service - INFO - 成功获取任务块详情: 1917414660643115009 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414660643115009', 'taskId': '1917414659854585858', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:04:14', 'updateTime': None}, 'timestamp': 1745982255264}
2025-04-30 11:04:16,271 - services.sync_service - DEBUG - 任务块 1917414660643115009 AMR选择未完成，已尝试 4 次
2025-04-30 11:04:16,496 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:16,497 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:16,497 - sqlalchemy.engine.Engine - INFO - [cached since 1.014s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:16,498 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:16,790 - services.sync_service - INFO - 正在获取任务块详情: 1917414660643115009
2025-04-30 11:04:16,812 - services.sync_service - INFO - 成功获取任务块详情: 1917414660643115009 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414660643115009', 'taskId': '1917414659854585858', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:04:14', 'updateTime': None}, 'timestamp': 1745982255827}
2025-04-30 11:04:16,813 - services.sync_service - DEBUG - 任务块 1917414660643115009 AMR选择未完成，已尝试 5 次
2025-04-30 11:04:17,317 - services.sync_service - INFO - 正在获取任务块详情: 1917414660643115009
2025-04-30 11:04:17,354 - services.sync_service - INFO - 成功获取任务块详情: 1917414660643115009 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414660643115009', 'taskId': '1917414659854585858', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:04:14', 'updateTime': None}, 'timestamp': 1745982256367}
2025-04-30 11:04:17,354 - services.sync_service - DEBUG - 任务块 1917414660643115009 AMR选择未完成，已尝试 6 次
2025-04-30 11:04:17,504 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:17,504 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:17,505 - sqlalchemy.engine.Engine - INFO - [cached since 2.022s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:17,506 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:17,860 - services.sync_service - INFO - 正在获取任务块详情: 1917414660643115009
2025-04-30 11:04:17,907 - services.sync_service - INFO - 成功获取任务块详情: 1917414660643115009 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414660643115009', 'taskId': '1917414659854585858', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:04:14', 'updateTime': None}, 'timestamp': 1745982256917}
2025-04-30 11:04:17,908 - services.sync_service - DEBUG - 任务块 1917414660643115009 AMR选择未完成，已尝试 7 次
2025-04-30 11:04:18,409 - services.sync_service - INFO - 正在获取任务块详情: 1917414660643115009
2025-04-30 11:04:18,482 - services.sync_service - INFO - 成功获取任务块详情: 1917414660643115009 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414660643115009', 'taskId': '1917414659854585858', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:04:14', 'updateTime': None}, 'timestamp': 1745982257497}
2025-04-30 11:04:18,483 - services.sync_service - DEBUG - 任务块 1917414660643115009 AMR选择未完成，已尝试 8 次
2025-04-30 11:04:18,518 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:18,520 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:18,521 - sqlalchemy.engine.Engine - INFO - [cached since 3.038s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:18,524 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:18,998 - services.sync_service - INFO - 正在获取任务块详情: 1917414660643115009
2025-04-30 11:04:19,041 - services.sync_service - INFO - 成功获取任务块详情: 1917414660643115009 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414660643115009', 'taskId': '1917414659854585858', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:04:14', 'updateTime': None}, 'timestamp': 1745982258055}
2025-04-30 11:04:19,042 - services.sync_service - DEBUG - 任务块 1917414660643115009 AMR选择未完成，已尝试 9 次
2025-04-30 11:04:19,541 - services.sync_service - INFO - 正在获取任务块详情: 1917414660643115009
2025-04-30 11:04:19,542 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:19,542 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:19,543 - sqlalchemy.engine.Engine - INFO - [cached since 4.06s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:19,543 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:19,583 - services.sync_service - INFO - 成功获取任务块详情: 1917414660643115009 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414660643115009', 'taskId': '1917414659854585858', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:04:14', 'updateTime': None}, 'timestamp': 1745982258597}
2025-04-30 11:04:19,583 - services.sync_service - INFO - 任务块 1917414660643115009 AMR选择未完成(amrId/appointAmrId/appointAmrGroupId均为空)，已尝试 10 次，继续等待...
2025-04-30 11:04:20,099 - services.sync_service - INFO - 正在获取任务块详情: 1917414660643115009
2025-04-30 11:04:20,116 - services.sync_service - INFO - 成功获取任务块详情: 1917414660643115009 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414660643115009', 'taskId': '1917414659854585858', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:04:14', 'updateTime': None}, 'timestamp': 1745982259130}
2025-04-30 11:04:20,116 - services.sync_service - DEBUG - 任务块 1917414660643115009 AMR选择未完成，已尝试 11 次
2025-04-30 11:04:20,535 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:20,536 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:20,536 - sqlalchemy.engine.Engine - INFO - [cached since 5.053s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:20,537 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:20,629 - services.sync_service - INFO - 正在获取任务块详情: 1917414660643115009
2025-04-30 11:04:20,647 - services.sync_service - INFO - 成功获取任务块详情: 1917414660643115009 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414660643115009', 'taskId': '1917414659854585858', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:04:14', 'updateTime': None}, 'timestamp': 1745982259660}
2025-04-30 11:04:20,648 - services.sync_service - DEBUG - 任务块 1917414660643115009 AMR选择未完成，已尝试 12 次
2025-04-30 11:04:21,156 - services.sync_service - INFO - 正在获取任务块详情: 1917414660643115009
2025-04-30 11:04:21,196 - services.sync_service - INFO - 成功获取任务块详情: 1917414660643115009 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414660643115009', 'taskId': '1917414659854585858', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:04:14', 'updateTime': None}, 'timestamp': 1745982260212}
2025-04-30 11:04:21,197 - services.sync_service - DEBUG - 任务块 1917414660643115009 AMR选择未完成，已尝试 13 次
2025-04-30 11:04:21,556 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:21,557 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:21,561 - sqlalchemy.engine.Engine - INFO - [cached since 6.079s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:21,564 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:21,711 - services.sync_service - INFO - 正在获取任务块详情: 1917414660643115009
2025-04-30 11:04:21,730 - services.sync_service - INFO - 成功获取任务块详情: 1917414660643115009 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414660643115009', 'taskId': '1917414659854585858', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:04:14', 'updateTime': None}, 'timestamp': 1745982260743}
2025-04-30 11:04:21,730 - services.sync_service - DEBUG - 任务块 1917414660643115009 AMR选择未完成，已尝试 14 次
2025-04-30 11:04:22,240 - services.sync_service - INFO - 正在获取任务块详情: 1917414660643115009
2025-04-30 11:04:22,259 - services.sync_service - INFO - 成功获取任务块详情: 1917414660643115009 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414660643115009', 'taskId': '1917414659854585858', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:04:14', 'updateTime': None}, 'timestamp': 1745982261271}
2025-04-30 11:04:22,260 - services.sync_service - DEBUG - 任务块 1917414660643115009 AMR选择未完成，已尝试 15 次
2025-04-30 11:04:22,582 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:22,582 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:22,583 - sqlalchemy.engine.Engine - INFO - [cached since 7.1s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:22,584 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:22,753 - services.sync_service - INFO - 正在获取任务块详情: 1917414660643115009
2025-04-30 11:04:22,780 - services.sync_service - INFO - 成功获取任务块详情: 1917414660643115009 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414660643115009', 'taskId': '1917414659854585858', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:04:14', 'updateTime': None}, 'timestamp': 1745982261794}
2025-04-30 11:04:22,781 - services.sync_service - DEBUG - 任务块 1917414660643115009 AMR选择未完成，已尝试 16 次
2025-04-30 11:04:23,281 - services.sync_service - INFO - 正在获取任务块详情: 1917414660643115009
2025-04-30 11:04:23,348 - services.sync_service - INFO - 成功获取任务块详情: 1917414660643115009 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414660643115009', 'taskId': '1917414659854585858', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:04:14', 'updateTime': None}, 'timestamp': 1745982262324}
2025-04-30 11:04:23,351 - services.sync_service - DEBUG - 任务块 1917414660643115009 AMR选择未完成，已尝试 17 次
2025-04-30 11:04:23,594 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:23,595 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:23,595 - sqlalchemy.engine.Engine - INFO - [cached since 8.112s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:23,596 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:23,874 - services.sync_service - INFO - 正在获取任务块详情: 1917414660643115009
2025-04-30 11:04:23,916 - services.sync_service - INFO - 成功获取任务块详情: 1917414660643115009 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414660643115009', 'taskId': '1917414659854585858', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:04:14', 'updateTime': None}, 'timestamp': 1745982262931}
2025-04-30 11:04:23,917 - services.sync_service - DEBUG - 任务块 1917414660643115009 AMR选择未完成，已尝试 18 次
2025-04-30 11:04:24,436 - services.sync_service - INFO - 正在获取任务块详情: 1917414660643115009
2025-04-30 11:04:24,490 - services.sync_service - INFO - 成功获取任务块详情: 1917414660643115009 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414660643115009', 'taskId': '1917414659854585858', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:04:14', 'updateTime': '2025-04-30 11:04:23'}, 'timestamp': 1745982263505}
2025-04-30 11:04:24,491 - services.sync_service - INFO - 任务块 1917414660643115009 已选择AMR: 1912328602264645634，共尝试 19 次
2025-04-30 11:04:24,493 - services.execution.handlers.robot_scheduling - INFO - 准备更新任务 8d703a5a-a861-438e-9a8c-590c79d02ccc 的机器人ID: 1912328602264645634
2025-04-30 11:04:24,496 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:24,501 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.agv_id 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:24,505 - sqlalchemy.engine.Engine - INFO - [generated in 0.00357s] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:24,510 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET agv_id=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:24,512 - sqlalchemy.engine.Engine - INFO - [generated in 0.00224s] ('1912328602264645634', datetime.datetime(2025, 4, 30, 11, 4, 24, 510697), '8d703a5a-a861-438e-9a8c-590c79d02ccc')
2025-04-30 11:04:24,514 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:24,523 - services.execution.handlers.robot_scheduling - INFO - 成功更新任务记录 8d703a5a-a861-438e-9a8c-590c79d02ccc 的agv_id字段: 1912328602264645634
2025-04-30 11:04:24,526 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 11:04:24,527 - services.execution.handlers.robot_scheduling - INFO - 块 b1(ID:1) 有 1 个子块
2025-04-30 11:04:24,528 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: [2]
2025-04-30 11:04:24,529 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 11:04:24,529 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 1 个
2025-04-30 11:04:24,530 - services.execution.handlers.robot_scheduling - INFO - 1. b2(ID:2, 类型:CAgvOperationBp, 关系:direct_child)
2025-04-30 11:04:24,530 - services.execution.handlers.robot_scheduling - INFO - 开始执行选择机器人块 b1 的子块
2025-04-30 11:04:24,530 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-30 11:04:24,530 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 1 个子块
2025-04-30 11:04:24,533 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b2, ID: 2, 类型: CAgvOperationBp
2025-04-30 11:04:24,536 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:24,537 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:04:24,540 - sqlalchemy.engine.Engine - INFO - [cached since 10.05s ago] ('79cd86f7-d422-4e53-a3c9-6dddbb4ded8c', 'b2', '2', '', '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"targetSiteLabel": "PT02", "scriptName": "JackUnload"}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917414660643115009"}', 'CAgvOperationBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '8d703a5a-a861-438e-9a8c-590c79d02ccc', datetime.datetime(2025, 4, 30, 11, 4, 24, 535698), <TaskBlockRecordStatus.RUNNING: 1001>, '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917414660643115009"}', 1, datetime.datetime(2025, 4, 30, 11, 4, 24, 537698), datetime.datetime(2025, 4, 30, 11, 4, 24, 537698), 0)
2025-04-30 11:04:24,545 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:24,552 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 79cd86f7-d422-4e53-a3c9-6dddbb4ded8c
2025-04-30 11:04:24,552 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:24,556 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:04:24,560 - sqlalchemy.engine.Engine - INFO - [cached since 10.05s ago] ('79cd86f7-d422-4e53-a3c9-6dddbb4ded8c',)
2025-04-30 11:04:24,563 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-30 11:04:24,565 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-30 11:04:24,567 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:04:24,571 - sqlalchemy.engine.Engine - INFO - [generated in 0.00359s] ('{"selectedAgvId": "1912328602264645634"}', '执行中', "{'agv_for_block_2': '1912328602264645634', 'agv_for_b2': '1912328602264645634', 'agv_task_id_2': '1917414660643115009'}", '{"blocks": {"b2": {"selectedAgvId": "1912328602264645634"}}}', '执行中', datetime.datetime(2025, 4, 30, 11, 4, 24, 567702), '79cd86f7-d422-4e53-a3c9-6dddbb4ded8c')
2025-04-30 11:04:24,575 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:24,583 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-30 11:04:24,583 - services.execution.handlers.robot_scheduling - INFO - 找到块 b2(ID:2) 专用的机器人ID: 1912328602264645634
2025-04-30 11:04:24,584 - services.execution.handlers.robot_scheduling - INFO - 执行机器人通用动作，块 b2(ID:2) 使用机器人: 1912328602264645634, 目标站点: PT02
2025-04-30 11:04:24,584 - services.sync_service - INFO - 正在为任务添加动作: 1917414660643115009, 站点: PT02, 动作: JackUnload
2025-04-30 11:04:24,600 - services.sync_service - INFO - 成功为任务添加动作: 1917414660643115009, 站点: PT02, 动作: JackUnload
2025-04-30 11:04:24,600 - services.sync_service - INFO - 开始等待任务块 1917414702661652481 的动作完成
2025-04-30 11:04:24,601 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:24,602 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:24,602 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:24,603 - sqlalchemy.engine.Engine - INFO - [cached since 9.12s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:24,604 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:24,651 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982263633}
2025-04-30 11:04:24,651 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 1 次
2025-04-30 11:04:25,171 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:25,189 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982264203}
2025-04-30 11:04:25,190 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 2 次
2025-04-30 11:04:25,607 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:25,610 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:25,612 - sqlalchemy.engine.Engine - INFO - [cached since 10.13s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:25,613 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:25,715 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:25,742 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982264757}
2025-04-30 11:04:25,742 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 3 次
2025-04-30 11:04:26,244 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:26,309 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982265300}
2025-04-30 11:04:26,309 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 4 次
2025-04-30 11:04:26,602 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:26,603 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:26,603 - sqlalchemy.engine.Engine - INFO - [cached since 11.12s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:26,605 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:26,817 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:26,840 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982265856}
2025-04-30 11:04:26,841 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 5 次
2025-04-30 11:04:27,346 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:27,404 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982266419}
2025-04-30 11:04:27,404 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 6 次
2025-04-30 11:04:27,610 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:27,611 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:27,611 - sqlalchemy.engine.Engine - INFO - [cached since 12.13s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:27,613 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:27,908 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:27,950 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982266965}
2025-04-30 11:04:27,951 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 7 次
2025-04-30 11:04:28,469 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:28,515 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982267529}
2025-04-30 11:04:28,516 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 8 次
2025-04-30 11:04:28,625 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:28,625 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:28,627 - sqlalchemy.engine.Engine - INFO - [cached since 13.14s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:28,627 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:29,024 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:29,057 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982268065}
2025-04-30 11:04:29,057 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 9 次
2025-04-30 11:04:29,553 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:29,582 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982268597}
2025-04-30 11:04:29,583 - services.sync_service - INFO - 任务块 1917414702661652481 动作未完成(actionStatus为空)，已尝试 10 次，继续等待...
2025-04-30 11:04:29,631 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:29,632 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:29,632 - sqlalchemy.engine.Engine - INFO - [cached since 14.15s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:29,633 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:30,096 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:30,153 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982269168}
2025-04-30 11:04:30,154 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 11 次
2025-04-30 11:04:30,651 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:30,652 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:30,653 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:30,654 - sqlalchemy.engine.Engine - INFO - [cached since 15.17s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:30,654 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:30,668 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982269684}
2025-04-30 11:04:30,669 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 12 次
2025-04-30 11:04:31,162 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:31,182 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982270198}
2025-04-30 11:04:31,183 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 13 次
2025-04-30 11:04:31,660 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:31,661 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:31,661 - sqlalchemy.engine.Engine - INFO - [cached since 16.18s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:31,662 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:31,690 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:31,706 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982270722}
2025-04-30 11:04:31,706 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 14 次
2025-04-30 11:04:32,223 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:32,374 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982271352}
2025-04-30 11:04:32,375 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 15 次
2025-04-30 11:04:32,672 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:32,673 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:32,673 - sqlalchemy.engine.Engine - INFO - [cached since 17.19s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:32,674 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:32,874 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:32,891 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982271905}
2025-04-30 11:04:32,891 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 16 次
2025-04-30 11:04:33,390 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:33,434 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982272447}
2025-04-30 11:04:33,435 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 17 次
2025-04-30 11:04:33,683 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:33,688 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:33,691 - sqlalchemy.engine.Engine - INFO - [cached since 18.21s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:33,693 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:33,946 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:33,973 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982272976}
2025-04-30 11:04:33,974 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 18 次
2025-04-30 11:04:34,492 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:34,533 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982273548}
2025-04-30 11:04:34,534 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 19 次
2025-04-30 11:04:34,698 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:34,698 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:34,699 - sqlalchemy.engine.Engine - INFO - [cached since 19.22s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:34,700 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:35,024 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:35,066 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982274081}
2025-04-30 11:04:35,067 - services.sync_service - INFO - 任务块 1917414702661652481 动作未完成(actionStatus为空)，已尝试 20 次，继续等待...
2025-04-30 11:04:35,572 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:35,626 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982274636}
2025-04-30 11:04:35,627 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 21 次
2025-04-30 11:04:35,710 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:35,711 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:35,711 - sqlalchemy.engine.Engine - INFO - [cached since 20.23s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:35,712 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:36,148 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:36,168 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982275178}
2025-04-30 11:04:36,171 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 22 次
2025-04-30 11:04:36,656 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:36,684 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982275697}
2025-04-30 11:04:36,687 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 23 次
2025-04-30 11:04:36,721 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:36,723 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:36,726 - sqlalchemy.engine.Engine - INFO - [cached since 21.24s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:36,730 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:37,174 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:37,201 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982276215}
2025-04-30 11:04:37,202 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 24 次
2025-04-30 11:04:37,707 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:37,722 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:37,723 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:37,724 - sqlalchemy.engine.Engine - INFO - [cached since 22.24s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:37,724 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:37,732 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982276748}
2025-04-30 11:04:37,733 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 25 次
2025-04-30 11:04:38,235 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:38,276 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982277276}
2025-04-30 11:04:38,279 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 26 次
2025-04-30 11:04:38,748 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:38,749 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:38,750 - sqlalchemy.engine.Engine - INFO - [cached since 23.27s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:38,752 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:38,780 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:38,839 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982277836}
2025-04-30 11:04:38,839 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 27 次
2025-04-30 11:04:39,340 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:39,380 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982278396}
2025-04-30 11:04:39,381 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 28 次
2025-04-30 11:04:39,774 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:39,775 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:39,775 - sqlalchemy.engine.Engine - INFO - [cached since 24.29s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:39,776 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:39,899 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:39,927 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982278943}
2025-04-30 11:04:39,928 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 29 次
2025-04-30 11:04:40,447 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:40,466 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982279481}
2025-04-30 11:04:40,467 - services.sync_service - INFO - 任务块 1917414702661652481 动作未完成(actionStatus为空)，已尝试 30 次，继续等待...
2025-04-30 11:04:40,774 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:40,776 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:40,776 - sqlalchemy.engine.Engine - INFO - [cached since 25.29s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:40,777 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:40,976 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:40,990 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982280007}
2025-04-30 11:04:40,992 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 31 次
2025-04-30 11:04:41,502 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:41,528 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982280544}
2025-04-30 11:04:41,529 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 32 次
2025-04-30 11:04:41,783 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:41,784 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:41,786 - sqlalchemy.engine.Engine - INFO - [cached since 26.3s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:41,787 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:42,046 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:42,086 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982281103}
2025-04-30 11:04:42,088 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 33 次
2025-04-30 11:04:42,591 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:42,636 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982281648}
2025-04-30 11:04:42,637 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 34 次
2025-04-30 11:04:42,793 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:42,798 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:42,799 - sqlalchemy.engine.Engine - INFO - [cached since 27.32s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:42,804 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:43,135 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:43,159 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982282171}
2025-04-30 11:04:43,160 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 35 次
2025-04-30 11:04:43,649 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:43,668 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982282684}
2025-04-30 11:04:43,670 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 36 次
2025-04-30 11:04:43,808 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:43,810 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:43,811 - sqlalchemy.engine.Engine - INFO - [cached since 28.33s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:43,812 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:44,181 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:44,213 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982283223}
2025-04-30 11:04:44,214 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 37 次
2025-04-30 11:04:44,727 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:44,807 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982283784}
2025-04-30 11:04:44,807 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 38 次
2025-04-30 11:04:44,808 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:44,808 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:44,809 - sqlalchemy.engine.Engine - INFO - [cached since 29.33s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:44,809 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:45,304 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:45,320 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982284335}
2025-04-30 11:04:45,321 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 39 次
2025-04-30 11:04:45,820 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:45,820 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:45,822 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:45,823 - sqlalchemy.engine.Engine - INFO - [cached since 30.34s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:45,824 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:45,860 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982284876}
2025-04-30 11:04:45,860 - services.sync_service - INFO - 任务块 1917414702661652481 动作未完成(actionStatus为空)，已尝试 40 次，继续等待...
2025-04-30 11:04:46,363 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:46,434 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982285445}
2025-04-30 11:04:46,437 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 41 次
2025-04-30 11:04:46,843 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:46,849 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:46,851 - sqlalchemy.engine.Engine - INFO - [cached since 31.37s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:46,855 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:46,937 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:46,958 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982285975}
2025-04-30 11:04:46,958 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 42 次
2025-04-30 11:04:47,457 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:47,472 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982286486}
2025-04-30 11:04:47,473 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 43 次
2025-04-30 11:04:47,863 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:47,864 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:47,866 - sqlalchemy.engine.Engine - INFO - [cached since 32.38s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:47,867 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:47,974 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:48,047 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982287063}
2025-04-30 11:04:48,049 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 44 次
2025-04-30 11:04:48,549 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:48,565 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982287580}
2025-04-30 11:04:48,565 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 45 次
2025-04-30 11:04:48,873 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:48,875 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:48,875 - sqlalchemy.engine.Engine - INFO - [cached since 33.39s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:48,875 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:49,076 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:49,102 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982288107}
2025-04-30 11:04:49,104 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 46 次
2025-04-30 11:04:49,606 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:49,638 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982288648}
2025-04-30 11:04:49,639 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 47 次
2025-04-30 11:04:49,900 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:49,902 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:49,903 - sqlalchemy.engine.Engine - INFO - [cached since 34.42s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:49,904 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:50,148 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:50,191 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982289206}
2025-04-30 11:04:50,192 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 48 次
2025-04-30 11:04:50,717 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:50,736 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982289751}
2025-04-30 11:04:50,736 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 49 次
2025-04-30 11:04:50,920 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:50,922 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:50,922 - sqlalchemy.engine.Engine - INFO - [cached since 35.44s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:50,923 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:51,246 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:51,292 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982290288}
2025-04-30 11:04:51,293 - services.sync_service - INFO - 任务块 1917414702661652481 动作未完成(actionStatus为空)，已尝试 50 次，继续等待...
2025-04-30 11:04:51,791 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:51,812 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982290826}
2025-04-30 11:04:51,812 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 51 次
2025-04-30 11:04:51,948 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:51,949 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:51,950 - sqlalchemy.engine.Engine - INFO - [cached since 36.47s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:51,950 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:52,321 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:52,368 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982291381}
2025-04-30 11:04:52,369 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 52 次
2025-04-30 11:04:52,879 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:52,923 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982291922}
2025-04-30 11:04:52,923 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 53 次
2025-04-30 11:04:52,956 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:52,957 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:52,957 - sqlalchemy.engine.Engine - INFO - [cached since 37.47s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:52,958 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:53,408 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:53,460 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982292458}
2025-04-30 11:04:53,461 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 54 次
2025-04-30 11:04:53,968 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:53,969 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:53,974 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:53,977 - sqlalchemy.engine.Engine - INFO - [cached since 38.49s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:53,980 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:53,990 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982293006}
2025-04-30 11:04:53,993 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 55 次
2025-04-30 11:04:54,498 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:54,538 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982293555}
2025-04-30 11:04:54,538 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 56 次
2025-04-30 11:04:54,994 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:54,994 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:54,995 - sqlalchemy.engine.Engine - INFO - [cached since 39.51s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:54,995 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:55,039 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:55,072 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982294069}
2025-04-30 11:04:55,072 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 57 次
2025-04-30 11:04:55,584 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:55,604 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982294618}
2025-04-30 11:04:55,604 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 58 次
2025-04-30 11:04:55,992 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:55,992 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:55,993 - sqlalchemy.engine.Engine - INFO - [cached since 40.51s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:55,993 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:56,114 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:56,140 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982295157}
2025-04-30 11:04:56,141 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 59 次
2025-04-30 11:04:56,628 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:56,654 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982295669}
2025-04-30 11:04:56,654 - services.sync_service - INFO - 任务块 1917414702661652481 动作未完成(actionStatus为空)，已尝试 60 次，继续等待...
2025-04-30 11:04:56,988 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:56,989 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:56,990 - sqlalchemy.engine.Engine - INFO - [cached since 41.51s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:56,994 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:57,159 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:57,176 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982296192}
2025-04-30 11:04:57,177 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 61 次
2025-04-30 11:04:57,675 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:57,690 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982296707}
2025-04-30 11:04:57,691 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 62 次
2025-04-30 11:04:57,986 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:57,988 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:57,989 - sqlalchemy.engine.Engine - INFO - [cached since 42.51s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:57,990 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:58,191 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:58,273 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982297250}
2025-04-30 11:04:58,274 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 63 次
2025-04-30 11:04:58,786 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:58,801 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982297817}
2025-04-30 11:04:58,801 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 64 次
2025-04-30 11:04:59,000 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:04:59,001 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:04:59,001 - sqlalchemy.engine.Engine - INFO - [cached since 43.52s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:04:59,002 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:04:59,326 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:59,418 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982298372}
2025-04-30 11:04:59,419 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 65 次
2025-04-30 11:04:59,903 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:04:59,932 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982298945}
2025-04-30 11:04:59,933 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 66 次
2025-04-30 11:05:00,012 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:00,015 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:00,015 - sqlalchemy.engine.Engine - INFO - [cached since 44.53s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:00,017 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:00,426 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:00,499 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982299500}
2025-04-30 11:05:00,500 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 67 次
2025-04-30 11:05:00,983 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:01,029 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:01,029 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:01,031 - sqlalchemy.engine.Engine - INFO - [cached since 45.55s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:01,034 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:01,049 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982300014}
2025-04-30 11:05:01,050 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 68 次
2025-04-30 11:05:01,573 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:01,591 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982300605}
2025-04-30 11:05:01,592 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 69 次
2025-04-30 11:05:02,019 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:02,019 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:02,020 - sqlalchemy.engine.Engine - INFO - [cached since 46.54s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:02,020 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:02,097 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:02,138 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982301140}
2025-04-30 11:05:02,139 - services.sync_service - INFO - 任务块 1917414702661652481 动作未完成(actionStatus为空)，已尝试 70 次，继续等待...
2025-04-30 11:05:02,641 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:02,664 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982301681}
2025-04-30 11:05:02,665 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 71 次
2025-04-30 11:05:02,874 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时且空闲，重启中...
2025-04-30 11:05:02,874 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 11:05:02,875 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 11:05:02,875 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 11:05:02,875 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 11:05:02,876 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时且空闲，重启中...
2025-04-30 11:05:02,877 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:02,877 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 11:05:02,878 - sqlalchemy.engine.Engine - INFO - [cached since 120.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 5, 2, 874077))
2025-04-30 11:05:02,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 11:05:02,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 11:05:02,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 11:05:02,879 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 11:05:02,880 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 11:05:02,880 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时且空闲，重启中...
2025-04-30 11:05:02,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 11:05:02,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 11:05:02,880 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 11:05:02,881 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:02,881 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 11:05:02,882 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 11:05:02,882 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时且空闲，重启中...
2025-04-30 11:05:02,882 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 11:05:02,882 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 11:05:02,882 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 11:05:02,882 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 11:05:02,882 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 11:05:02,887 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 11:05:03,046 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:03,051 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:03,057 - sqlalchemy.engine.Engine - INFO - [cached since 47.57s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:03,062 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:03,172 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:03,189 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982302204}
2025-04-30 11:05:03,189 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 72 次
2025-04-30 11:05:03,702 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:03,728 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982302745}
2025-04-30 11:05:03,729 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 73 次
2025-04-30 11:05:04,092 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:04,092 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:04,093 - sqlalchemy.engine.Engine - INFO - [cached since 48.61s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:04,093 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:04,232 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:04,301 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982303292}
2025-04-30 11:05:04,302 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 74 次
2025-04-30 11:05:04,820 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:04,859 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982303872}
2025-04-30 11:05:04,860 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 75 次
2025-04-30 11:05:05,071 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:05,075 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:05,077 - sqlalchemy.engine.Engine - INFO - [cached since 49.59s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:05,079 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:05,352 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:05,469 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982304409}
2025-04-30 11:05:05,470 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 76 次
2025-04-30 11:05:05,961 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:05,986 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982305003}
2025-04-30 11:05:05,987 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 77 次
2025-04-30 11:05:06,070 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:06,071 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:06,071 - sqlalchemy.engine.Engine - INFO - [cached since 50.59s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:06,072 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:06,492 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:06,510 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982305524}
2025-04-30 11:05:06,511 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 78 次
2025-04-30 11:05:07,008 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:07,055 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982306057}
2025-04-30 11:05:07,055 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 79 次
2025-04-30 11:05:07,086 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:07,087 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:07,087 - sqlalchemy.engine.Engine - INFO - [cached since 51.6s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:07,089 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:07,566 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:07,610 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982306624}
2025-04-30 11:05:07,610 - services.sync_service - INFO - 任务块 1917414702661652481 动作未完成(actionStatus为空)，已尝试 80 次，继续等待...
2025-04-30 11:05:08,106 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:08,108 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:08,111 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:08,112 - sqlalchemy.engine.Engine - INFO - [cached since 52.63s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:08,113 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:08,124 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982307140}
2025-04-30 11:05:08,126 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 81 次
2025-04-30 11:05:08,636 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:08,650 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982307667}
2025-04-30 11:05:08,651 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 82 次
2025-04-30 11:05:09,131 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:09,132 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:09,132 - sqlalchemy.engine.Engine - INFO - [cached since 53.65s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:09,133 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:09,163 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:09,180 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982308194}
2025-04-30 11:05:09,181 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 83 次
2025-04-30 11:05:09,695 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:09,718 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982308735}
2025-04-30 11:05:09,719 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 84 次
2025-04-30 11:05:10,145 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:10,147 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:10,148 - sqlalchemy.engine.Engine - INFO - [cached since 54.66s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:10,149 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:10,223 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:10,269 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982309283}
2025-04-30 11:05:10,270 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 85 次
2025-04-30 11:05:10,783 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:10,836 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982309845}
2025-04-30 11:05:10,837 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 86 次
2025-04-30 11:05:11,170 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:11,171 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:11,171 - sqlalchemy.engine.Engine - INFO - [cached since 55.69s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:11,172 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:11,327 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:11,374 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982310385}
2025-04-30 11:05:11,374 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 87 次
2025-04-30 11:05:11,872 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:11,913 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982310929}
2025-04-30 11:05:11,913 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 88 次
2025-04-30 11:05:12,181 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:12,182 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:12,183 - sqlalchemy.engine.Engine - INFO - [cached since 56.7s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:12,184 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:12,432 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:12,488 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982311493}
2025-04-30 11:05:12,489 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 89 次
2025-04-30 11:05:12,992 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:13,017 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982312032}
2025-04-30 11:05:13,018 - services.sync_service - INFO - 任务块 1917414702661652481 动作未完成(actionStatus为空)，已尝试 90 次，继续等待...
2025-04-30 11:05:13,209 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:13,210 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:13,210 - sqlalchemy.engine.Engine - INFO - [cached since 57.73s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:13,211 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:13,534 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:13,553 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982312569}
2025-04-30 11:05:13,553 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 91 次
2025-04-30 11:05:14,065 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:14,083 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982313099}
2025-04-30 11:05:14,084 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 92 次
2025-04-30 11:05:14,220 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:14,220 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:14,222 - sqlalchemy.engine.Engine - INFO - [cached since 58.74s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:14,223 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:14,607 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:14,649 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982313664}
2025-04-30 11:05:14,649 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 93 次
2025-04-30 11:05:15,150 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:15,192 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982314208}
2025-04-30 11:05:15,194 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 94 次
2025-04-30 11:05:15,227 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:15,228 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:15,229 - sqlalchemy.engine.Engine - INFO - [cached since 59.75s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:15,230 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:15,693 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:15,711 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982314726}
2025-04-30 11:05:15,712 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 95 次
2025-04-30 11:05:16,235 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:16,238 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:16,238 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:16,239 - sqlalchemy.engine.Engine - INFO - [cached since 60.76s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:16,240 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:16,280 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982315295}
2025-04-30 11:05:16,282 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 96 次
2025-04-30 11:05:16,791 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:16,819 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982315834}
2025-04-30 11:05:16,819 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 97 次
2025-04-30 11:05:17,227 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:17,228 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:17,228 - sqlalchemy.engine.Engine - INFO - [cached since 61.75s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:17,229 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:17,336 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:17,360 - services.sync_service - INFO - 成功获取任务块动作详情: 1917414702661652481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917414702661652481', 'tenantId': 1000, 'taskId': '1917414659854585858', 'taskBlockId': '1917414660643115009', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:04:24'}, 'timestamp': 1745982316375}
2025-04-30 11:05:17,361 - services.sync_service - DEBUG - 任务块 1917414702661652481 动作未完成，已尝试 98 次
2025-04-30 11:05:17,881 - services.sync_service - INFO - 正在获取任务块动作详情: 1917414702661652481
2025-04-30 11:05:17,881 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时且空闲，重启中...
2025-04-30 11:05:17,883 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 11:05:17,883 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 11:05:17,883 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 11:05:17,883 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 11:05:17,883 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 11:05:18,237 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:18,238 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:18,238 - sqlalchemy.engine.Engine - INFO - [cached since 62.76s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:18,239 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:19,263 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:19,264 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:19,265 - sqlalchemy.engine.Engine - INFO - [cached since 63.78s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:19,265 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:20,282 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:20,284 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:20,286 - sqlalchemy.engine.Engine - INFO - [cached since 64.8s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:20,290 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:21,309 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:21,310 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:21,310 - sqlalchemy.engine.Engine - INFO - [cached since 65.83s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:21,311 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:22,320 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:22,320 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:22,320 - sqlalchemy.engine.Engine - INFO - [cached since 66.84s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:22,322 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:23,335 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:23,335 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:23,336 - sqlalchemy.engine.Engine - INFO - [cached since 67.85s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:23,337 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:24,334 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:24,335 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:24,338 - sqlalchemy.engine.Engine - INFO - [cached since 68.85s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:24,342 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:25,376 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:25,376 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:25,380 - sqlalchemy.engine.Engine - INFO - [cached since 69.9s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:25,383 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:26,397 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:26,397 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:26,397 - sqlalchemy.engine.Engine - INFO - [cached since 70.92s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:26,400 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:27,411 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:27,412 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:27,412 - sqlalchemy.engine.Engine - INFO - [cached since 71.93s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:27,413 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:28,409 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:28,410 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:28,410 - sqlalchemy.engine.Engine - INFO - [cached since 72.93s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:28,411 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:29,421 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:29,422 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:29,422 - sqlalchemy.engine.Engine - INFO - [cached since 73.94s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:29,423 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:30,428 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:30,430 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:30,430 - sqlalchemy.engine.Engine - INFO - [cached since 74.95s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:30,433 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:31,431 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:31,432 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:31,432 - sqlalchemy.engine.Engine - INFO - [cached since 75.95s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:31,434 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:32,448 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:32,449 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:32,449 - sqlalchemy.engine.Engine - INFO - [cached since 76.97s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:32,450 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:33,465 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:33,466 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:33,467 - sqlalchemy.engine.Engine - INFO - [cached since 77.98s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:33,469 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:34,469 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:34,477 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:34,478 - sqlalchemy.engine.Engine - INFO - [cached since 78.99s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:34,479 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:35,494 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:35,500 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:35,507 - sqlalchemy.engine.Engine - INFO - [cached since 80.02s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:35,511 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:36,517 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:36,518 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:36,518 - sqlalchemy.engine.Engine - INFO - [cached since 81.04s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:36,520 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:37,545 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:37,546 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:37,546 - sqlalchemy.engine.Engine - INFO - [cached since 82.06s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:37,547 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:38,546 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:38,550 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:38,554 - sqlalchemy.engine.Engine - INFO - [cached since 83.07s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:38,559 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:39,557 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:39,558 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:39,559 - sqlalchemy.engine.Engine - INFO - [cached since 84.08s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:39,559 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:40,569 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:40,572 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:40,573 - sqlalchemy.engine.Engine - INFO - [cached since 85.09s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:40,576 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:41,576 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:41,580 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:41,584 - sqlalchemy.engine.Engine - INFO - [cached since 86.1s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:41,589 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:42,589 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:42,590 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:42,590 - sqlalchemy.engine.Engine - INFO - [cached since 87.11s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:42,590 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:43,571 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:43,571 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:43,572 - sqlalchemy.engine.Engine - INFO - [cached since 88.09s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:43,573 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:44,582 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:44,584 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:44,586 - sqlalchemy.engine.Engine - INFO - [cached since 89.1s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:44,590 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:45,609 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:45,609 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:45,609 - sqlalchemy.engine.Engine - INFO - [cached since 90.13s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:45,610 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:46,620 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:46,621 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:46,621 - sqlalchemy.engine.Engine - INFO - [cached since 91.14s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:46,622 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:47,601 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:47,602 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:47,602 - sqlalchemy.engine.Engine - INFO - [cached since 92.12s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:47,602 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:48,611 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:48,612 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:48,614 - sqlalchemy.engine.Engine - INFO - [cached since 93.13s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:48,620 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:49,622 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:49,626 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:49,626 - sqlalchemy.engine.Engine - INFO - [cached since 94.14s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:49,627 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:50,651 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:50,651 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:50,651 - sqlalchemy.engine.Engine - INFO - [cached since 95.17s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:50,653 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:51,663 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:51,664 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:51,664 - sqlalchemy.engine.Engine - INFO - [cached since 96.18s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:51,665 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:52,676 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:52,677 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:52,679 - sqlalchemy.engine.Engine - INFO - [cached since 97.2s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:52,684 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:53,701 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:53,701 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:53,701 - sqlalchemy.engine.Engine - INFO - [cached since 98.22s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:53,702 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:54,712 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:54,713 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:54,714 - sqlalchemy.engine.Engine - INFO - [cached since 99.23s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:54,714 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:55,725 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:55,726 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:55,727 - sqlalchemy.engine.Engine - INFO - [cached since 100.2s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:55,728 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:56,749 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:56,751 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:56,755 - sqlalchemy.engine.Engine - INFO - [cached since 101.3s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:56,760 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:57,760 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:57,760 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:57,761 - sqlalchemy.engine.Engine - INFO - [cached since 102.3s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:57,762 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:58,771 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:58,771 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:58,772 - sqlalchemy.engine.Engine - INFO - [cached since 103.3s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:58,773 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:05:59,770 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:05:59,772 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:05:59,772 - sqlalchemy.engine.Engine - INFO - [cached since 104.3s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:05:59,773 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:06:00,780 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:06:00,781 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:06:00,782 - sqlalchemy.engine.Engine - INFO - [cached since 105.3s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:06:00,787 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:06:01,808 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:06:01,808 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:06:01,811 - sqlalchemy.engine.Engine - INFO - [cached since 106.3s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:06:01,816 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:06:02,835 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:06:02,837 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:06:02,838 - sqlalchemy.engine.Engine - INFO - [cached since 107.4s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:06:02,841 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:06:02,897 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时且空闲，重启中...
2025-04-30 11:06:02,899 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 11:06:02,899 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 11:06:02,899 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 11:06:02,900 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 11:06:02,900 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时且空闲，重启中...
2025-04-30 11:06:02,900 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:06:02,901 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 11:06:02,901 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 6, 2, 897048))
2025-04-30 11:06:02,901 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 11:06:02,901 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 11:06:02,901 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 11:06:02,901 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 11:06:02,902 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 11:06:02,902 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时且空闲，重启中...
2025-04-30 11:06:02,902 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 11:06:02,902 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 11:06:02,902 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 11:06:02,903 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:06:02,903 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 11:06:02,903 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 11:06:02,903 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时且空闲，重启中...
2025-04-30 11:06:02,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 11:06:02,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 11:06:02,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 11:06:02,903 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 11:06:02,903 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 11:06:02,908 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 11:06:03,817 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:06:03,818 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:06:03,818 - sqlalchemy.engine.Engine - INFO - [cached since 108.3s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:06:03,822 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:06:04,840 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:06:04,843 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:06:04,847 - sqlalchemy.engine.Engine - INFO - [cached since 109.4s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:06:04,848 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:06:05,862 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:06:05,863 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:06:05,868 - sqlalchemy.engine.Engine - INFO - [cached since 110.4s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:06:05,871 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:06:06,874 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:06:06,874 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:06:06,874 - sqlalchemy.engine.Engine - INFO - [cached since 111.4s ago] ('8d703a5a-a861-438e-9a8c-590c79d02ccc',)
2025-04-30 11:06:06,876 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:06:07,187 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 11:06:07,187 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 11:06:07,188 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 11:06:07,188 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 11:06:07,188 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 11:06:07,189 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 11:06:07,189 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 11:06:07,189 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 11:06:07,189 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 11:06:07,189 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 11:06:07,190 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 11:06:07,190 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 11:06:07,190 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 11:06:07,190 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 11:06:07,193 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 11:06:07,193 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 11:06:07,194 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 11:06:07,194 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 11:07:24,149 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:07:24,211 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:07:24,213 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:07:24,947 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:07:25,006 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:07:25,010 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:07:25,072 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 11:07:25,120 - data.session - INFO - 正在初始化数据库...
2025-04-30 11:07:25,147 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 11:07:25,174 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:07:25,174 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:07:25,175 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:07:25,176 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:07:25,176 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:07:25,177 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:07:25,178 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:07:25,179 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 11:07:25,179 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:07:25,181 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 11:07:25,181 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:07:25,183 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 11:07:25,183 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:07:25,184 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 11:07:25,185 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:07:25,186 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 11:07:25,188 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:07:25,189 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 11:07:25,189 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:07:25,190 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 11:07:25,192 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:07:25,193 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 11:07:25,194 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:07:25,195 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 11:07:25,195 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:07:25,196 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 11:07:25,196 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:07:25,197 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 11:07:25,198 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:07:25,199 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:07:25,199 - data.session - INFO - 数据库表初始化完成
2025-04-30 11:07:25,571 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 11:07:25,571 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 11:07:25,571 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 11:07:25,572 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 11:07:25,572 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 11:07:25,572 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 11:07:25,572 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 11:07:25,573 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 11:07:25,573 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 11:07:25,573 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 11:07:25,574 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 11:07:25,575 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 11:07:25,577 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 11:07:25,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 11:07:25,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 11:07:25,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 11:07:25,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 11:07:25,579 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 11:07:25,579 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 11:07:25,580 - services.enhanced_scheduler.worker_manager - INFO - ======= 工作线程状态汇总 =======
2025-04-30 11:07:25,580 - services.enhanced_scheduler.worker_manager - INFO - 工作线程 0: 状态=running, 任务数=0, 当前任务=无, 心跳间隔=0.0秒, 处理中=False
2025-04-30 11:07:25,580 - services.enhanced_scheduler.worker_manager - INFO - 工作线程 1: 状态=running, 任务数=0, 当前任务=无, 心跳间隔=0.0秒, 处理中=False
2025-04-30 11:07:25,580 - services.enhanced_scheduler.worker_manager - INFO - 工作线程 2: 状态=running, 任务数=0, 当前任务=无, 心跳间隔=0.0秒, 处理中=False
2025-04-30 11:07:25,580 - services.enhanced_scheduler.worker_manager - INFO - 工作线程 3: 状态=running, 任务数=0, 当前任务=无, 心跳间隔=0.0秒, 处理中=False
2025-04-30 11:07:25,580 - services.enhanced_scheduler.worker_manager - INFO - 工作线程 4: 状态=running, 任务数=0, 当前任务=无, 心跳间隔=0.0秒, 处理中=False
2025-04-30 11:07:25,580 - services.enhanced_scheduler.worker_manager - INFO - ==============================
2025-04-30 11:07:25,580 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 11:07:25,581 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:07:25,582 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:07:25,582 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:07:25,582 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:07:25,583 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:07:25,583 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:07:25,583 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:07:25,584 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:07:25,593 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 11:07:25,593 - sqlalchemy.engine.Engine - INFO - [generated in 0.00068s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 11:07:25,595 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 11:07:25,595 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:07:25,596 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 11:07:25,597 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 11:07:25,597 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 11:07:25,597 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:07:25,599 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 11:07:25,600 - sqlalchemy.engine.Engine - INFO - [generated in 0.00055s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 11:07:25,601 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:07:25,602 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 11:07:25,602 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 11:07:25,602 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 11:07:25,602 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 11:07:25,603 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:07:25,603 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:07:25,604 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 11:07:25,604 - sqlalchemy.engine.Engine - INFO - [generated in 0.00022s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 7, 25, 597592))
2025-04-30 11:07:25,605 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:07:40,608 - services.enhanced_scheduler.worker_manager - INFO - ======= 工作线程状态汇总 =======
2025-04-30 11:07:40,608 - services.enhanced_scheduler.worker_manager - INFO - 工作线程 0: 状态=running, 任务数=0, 当前任务=无, 心跳间隔=15.0秒, 处理中=False
2025-04-30 11:07:40,608 - services.enhanced_scheduler.worker_manager - INFO - 工作线程 1: 状态=running, 任务数=0, 当前任务=无, 心跳间隔=15.0秒, 处理中=False
2025-04-30 11:07:40,609 - services.enhanced_scheduler.worker_manager - INFO - 工作线程 2: 状态=running, 任务数=0, 当前任务=无, 心跳间隔=15.0秒, 处理中=False
2025-04-30 11:07:40,609 - services.enhanced_scheduler.worker_manager - INFO - 工作线程 3: 状态=running, 任务数=0, 当前任务=无, 心跳间隔=15.0秒, 处理中=False
2025-04-30 11:07:40,609 - services.enhanced_scheduler.worker_manager - INFO - 工作线程 4: 状态=running, 任务数=0, 当前任务=无, 心跳间隔=15.0秒, 处理中=False
2025-04-30 11:07:40,609 - services.enhanced_scheduler.worker_manager - INFO - ==============================
2025-04-30 11:07:55,625 - services.enhanced_scheduler.worker_manager - INFO - ======= 工作线程状态汇总 =======
2025-04-30 11:07:55,625 - services.enhanced_scheduler.worker_manager - INFO - 工作线程 0: 状态=running, 任务数=0, 当前任务=无, 心跳间隔=30.1秒, 处理中=False
2025-04-30 11:07:55,626 - services.enhanced_scheduler.worker_manager - INFO - 工作线程 1: 状态=running, 任务数=0, 当前任务=无, 心跳间隔=30.1秒, 处理中=False
2025-04-30 11:07:55,627 - services.enhanced_scheduler.worker_manager - INFO - 工作线程 2: 状态=running, 任务数=0, 当前任务=无, 心跳间隔=30.1秒, 处理中=False
2025-04-30 11:07:55,629 - services.enhanced_scheduler.worker_manager - INFO - 工作线程 3: 状态=running, 任务数=0, 当前任务=无, 心跳间隔=30.1秒, 处理中=False
2025-04-30 11:07:55,630 - services.enhanced_scheduler.worker_manager - INFO - 工作线程 4: 状态=running, 任务数=0, 当前任务=无, 心跳间隔=30.1秒, 处理中=False
2025-04-30 11:07:55,633 - services.enhanced_scheduler.worker_manager - INFO - ==============================
2025-04-30 11:08:06,712 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 11:08:06,716 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:06,719 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:08:06,719 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:08:06,722 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:06,724 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:06,725 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:08:06,727 - sqlalchemy.engine.Engine - INFO - [cached since 0.008113s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:08:06,728 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:06,729 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 11:08:06,729 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 11:08:06,729 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 11:08:06,730 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:06,731 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 11:08:06,732 - sqlalchemy.engine.Engine - INFO - [generated in 0.00092s] (None, datetime.datetime(2025, 4, 30, 11, 8, 6, 731887), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 11:08:06,733 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:06,749 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:06,750 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:08:06,751 - sqlalchemy.engine.Engine - INFO - [cached since 0.03128s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:08:06,753 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:08:06,753 - sqlalchemy.engine.Engine - INFO - [generated in 0.00065s] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 11, 8, 6, 729887), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.4", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 11, 8, 6, 753350), datetime.datetime(2025, 4, 30, 11, 8, 6, 753350), 0)
2025-04-30 11:08:06,755 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:06,763 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:06,764 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:06,765 - sqlalchemy.engine.Engine - INFO - [generated in 0.00088s] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:06,766 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:06,767 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 0395cbbb-0e4b-477a-9e99-9ca2b791d008 (优先级 1) 添加到队列 0
2025-04-30 11:08:06,770 - services.sync_service - INFO - 正在同步创建任务到天风系统: 0395cbbb-0e4b-477a-9e99-9ca2b791d008
2025-04-30 11:08:06,771 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"0395cbbb-0e4b-477a-9e99-9ca2b791d008","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 11:08:06","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 11:08:06,796 - services.sync_service - INFO - 成功同步任务到系统任务: 0395cbbb-0e4b-477a-9e99-9ca2b791d008
2025-04-30 11:08:06,797 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 0395cbbb-0e4b-477a-9e99-9ca2b791d008
2025-04-30 11:08:06,797 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 0395cbbb-0e4b-477a-9e99-9ca2b791d008
2025-04-30 11:08:06,798 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0855秒
2025-04-30 11:08:06,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: 0395cbbb-0e4b-477a-9e99-9ca2b791d008, 优先级: 1
2025-04-30 11:08:06,799 - services.execution.task_executor - DEBUG - 任务 0395cbbb-0e4b-477a-9e99-9ca2b791d008 设置超时时间: 3600秒
2025-04-30 11:08:06,800 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:06,801 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:06,801 - sqlalchemy.engine.Engine - INFO - [cached since 0.03734s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:06,803 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:08:06,803 - sqlalchemy.engine.Engine - INFO - [cached since 0.08402s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:08:06,805 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:06,806 - sqlalchemy.engine.Engine - INFO - [generated in 0.00059s] (datetime.datetime(2025, 4, 30, 11, 8, 6, 805353), datetime.datetime(2025, 4, 30, 11, 8, 6, 805353), '0395cbbb-0e4b-477a-9e99-9ca2b791d008')
2025-04-30 11:08:06,807 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:06,814 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:06,815 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:06,816 - sqlalchemy.engine.Engine - INFO - [generated in 0.00087s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 8, 6, 815881), '0395cbbb-0e4b-477a-9e99-9ca2b791d008')
2025-04-30 11:08:06,818 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:06,824 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 11:08:06,825 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:06,827 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:08:06,827 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] ('dba8ab1d-6501-4c6d-94fa-09860fb6d86b', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0395cbbb-0e4b-477a-9e99-9ca2b791d008', datetime.datetime(2025, 4, 30, 11, 8, 6, 825940), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 8, 6, 827873), datetime.datetime(2025, 4, 30, 11, 8, 6, 827873), 0)
2025-04-30 11:08:06,837 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:06,844 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:06,850 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:08:06,851 - sqlalchemy.engine.Engine - INFO - [generated in 0.00131s] ('dba8ab1d-6501-4c6d-94fa-09860fb6d86b',)
2025-04-30 11:08:06,853 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 11:08:06,853 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 11:08:06,854 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:08:06,855 - sqlalchemy.engine.Engine - INFO - [generated in 0.00111s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 8, 6, 854903), 'dba8ab1d-6501-4c6d-94fa-09860fb6d86b')
2025-04-30 11:08:06,857 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:06,869 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 11:08:06,870 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 11:08:06,871 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 11:08:06,874 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:06,876 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:08:06,877 - sqlalchemy.engine.Engine - INFO - [cached since 0.05053s ago] ('ff5bcc73-f90d-4495-a2d2-61f55872d15b', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0395cbbb-0e4b-477a-9e99-9ca2b791d008', datetime.datetime(2025, 4, 30, 11, 8, 6, 872934), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 8, 6, 876869), datetime.datetime(2025, 4, 30, 11, 8, 6, 876869), 0)
2025-04-30 11:08:06,879 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:06,886 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: ff5bcc73-f90d-4495-a2d2-61f55872d15b
2025-04-30 11:08:06,886 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:06,889 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:08:06,890 - sqlalchemy.engine.Engine - INFO - [cached since 0.04043s ago] ('ff5bcc73-f90d-4495-a2d2-61f55872d15b',)
2025-04-30 11:08:06,893 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 11:08:06,893 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 11:08:06,894 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:08:06,894 - sqlalchemy.engine.Engine - INFO - [cached since 0.04013s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 8, 6, 894959), 'ff5bcc73-f90d-4495-a2d2-61f55872d15b')
2025-04-30 11:08:06,896 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:06,902 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 11:08:06,902 - services.sync_service - INFO - 正在创建选择AMR任务: 0395cbbb-0e4b-477a-9e99-9ca2b791d008, 站点: TK01
2025-04-30 11:08:06,926 - services.sync_service - INFO - 成功为任务选择AMR: 0395cbbb-0e4b-477a-9e99-9ca2b791d008, AMR: None
2025-04-30 11:08:06,927 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917415635181260802 的AMR选择结果
2025-04-30 11:08:06,927 - services.sync_service - INFO - 开始等待任务块 1917415635181260802 的AMR选择结果
2025-04-30 11:08:06,927 - services.sync_service - INFO - 正在获取任务块详情: 1917415635181260802
2025-04-30 11:08:06,947 - services.sync_service - INFO - 成功获取任务块详情: 1917415635181260802 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415635181260802', 'taskId': '1917415634610835458', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:08:06', 'updateTime': None}, 'timestamp': 1745982485962}
2025-04-30 11:08:06,947 - services.sync_service - DEBUG - 任务块 1917415635181260802 AMR选择未完成，已尝试 1 次
2025-04-30 11:08:07,448 - services.sync_service - INFO - 正在获取任务块详情: 1917415635181260802
2025-04-30 11:08:07,500 - services.sync_service - INFO - 成功获取任务块详情: 1917415635181260802 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415635181260802', 'taskId': '1917415634610835458', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:08:06', 'updateTime': None}, 'timestamp': 1745982486517}
2025-04-30 11:08:07,500 - services.sync_service - DEBUG - 任务块 1917415635181260802 AMR选择未完成，已尝试 2 次
2025-04-30 11:08:07,821 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:07,821 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:07,823 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:07,824 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:07,978 - services.sync_service - INFO - 正在获取任务块详情: 1917415635181260802
2025-04-30 11:08:08,014 - services.sync_service - INFO - 成功获取任务块详情: 1917415635181260802 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415635181260802', 'taskId': '1917415634610835458', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:08:06', 'updateTime': None}, 'timestamp': 1745982487034}
2025-04-30 11:08:08,014 - services.sync_service - DEBUG - 任务块 1917415635181260802 AMR选择未完成，已尝试 3 次
2025-04-30 11:08:08,504 - services.sync_service - INFO - 正在获取任务块详情: 1917415635181260802
2025-04-30 11:08:08,665 - services.sync_service - INFO - 成功获取任务块详情: 1917415635181260802 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415635181260802', 'taskId': '1917415634610835458', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:08:06', 'updateTime': None}, 'timestamp': 1745982487640}
2025-04-30 11:08:08,665 - services.sync_service - DEBUG - 任务块 1917415635181260802 AMR选择未完成，已尝试 4 次
2025-04-30 11:08:08,830 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:08,832 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:08,833 - sqlalchemy.engine.Engine - INFO - [cached since 1.01s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:08,835 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:09,157 - services.sync_service - INFO - 正在获取任务块详情: 1917415635181260802
2025-04-30 11:08:09,212 - services.sync_service - INFO - 成功获取任务块详情: 1917415635181260802 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415635181260802', 'taskId': '1917415634610835458', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:08:06', 'updateTime': None}, 'timestamp': 1745982488205}
2025-04-30 11:08:09,214 - services.sync_service - DEBUG - 任务块 1917415635181260802 AMR选择未完成，已尝试 5 次
2025-04-30 11:08:09,699 - services.sync_service - INFO - 正在获取任务块详情: 1917415635181260802
2025-04-30 11:08:09,754 - services.sync_service - INFO - 成功获取任务块详情: 1917415635181260802 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415635181260802', 'taskId': '1917415634610835458', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:08:06', 'updateTime': None}, 'timestamp': 1745982488767}
2025-04-30 11:08:09,755 - services.sync_service - DEBUG - 任务块 1917415635181260802 AMR选择未完成，已尝试 6 次
2025-04-30 11:08:09,842 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:09,846 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:09,850 - sqlalchemy.engine.Engine - INFO - [cached since 2.028s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:09,854 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:10,275 - services.sync_service - INFO - 正在获取任务块详情: 1917415635181260802
2025-04-30 11:08:10,309 - services.sync_service - INFO - 成功获取任务块详情: 1917415635181260802 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415635181260802', 'taskId': '1917415634610835458', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:08:06', 'updateTime': None}, 'timestamp': 1745982489329}
2025-04-30 11:08:10,310 - services.sync_service - DEBUG - 任务块 1917415635181260802 AMR选择未完成，已尝试 7 次
2025-04-30 11:08:10,637 - services.enhanced_scheduler.worker_manager - INFO - ======= 工作线程状态汇总 =======
2025-04-30 11:08:10,638 - services.enhanced_scheduler.worker_manager - INFO - 工作线程 0: 状态=running, 任务数=0, 当前任务=无, 心跳间隔=45.1秒, 处理中=False
2025-04-30 11:08:10,638 - services.enhanced_scheduler.worker_manager - INFO - 工作线程 1: 状态=running, 任务数=0, 当前任务=无, 心跳间隔=3.8秒, 处理中=False
2025-04-30 11:08:10,638 - services.enhanced_scheduler.worker_manager - INFO - 工作线程 2: 状态=running, 任务数=0, 当前任务=无, 心跳间隔=45.1秒, 处理中=False
2025-04-30 11:08:10,641 - services.enhanced_scheduler.worker_manager - INFO - 工作线程 3: 状态=running, 任务数=0, 当前任务=无, 心跳间隔=45.1秒, 处理中=False
2025-04-30 11:08:10,643 - services.enhanced_scheduler.worker_manager - INFO - 工作线程 4: 状态=running, 任务数=0, 当前任务=无, 心跳间隔=45.1秒, 处理中=False
2025-04-30 11:08:10,644 - services.enhanced_scheduler.worker_manager - INFO - ==============================
2025-04-30 11:08:10,809 - services.sync_service - INFO - 正在获取任务块详情: 1917415635181260802
2025-04-30 11:08:10,824 - services.sync_service - INFO - 成功获取任务块详情: 1917415635181260802 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415635181260802', 'taskId': '1917415634610835458', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:08:06', 'updateTime': None}, 'timestamp': 1745982489844}
2025-04-30 11:08:10,826 - services.sync_service - DEBUG - 任务块 1917415635181260802 AMR选择未完成，已尝试 8 次
2025-04-30 11:08:10,871 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:10,872 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:10,872 - sqlalchemy.engine.Engine - INFO - [cached since 3.05s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:10,873 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:11,338 - services.sync_service - INFO - 正在获取任务块详情: 1917415635181260802
2025-04-30 11:08:11,403 - services.sync_service - INFO - 成功获取任务块详情: 1917415635181260802 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415635181260802', 'taskId': '1917415634610835458', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:08:06', 'updateTime': None}, 'timestamp': 1745982490374}
2025-04-30 11:08:11,404 - services.sync_service - DEBUG - 任务块 1917415635181260802 AMR选择未完成，已尝试 9 次
2025-04-30 11:08:11,864 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:11,865 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:11,865 - sqlalchemy.engine.Engine - INFO - [cached since 4.043s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:11,866 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:11,911 - services.sync_service - INFO - 正在获取任务块详情: 1917415635181260802
2025-04-30 11:08:11,955 - services.sync_service - INFO - 成功获取任务块详情: 1917415635181260802 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415635181260802', 'taskId': '1917415634610835458', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:08:06', 'updateTime': None}, 'timestamp': 1745982490972}
2025-04-30 11:08:11,955 - services.sync_service - INFO - 任务块 1917415635181260802 AMR选择未完成(amrId/appointAmrId/appointAmrGroupId均为空)，已尝试 10 次，继续等待...
2025-04-30 11:08:12,455 - services.sync_service - INFO - 正在获取任务块详情: 1917415635181260802
2025-04-30 11:08:12,510 - services.sync_service - INFO - 成功获取任务块详情: 1917415635181260802 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415635181260802', 'taskId': '1917415634610835458', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:08:06', 'updateTime': None}, 'timestamp': 1745982491522}
2025-04-30 11:08:12,510 - services.sync_service - DEBUG - 任务块 1917415635181260802 AMR选择未完成，已尝试 11 次
2025-04-30 11:08:12,876 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:12,877 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:12,877 - sqlalchemy.engine.Engine - INFO - [cached since 5.055s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:12,879 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:13,031 - services.sync_service - INFO - 正在获取任务块详情: 1917415635181260802
2025-04-30 11:08:13,074 - services.sync_service - INFO - 成功获取任务块详情: 1917415635181260802 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415635181260802', 'taskId': '1917415634610835458', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:08:06', 'updateTime': None}, 'timestamp': 1745982492093}
2025-04-30 11:08:13,075 - services.sync_service - DEBUG - 任务块 1917415635181260802 AMR选择未完成，已尝试 12 次
2025-04-30 11:08:13,590 - services.sync_service - INFO - 正在获取任务块详情: 1917415635181260802
2025-04-30 11:08:13,666 - services.sync_service - INFO - 成功获取任务块详情: 1917415635181260802 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415635181260802', 'taskId': '1917415634610835458', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:08:06', 'updateTime': None}, 'timestamp': 1745982492625}
2025-04-30 11:08:13,667 - services.sync_service - DEBUG - 任务块 1917415635181260802 AMR选择未完成，已尝试 13 次
2025-04-30 11:08:13,897 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:13,898 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:13,899 - sqlalchemy.engine.Engine - INFO - [cached since 6.077s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:13,900 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:14,160 - services.sync_service - INFO - 正在获取任务块详情: 1917415635181260802
2025-04-30 11:08:14,174 - services.sync_service - INFO - 成功获取任务块详情: 1917415635181260802 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415635181260802', 'taskId': '1917415634610835458', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:08:06', 'updateTime': None}, 'timestamp': 1745982493194}
2025-04-30 11:08:14,175 - services.sync_service - DEBUG - 任务块 1917415635181260802 AMR选择未完成，已尝试 14 次
2025-04-30 11:08:14,700 - services.sync_service - INFO - 正在获取任务块详情: 1917415635181260802
2025-04-30 11:08:14,728 - services.sync_service - INFO - 成功获取任务块详情: 1917415635181260802 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415635181260802', 'taskId': '1917415634610835458', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:08:06', 'updateTime': '2025-04-30 11:08:13'}, 'timestamp': 1745982493747}
2025-04-30 11:08:14,729 - services.sync_service - INFO - 任务块 1917415635181260802 已选择AMR: 1912328602264645634，共尝试 15 次
2025-04-30 11:08:14,729 - services.execution.handlers.robot_scheduling - INFO - 准备更新任务 0395cbbb-0e4b-477a-9e99-9ca2b791d008 的机器人ID: 1912328602264645634
2025-04-30 11:08:14,731 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:14,732 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.agv_id 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:14,732 - sqlalchemy.engine.Engine - INFO - [generated in 0.00081s] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:14,734 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET agv_id=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:14,734 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] ('1912328602264645634', datetime.datetime(2025, 4, 30, 11, 8, 14, 734983), '0395cbbb-0e4b-477a-9e99-9ca2b791d008')
2025-04-30 11:08:14,736 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:14,751 - services.execution.handlers.robot_scheduling - INFO - 成功更新任务记录 0395cbbb-0e4b-477a-9e99-9ca2b791d008 的agv_id字段: 1912328602264645634
2025-04-30 11:08:14,751 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 11:08:14,752 - services.execution.handlers.robot_scheduling - INFO - 块 b1(ID:1) 有 1 个子块
2025-04-30 11:08:14,752 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: [2]
2025-04-30 11:08:14,752 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 11:08:14,752 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 1 个
2025-04-30 11:08:14,752 - services.execution.handlers.robot_scheduling - INFO - 1. b2(ID:2, 类型:CAgvOperationBp, 关系:direct_child)
2025-04-30 11:08:14,752 - services.execution.handlers.robot_scheduling - INFO - 开始执行选择机器人块 b1 的子块
2025-04-30 11:08:14,752 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-30 11:08:14,752 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 1 个子块
2025-04-30 11:08:14,752 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b2, ID: 2, 类型: CAgvOperationBp
2025-04-30 11:08:14,753 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:14,755 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:08:14,755 - sqlalchemy.engine.Engine - INFO - [cached since 7.928s ago] ('95229a1a-42c6-4be9-a266-eb315a332a58', 'b2', '2', '', '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"targetSiteLabel": "PT02", "scriptName": "JackUnload"}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917415635181260802"}', 'CAgvOperationBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0395cbbb-0e4b-477a-9e99-9ca2b791d008', datetime.datetime(2025, 4, 30, 11, 8, 14, 753931), <TaskBlockRecordStatus.RUNNING: 1001>, '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917415635181260802"}', 1, datetime.datetime(2025, 4, 30, 11, 8, 14, 754930), datetime.datetime(2025, 4, 30, 11, 8, 14, 754930), 0)
2025-04-30 11:08:14,755 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:14,762 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 95229a1a-42c6-4be9-a266-eb315a332a58
2025-04-30 11:08:14,763 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:14,763 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:08:14,764 - sqlalchemy.engine.Engine - INFO - [cached since 7.914s ago] ('95229a1a-42c6-4be9-a266-eb315a332a58',)
2025-04-30 11:08:14,765 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-30 11:08:14,766 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-30 11:08:14,766 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:08:14,767 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] ('{"selectedAgvId": "1912328602264645634"}', '执行中', "{'agv_for_block_2': '1912328602264645634', 'agv_for_b2': '1912328602264645634', 'agv_task_id_2': '1917415635181260802'}", '{"blocks": {"b2": {"selectedAgvId": "1912328602264645634"}}}', '执行中', datetime.datetime(2025, 4, 30, 11, 8, 14, 766231), '95229a1a-42c6-4be9-a266-eb315a332a58')
2025-04-30 11:08:14,768 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:14,776 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-30 11:08:14,776 - services.execution.handlers.robot_scheduling - INFO - 找到块 b2(ID:2) 专用的机器人ID: 1912328602264645634
2025-04-30 11:08:14,776 - services.execution.handlers.robot_scheduling - INFO - 执行机器人通用动作，块 b2(ID:2) 使用机器人: 1912328602264645634, 目标站点: PT02
2025-04-30 11:08:14,777 - services.sync_service - INFO - 正在为任务添加动作: 1917415635181260802, 站点: PT02, 动作: JackUnload
2025-04-30 11:08:14,794 - services.sync_service - INFO - 成功为任务添加动作: 1917415635181260802, 站点: PT02, 动作: JackUnload
2025-04-30 11:08:14,794 - services.sync_service - INFO - 开始等待任务块 1917415668182044673 的动作完成
2025-04-30 11:08:14,795 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:14,815 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982493834}
2025-04-30 11:08:14,815 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 1 次
2025-04-30 11:08:14,916 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:14,917 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:14,918 - sqlalchemy.engine.Engine - INFO - [cached since 7.096s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:14,923 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:15,320 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:15,403 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982494395}
2025-04-30 11:08:15,404 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 2 次
2025-04-30 11:08:15,908 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:15,933 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982494951}
2025-04-30 11:08:15,934 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 3 次
2025-04-30 11:08:15,934 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:15,935 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:15,935 - sqlalchemy.engine.Engine - INFO - [cached since 8.113s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:15,936 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:16,451 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:16,467 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982495487}
2025-04-30 11:08:16,468 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 4 次
2025-04-30 11:08:16,935 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:16,936 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:16,936 - sqlalchemy.engine.Engine - INFO - [cached since 9.114s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:16,937 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:16,966 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:17,007 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982496011}
2025-04-30 11:08:17,008 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 5 次
2025-04-30 11:08:17,507 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:17,588 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982496600}
2025-04-30 11:08:17,588 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 6 次
2025-04-30 11:08:17,928 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:17,930 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:17,931 - sqlalchemy.engine.Engine - INFO - [cached since 10.11s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:17,933 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:18,100 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:18,150 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982497161}
2025-04-30 11:08:18,151 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 7 次
2025-04-30 11:08:18,671 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:18,714 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982497733}
2025-04-30 11:08:18,716 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 8 次
2025-04-30 11:08:18,952 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:18,953 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:18,953 - sqlalchemy.engine.Engine - INFO - [cached since 11.13s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:18,954 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:19,199 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:19,226 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982498246}
2025-04-30 11:08:19,229 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 9 次
2025-04-30 11:08:19,744 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:19,830 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982498821}
2025-04-30 11:08:19,830 - services.sync_service - INFO - 任务块 1917415668182044673 动作未完成(actionStatus为空)，已尝试 10 次，继续等待...
2025-04-30 11:08:19,945 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:19,946 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:19,948 - sqlalchemy.engine.Engine - INFO - [cached since 12.13s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:19,949 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:20,333 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:20,352 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982499371}
2025-04-30 11:08:20,353 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 11 次
2025-04-30 11:08:20,872 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:20,965 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:20,971 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:20,972 - sqlalchemy.engine.Engine - INFO - [cached since 13.15s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:20,976 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:21,072 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982500088}
2025-04-30 11:08:21,073 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 12 次
2025-04-30 11:08:21,569 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:21,584 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982500605}
2025-04-30 11:08:21,585 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 13 次
2025-04-30 11:08:21,994 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:21,996 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:21,997 - sqlalchemy.engine.Engine - INFO - [cached since 14.17s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:21,998 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:22,103 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:22,137 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982501156}
2025-04-30 11:08:22,138 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 14 次
2025-04-30 11:08:22,645 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:22,695 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982501707}
2025-04-30 11:08:22,696 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 15 次
2025-04-30 11:08:22,972 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:22,972 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:22,973 - sqlalchemy.engine.Engine - INFO - [cached since 15.15s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:22,973 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:23,216 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:23,245 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982502265}
2025-04-30 11:08:23,246 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 16 次
2025-04-30 11:08:23,730 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:23,815 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982502791}
2025-04-30 11:08:23,815 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 17 次
2025-04-30 11:08:23,994 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:23,994 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:23,994 - sqlalchemy.engine.Engine - INFO - [cached since 16.17s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:23,996 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:24,335 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:24,429 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982503409}
2025-04-30 11:08:24,429 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 18 次
2025-04-30 11:08:24,938 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:24,959 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982503979}
2025-04-30 11:08:24,960 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 19 次
2025-04-30 11:08:25,002 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:25,002 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:25,002 - sqlalchemy.engine.Engine - INFO - [cached since 17.18s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:25,003 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:25,469 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:25,516 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982504535}
2025-04-30 11:08:25,516 - services.sync_service - INFO - 任务块 1917415668182044673 动作未完成(actionStatus为空)，已尝试 20 次，继续等待...
2025-04-30 11:08:25,625 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:25,625 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 11:08:25,627 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 8, 25, 624012))
2025-04-30 11:08:25,629 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:25,654 - services.enhanced_scheduler.worker_manager - INFO - ======= 工作线程状态汇总 =======
2025-04-30 11:08:25,654 - services.enhanced_scheduler.worker_manager - INFO - 工作线程 0: 状态=running, 任务数=0, 当前任务=无, 心跳间隔=60.1秒, 处理中=False
2025-04-30 11:08:25,654 - services.enhanced_scheduler.worker_manager - INFO - 工作线程 1: 状态=running, 任务数=0, 当前任务=无, 心跳间隔=18.9秒, 处理中=False
2025-04-30 11:08:25,654 - services.enhanced_scheduler.worker_manager - INFO - 工作线程 2: 状态=running, 任务数=0, 当前任务=无, 心跳间隔=60.1秒, 处理中=False
2025-04-30 11:08:25,654 - services.enhanced_scheduler.worker_manager - INFO - 工作线程 3: 状态=running, 任务数=0, 当前任务=无, 心跳间隔=60.1秒, 处理中=False
2025-04-30 11:08:25,654 - services.enhanced_scheduler.worker_manager - INFO - 工作线程 4: 状态=running, 任务数=0, 当前任务=无, 心跳间隔=60.1秒, 处理中=False
2025-04-30 11:08:25,655 - services.enhanced_scheduler.worker_manager - INFO - ==============================
2025-04-30 11:08:25,655 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时且空闲，重启中...
2025-04-30 11:08:25,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 11:08:25,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 11:08:25,658 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 11:08:25,658 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 11:08:25,659 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时且空闲，重启中...
2025-04-30 11:08:25,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 11:08:25,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 11:08:25,659 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 11:08:25,660 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 11:08:25,660 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 11:08:25,661 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时且空闲，重启中...
2025-04-30 11:08:25,661 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 11:08:25,662 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 11:08:25,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 11:08:25,663 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 11:08:25,663 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 11:08:25,663 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时且空闲，重启中...
2025-04-30 11:08:25,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 11:08:25,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 11:08:25,663 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 11:08:25,663 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 11:08:25,664 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 11:08:25,669 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 11:08:26,013 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:26,014 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:26,014 - sqlalchemy.engine.Engine - INFO - [cached since 18.19s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:26,015 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:26,043 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:26,068 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982505089}
2025-04-30 11:08:26,068 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 21 次
2025-04-30 11:08:26,589 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:26,629 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982505649}
2025-04-30 11:08:26,631 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 22 次
2025-04-30 11:08:27,021 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:27,022 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:27,022 - sqlalchemy.engine.Engine - INFO - [cached since 19.2s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:27,023 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:27,130 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:27,257 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982506258}
2025-04-30 11:08:27,258 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 23 次
2025-04-30 11:08:27,764 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:27,806 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982506825}
2025-04-30 11:08:27,806 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 24 次
2025-04-30 11:08:28,027 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:28,028 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:28,029 - sqlalchemy.engine.Engine - INFO - [cached since 20.21s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:28,030 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:28,312 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:28,338 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982507359}
2025-04-30 11:08:28,341 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 25 次
2025-04-30 11:08:28,846 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:28,888 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982507892}
2025-04-30 11:08:28,888 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 26 次
2025-04-30 11:08:29,032 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:29,035 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:29,036 - sqlalchemy.engine.Engine - INFO - [cached since 21.21s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:29,039 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:29,404 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:29,438 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982508458}
2025-04-30 11:08:29,439 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 27 次
2025-04-30 11:08:29,963 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:29,983 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982509002}
2025-04-30 11:08:29,983 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 28 次
2025-04-30 11:08:30,040 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:30,040 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:30,041 - sqlalchemy.engine.Engine - INFO - [cached since 22.22s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:30,043 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:30,478 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:30,498 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982509518}
2025-04-30 11:08:30,501 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 29 次
2025-04-30 11:08:31,012 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:31,042 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:31,044 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:31,046 - sqlalchemy.engine.Engine - INFO - [cached since 23.22s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:31,047 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:31,052 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982510073}
2025-04-30 11:08:31,052 - services.sync_service - INFO - 任务块 1917415668182044673 动作未完成(actionStatus为空)，已尝试 30 次，继续等待...
2025-04-30 11:08:31,569 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:31,592 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982510609}
2025-04-30 11:08:31,593 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 31 次
2025-04-30 11:08:32,051 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:32,053 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:32,053 - sqlalchemy.engine.Engine - INFO - [cached since 24.23s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:32,054 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:32,100 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:32,124 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982511144}
2025-04-30 11:08:32,125 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 32 次
2025-04-30 11:08:32,625 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:32,645 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982511661}
2025-04-30 11:08:32,647 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 33 次
2025-04-30 11:08:33,060 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:33,060 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:33,061 - sqlalchemy.engine.Engine - INFO - [cached since 25.24s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:33,062 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:33,154 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:33,175 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982512190}
2025-04-30 11:08:33,175 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 34 次
2025-04-30 11:08:33,683 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:33,708 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982512727}
2025-04-30 11:08:33,709 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 35 次
2025-04-30 11:08:34,087 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:34,089 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:34,091 - sqlalchemy.engine.Engine - INFO - [cached since 26.27s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:34,095 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:34,211 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:34,224 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982513245}
2025-04-30 11:08:34,225 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 36 次
2025-04-30 11:08:34,723 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:34,739 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982513759}
2025-04-30 11:08:34,740 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 37 次
2025-04-30 11:08:35,097 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:35,100 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:35,100 - sqlalchemy.engine.Engine - INFO - [cached since 27.28s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:35,104 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:35,251 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:35,294 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982514314}
2025-04-30 11:08:35,294 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 38 次
2025-04-30 11:08:35,809 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:36,024 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982514975}
2025-04-30 11:08:36,025 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 39 次
2025-04-30 11:08:36,118 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:36,118 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:36,119 - sqlalchemy.engine.Engine - INFO - [cached since 28.3s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:36,119 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:36,523 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:36,606 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982515591}
2025-04-30 11:08:36,607 - services.sync_service - INFO - 任务块 1917415668182044673 动作未完成(actionStatus为空)，已尝试 40 次，继续等待...
2025-04-30 11:08:37,102 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:37,103 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:37,104 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:37,104 - sqlalchemy.engine.Engine - INFO - [cached since 29.28s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:37,105 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:37,274 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982516274}
2025-04-30 11:08:37,276 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 41 次
2025-04-30 11:08:37,786 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:37,830 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982516848}
2025-04-30 11:08:37,830 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 42 次
2025-04-30 11:08:38,113 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:38,114 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:38,117 - sqlalchemy.engine.Engine - INFO - [cached since 30.29s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:38,120 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:38,317 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:38,340 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982517356}
2025-04-30 11:08:38,341 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 43 次
2025-04-30 11:08:38,859 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:38,949 - services.sync_service - INFO - 成功获取任务块动作详情: 1917415668182044673 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917415668182044673', 'tenantId': 1000, 'taskId': '1917415634610835458', 'taskBlockId': '1917415635181260802', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:08:14'}, 'timestamp': 1745982517937}
2025-04-30 11:08:38,950 - services.sync_service - DEBUG - 任务块 1917415668182044673 动作未完成，已尝试 44 次
2025-04-30 11:08:39,123 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:08:39,123 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:08:39,124 - sqlalchemy.engine.Engine - INFO - [cached since 31.3s ago] ('0395cbbb-0e4b-477a-9e99-9ca2b791d008',)
2025-04-30 11:08:39,125 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:08:39,465 - services.sync_service - INFO - 正在获取任务块动作详情: 1917415668182044673
2025-04-30 11:08:39,496 - app - INFO - 应用程序关闭中...
2025-04-30 11:08:39,497 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 11:08:39,497 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 11:08:39,497 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 11:08:39,497 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 11:08:39,497 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 11:08:39,497 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 11:08:39,497 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 11:08:39,497 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 11:08:39,498 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 11:08:39,498 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 11:08:39,498 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 11:08:39,498 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 11:08:39,498 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 11:08:39,498 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 11:08:39,498 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 11:08:39,498 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 3
2025-04-30 11:08:39,498 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 11:08:39,498 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 11:08:39,498 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 11:08:39,499 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 11:08:39,499 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 11:08:39,499 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 11:08:39,501 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 11:08:39,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 11:08:39,504 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 11:08:39,506 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 11:08:39,506 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 11:08:39,506 - app - INFO - 增强版任务调度器已停止
2025-04-30 11:08:39,507 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 11:08:39,510 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 11:08:39,511 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 11:08:39,511 - data.session - INFO - 数据库连接已关闭
2025-04-30 11:23:23,999 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:23:24,062 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:23:24,063 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:23:24,740 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:23:24,797 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:23:24,799 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:23:24,857 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 11:23:24,902 - data.session - INFO - 正在初始化数据库...
2025-04-30 11:23:24,929 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 11:23:24,954 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:23:24,955 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:23:24,955 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:23:24,956 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:23:24,956 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:23:24,957 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:23:24,957 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:23:24,958 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 11:23:24,958 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:23:24,960 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 11:23:24,960 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:23:24,961 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 11:23:24,962 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:23:24,963 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 11:23:24,963 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:23:24,964 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 11:23:24,965 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:23:24,966 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 11:23:24,966 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:23:24,967 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 11:23:24,968 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:23:24,969 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 11:23:24,970 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:23:24,971 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 11:23:24,971 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:23:24,972 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 11:23:24,972 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:23:24,974 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 11:23:24,974 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:23:24,975 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:23:24,975 - data.session - INFO - 数据库表初始化完成
2025-04-30 11:23:25,373 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 11:23:25,374 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 11:23:25,374 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 11:23:25,374 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 11:23:25,375 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 11:23:25,375 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 11:23:25,376 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 11:23:25,376 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 11:23:25,376 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 11:23:25,376 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 11:23:25,376 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 11:23:25,377 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 11:23:25,377 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 11:23:25,378 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 11:23:25,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 11:23:25,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 11:23:25,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 11:23:25,379 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 11:23:25,380 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 11:23:25,380 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 11:23:25,391 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:23:25,392 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:23:25,392 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:23:25,394 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:23:25,394 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:23:25,395 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:23:25,396 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:23:25,397 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:23:25,405 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 11:23:25,406 - sqlalchemy.engine.Engine - INFO - [generated in 0.00073s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 11:23:25,407 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 11:23:25,408 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:23:25,409 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 11:23:25,410 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 11:23:25,410 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 11:23:25,411 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:23:25,412 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 11:23:25,413 - sqlalchemy.engine.Engine - INFO - [generated in 0.00073s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 11:23:25,436 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:23:25,437 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:23:25,437 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 11:23:25,437 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 11:23:25,438 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 11:23:25,438 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 11:23:25,440 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:23:25,443 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 11:23:25,443 - sqlalchemy.engine.Engine - INFO - [generated in 0.00085s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 23, 25, 410292))
2025-04-30 11:23:25,445 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:24:19,570 - app - INFO - 应用程序关闭中...
2025-04-30 11:24:19,570 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 11:24:19,570 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 11:24:19,570 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 11:24:19,572 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 11:24:19,572 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 11:24:19,572 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 11:24:19,572 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 11:24:19,572 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 11:24:19,574 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 11:24:19,574 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 11:24:19,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 11:24:19,575 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 11:24:19,575 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 11:24:19,576 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 11:24:19,576 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 11:24:19,576 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 11:24:19,576 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 11:24:19,576 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 11:24:19,576 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 11:24:19,576 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 11:24:19,576 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 11:24:19,576 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 11:24:19,576 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 11:24:19,576 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 11:24:19,576 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 11:24:19,576 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 11:24:19,576 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 11:24:19,576 - app - INFO - 增强版任务调度器已停止
2025-04-30 11:24:19,577 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 11:24:19,577 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 11:24:19,577 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 11:24:19,578 - data.session - INFO - 数据库连接已关闭
2025-04-30 11:24:21,493 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:24:21,552 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:24:21,555 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:24:22,219 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:24:22,274 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:24:22,276 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:24:22,333 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 11:24:22,380 - data.session - INFO - 正在初始化数据库...
2025-04-30 11:24:22,399 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 11:24:22,428 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:24:22,428 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:24:22,429 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:24:22,430 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:24:22,430 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:24:22,430 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:24:22,431 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:24:22,431 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 11:24:22,433 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:24:22,437 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 11:24:22,437 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:24:22,440 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 11:24:22,440 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:24:22,442 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 11:24:22,442 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:24:22,443 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 11:24:22,443 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:24:22,444 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 11:24:22,444 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:24:22,444 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 11:24:22,445 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:24:22,445 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 11:24:22,445 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:24:22,446 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 11:24:22,446 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:24:22,447 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 11:24:22,447 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:24:22,449 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 11:24:22,449 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:24:22,450 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:24:22,450 - data.session - INFO - 数据库表初始化完成
2025-04-30 11:24:22,798 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 11:24:22,798 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 11:24:22,799 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 11:24:22,799 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 11:24:22,799 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 11:24:22,799 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 11:24:22,799 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 11:24:22,799 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 11:24:22,800 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 11:24:22,800 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 11:24:22,800 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 11:24:22,800 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 11:24:22,801 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 11:24:22,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 11:24:22,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 11:24:22,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 11:24:22,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 11:24:22,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 11:24:22,802 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 11:24:22,805 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 11:24:22,806 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:24:22,807 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:24:22,807 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:24:22,807 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:24:22,808 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:24:22,808 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:24:22,808 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:24:22,808 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:24:22,816 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 11:24:22,817 - sqlalchemy.engine.Engine - INFO - [generated in 0.00078s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 11:24:22,818 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 11:24:22,818 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:24:22,819 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 11:24:22,819 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 11:24:22,828 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 11:24:22,829 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:24:22,838 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 11:24:22,839 - sqlalchemy.engine.Engine - INFO - [generated in 0.00085s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 11:24:22,850 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:24:22,852 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:24:22,852 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 11:24:22,852 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 11:24:22,852 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 11:24:22,852 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 11:24:22,853 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:24:22,856 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 11:24:22,856 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 24, 22, 829906))
2025-04-30 11:24:22,858 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:24:58,489 - app - INFO - 应用程序关闭中...
2025-04-30 11:24:58,490 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 11:24:58,490 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 11:24:58,490 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 11:24:58,491 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 11:24:58,491 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 11:24:58,491 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 11:24:58,491 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 11:24:58,492 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 11:24:58,492 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 11:24:58,492 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 11:24:58,492 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 11:24:58,492 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 11:24:58,493 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 11:24:58,493 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 11:24:58,493 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 11:24:58,493 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 11:24:58,494 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 11:24:58,494 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 11:24:58,494 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 11:24:58,494 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 11:24:58,494 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 11:24:58,495 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 11:24:58,495 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 11:24:58,495 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 11:24:58,495 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 11:24:58,495 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 11:24:58,495 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 11:24:58,495 - app - INFO - 增强版任务调度器已停止
2025-04-30 11:24:58,496 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 11:24:58,496 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 11:24:58,496 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 11:24:58,497 - data.session - INFO - 数据库连接已关闭
2025-04-30 11:25:11,761 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:25:11,817 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:25:11,819 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:25:12,481 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:25:12,537 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:25:12,540 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:25:12,602 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 11:25:12,648 - data.session - INFO - 正在初始化数据库...
2025-04-30 11:25:12,690 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 11:25:12,708 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:25:12,709 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:25:12,711 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:25:12,712 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:25:12,713 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:25:12,714 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:25:12,715 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:12,715 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 11:25:12,715 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:25:12,717 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 11:25:12,717 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:25:12,719 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 11:25:12,719 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:25:12,721 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 11:25:12,721 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:25:12,722 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 11:25:12,722 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:25:12,723 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 11:25:12,723 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:25:12,725 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 11:25:12,725 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:25:12,725 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 11:25:12,726 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:25:12,726 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 11:25:12,727 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:25:12,728 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 11:25:12,728 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:25:12,728 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 11:25:12,729 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:25:12,730 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:12,731 - data.session - INFO - 数据库表初始化完成
2025-04-30 11:25:13,086 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 11:25:13,087 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 11:25:13,087 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 11:25:13,088 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 11:25:13,088 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 11:25:13,088 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 11:25:13,092 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 11:25:13,092 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 11:25:13,092 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 11:25:13,092 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 11:25:13,092 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 11:25:13,093 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 11:25:13,093 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 11:25:13,095 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 11:25:13,096 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 11:25:13,096 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 11:25:13,096 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 11:25:13,096 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 11:25:13,096 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 11:25:13,096 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 11:25:13,115 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:25:13,116 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:25:13,117 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:25:13,118 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:25:13,118 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:25:13,119 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:25:13,119 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:25:13,119 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:13,128 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 11:25:13,129 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 11:25:13,129 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 11:25:13,130 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:13,131 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 11:25:13,132 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 11:25:13,132 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 11:25:13,133 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:13,134 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 11:25:13,135 - sqlalchemy.engine.Engine - INFO - [generated in 0.00067s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 11:25:13,162 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:13,163 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:25:13,163 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 11:25:13,163 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 11:25:13,163 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 11:25:13,163 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 11:25:13,165 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:13,166 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 11:25:13,167 - sqlalchemy.engine.Engine - INFO - [generated in 0.00147s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 25, 13, 132098))
2025-04-30 11:25:13,170 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:16,622 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 11:25:16,625 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:16,626 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:25:16,626 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:25:16,627 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:16,628 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:16,628 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:25:16,628 - sqlalchemy.engine.Engine - INFO - [cached since 0.002501s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:25:16,629 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:16,630 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 11:25:16,630 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 11:25:16,630 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 11:25:16,630 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:16,631 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 11:25:16,631 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] (None, datetime.datetime(2025, 4, 30, 11, 25, 16, 631694), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 11:25:16,632 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:16,639 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:16,640 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:25:16,640 - sqlalchemy.engine.Engine - INFO - [cached since 0.01402s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:25:16,643 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:25:16,643 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('0858851c-7417-40c1-92f5-9ff2d7c12738', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 11, 25, 16, 629687), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.4", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 11, 25, 16, 643180), datetime.datetime(2025, 4, 30, 11, 25, 16, 643180), 0)
2025-04-30 11:25:16,644 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:16,650 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:16,651 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:16,651 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:16,652 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:16,652 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 0858851c-7417-40c1-92f5-9ff2d7c12738 (优先级 1) 添加到队列 0
2025-04-30 11:25:16,655 - services.sync_service - INFO - 正在同步创建任务到天风系统: 0858851c-7417-40c1-92f5-9ff2d7c12738
2025-04-30 11:25:16,655 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"0858851c-7417-40c1-92f5-9ff2d7c12738","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 11:25:16","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 11:25:16,710 - services.sync_service - INFO - 成功同步任务到系统任务: 0858851c-7417-40c1-92f5-9ff2d7c12738
2025-04-30 11:25:16,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 0858851c-7417-40c1-92f5-9ff2d7c12738, 优先级: 1
2025-04-30 11:25:16,716 - services.execution.task_executor - DEBUG - 任务 0858851c-7417-40c1-92f5-9ff2d7c12738 设置超时时间: 3600秒
2025-04-30 11:25:16,716 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 0858851c-7417-40c1-92f5-9ff2d7c12738
2025-04-30 11:25:16,718 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 0858851c-7417-40c1-92f5-9ff2d7c12738
2025-04-30 11:25:16,718 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0958秒
2025-04-30 11:25:16,719 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:16,720 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:16,720 - sqlalchemy.engine.Engine - INFO - [cached since 0.07044s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:16,728 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:25:16,728 - sqlalchemy.engine.Engine - INFO - [cached since 0.1022s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:25:16,730 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:16,730 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (datetime.datetime(2025, 4, 30, 11, 25, 16, 729793), datetime.datetime(2025, 4, 30, 11, 25, 16, 730809), '0858851c-7417-40c1-92f5-9ff2d7c12738')
2025-04-30 11:25:16,734 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:16,746 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:16,747 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:16,747 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 25, 16, 747750), '0858851c-7417-40c1-92f5-9ff2d7c12738')
2025-04-30 11:25:16,748 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:16,754 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 11:25:16,755 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:16,756 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:25:16,757 - sqlalchemy.engine.Engine - INFO - [generated in 0.00120s] ('57dcc202-2f0f-425d-865e-fbb7d6e8510f', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0858851c-7417-40c1-92f5-9ff2d7c12738', datetime.datetime(2025, 4, 30, 11, 25, 16, 754750), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 25, 16, 756753), datetime.datetime(2025, 4, 30, 11, 25, 16, 756753), 0)
2025-04-30 11:25:16,758 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:16,764 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:16,765 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:25:16,766 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] ('57dcc202-2f0f-425d-865e-fbb7d6e8510f',)
2025-04-30 11:25:16,767 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 11:25:16,767 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 11:25:16,768 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:25:16,769 - sqlalchemy.engine.Engine - INFO - [generated in 0.00071s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 25, 16, 768933), '57dcc202-2f0f-425d-865e-fbb7d6e8510f')
2025-04-30 11:25:16,770 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:16,775 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 11:25:16,775 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 11:25:16,775 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 11:25:16,776 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:16,776 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:25:16,776 - sqlalchemy.engine.Engine - INFO - [cached since 0.0205s ago] ('9ce80f2d-e5bc-43b1-8f3c-518b8bd65862', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0858851c-7417-40c1-92f5-9ff2d7c12738', datetime.datetime(2025, 4, 30, 11, 25, 16, 776933), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 25, 16, 776933), datetime.datetime(2025, 4, 30, 11, 25, 16, 776933), 0)
2025-04-30 11:25:16,778 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:16,784 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 9ce80f2d-e5bc-43b1-8f3c-518b8bd65862
2025-04-30 11:25:16,785 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:16,786 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:25:16,786 - sqlalchemy.engine.Engine - INFO - [cached since 0.01993s ago] ('9ce80f2d-e5bc-43b1-8f3c-518b8bd65862',)
2025-04-30 11:25:16,787 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 11:25:16,787 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 11:25:16,787 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:25:16,788 - sqlalchemy.engine.Engine - INFO - [cached since 0.01857s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 25, 16, 787303), '9ce80f2d-e5bc-43b1-8f3c-518b8bd65862')
2025-04-30 11:25:16,788 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:16,795 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 11:25:16,795 - services.sync_service - INFO - 正在创建选择AMR任务: 0858851c-7417-40c1-92f5-9ff2d7c12738, 站点: TK01
2025-04-30 11:25:16,823 - services.sync_service - INFO - 成功为任务选择AMR: 0858851c-7417-40c1-92f5-9ff2d7c12738, AMR: None
2025-04-30 11:25:16,824 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917419954928504834 的AMR选择结果
2025-04-30 11:25:16,824 - services.sync_service - INFO - 开始等待任务块 1917419954928504834 的AMR选择结果
2025-04-30 11:25:16,824 - services.sync_service - INFO - 正在获取任务块详情: 1917419954928504834
2025-04-30 11:25:16,845 - services.sync_service - INFO - 成功获取任务块详情: 1917419954928504834 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419954928504834', 'taskId': '1917419954454548482', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:25:16', 'updateTime': None}, 'timestamp': 1745983515874}
2025-04-30 11:25:16,846 - services.sync_service - DEBUG - 任务块 1917419954928504834 AMR选择未完成，已尝试 1 次
2025-04-30 11:25:17,348 - services.sync_service - INFO - 正在获取任务块详情: 1917419954928504834
2025-04-30 11:25:17,382 - services.sync_service - INFO - 成功获取任务块详情: 1917419954928504834 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419954928504834', 'taskId': '1917419954454548482', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:25:16', 'updateTime': None}, 'timestamp': 1745983516408}
2025-04-30 11:25:17,383 - services.sync_service - DEBUG - 任务块 1917419954928504834 AMR选择未完成，已尝试 2 次
2025-04-30 11:25:17,720 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:17,723 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:17,723 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:17,724 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:17,891 - services.sync_service - INFO - 正在获取任务块详情: 1917419954928504834
2025-04-30 11:25:17,955 - services.sync_service - INFO - 成功获取任务块详情: 1917419954928504834 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419954928504834', 'taskId': '1917419954454548482', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:25:16', 'updateTime': None}, 'timestamp': 1745983516983}
2025-04-30 11:25:17,958 - services.sync_service - DEBUG - 任务块 1917419954928504834 AMR选择未完成，已尝试 3 次
2025-04-30 11:25:18,456 - services.sync_service - INFO - 正在获取任务块详情: 1917419954928504834
2025-04-30 11:25:18,483 - services.sync_service - INFO - 成功获取任务块详情: 1917419954928504834 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419954928504834', 'taskId': '1917419954454548482', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:25:16', 'updateTime': None}, 'timestamp': 1745983517514}
2025-04-30 11:25:18,484 - services.sync_service - DEBUG - 任务块 1917419954928504834 AMR选择未完成，已尝试 4 次
2025-04-30 11:25:18,737 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:18,739 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:18,741 - sqlalchemy.engine.Engine - INFO - [cached since 1.018s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:18,742 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:18,987 - services.sync_service - INFO - 正在获取任务块详情: 1917419954928504834
2025-04-30 11:25:19,051 - services.sync_service - INFO - 成功获取任务块详情: 1917419954928504834 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419954928504834', 'taskId': '1917419954454548482', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:25:16', 'updateTime': None}, 'timestamp': 1745983518062}
2025-04-30 11:25:19,051 - services.sync_service - DEBUG - 任务块 1917419954928504834 AMR选择未完成，已尝试 5 次
2025-04-30 11:25:19,561 - services.sync_service - INFO - 正在获取任务块详情: 1917419954928504834
2025-04-30 11:25:19,577 - services.sync_service - INFO - 成功获取任务块详情: 1917419954928504834 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419954928504834', 'taskId': '1917419954454548482', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:25:16', 'updateTime': None}, 'timestamp': 1745983518610}
2025-04-30 11:25:19,578 - services.sync_service - DEBUG - 任务块 1917419954928504834 AMR选择未完成，已尝试 6 次
2025-04-30 11:25:19,748 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:19,752 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:19,753 - sqlalchemy.engine.Engine - INFO - [cached since 2.03s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:19,754 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:20,073 - services.sync_service - INFO - 正在获取任务块详情: 1917419954928504834
2025-04-30 11:25:20,123 - services.sync_service - INFO - 成功获取任务块详情: 1917419954928504834 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419954928504834', 'taskId': '1917419954454548482', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:25:16', 'updateTime': None}, 'timestamp': 1745983519148}
2025-04-30 11:25:20,123 - services.sync_service - DEBUG - 任务块 1917419954928504834 AMR选择未完成，已尝试 7 次
2025-04-30 11:25:20,618 - services.sync_service - INFO - 正在获取任务块详情: 1917419954928504834
2025-04-30 11:25:20,665 - services.sync_service - INFO - 成功获取任务块详情: 1917419954928504834 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419954928504834', 'taskId': '1917419954454548482', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:25:16', 'updateTime': None}, 'timestamp': 1745983519697}
2025-04-30 11:25:20,668 - services.sync_service - DEBUG - 任务块 1917419954928504834 AMR选择未完成，已尝试 8 次
2025-04-30 11:25:20,774 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:20,775 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:20,775 - sqlalchemy.engine.Engine - INFO - [cached since 3.053s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:20,777 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:21,160 - services.sync_service - INFO - 正在获取任务块详情: 1917419954928504834
2025-04-30 11:25:21,193 - services.sync_service - INFO - 成功获取任务块详情: 1917419954928504834 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419954928504834', 'taskId': '1917419954454548482', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:25:16', 'updateTime': None}, 'timestamp': 1745983520212}
2025-04-30 11:25:21,194 - services.sync_service - DEBUG - 任务块 1917419954928504834 AMR选择未完成，已尝试 9 次
2025-04-30 11:25:21,701 - services.sync_service - INFO - 正在获取任务块详情: 1917419954928504834
2025-04-30 11:25:21,747 - services.sync_service - INFO - 成功获取任务块详情: 1917419954928504834 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419954928504834', 'taskId': '1917419954454548482', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:25:16', 'updateTime': None}, 'timestamp': 1745983520777}
2025-04-30 11:25:21,749 - services.sync_service - INFO - 任务块 1917419954928504834 AMR选择未完成(amrId/appointAmrId/appointAmrGroupId均为空)，已尝试 10 次，继续等待...
2025-04-30 11:25:21,795 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:21,795 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:21,795 - sqlalchemy.engine.Engine - INFO - [cached since 4.074s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:21,797 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:22,228 - services.sync_service - INFO - 正在获取任务块详情: 1917419954928504834
2025-04-30 11:25:22,389 - services.sync_service - INFO - 成功获取任务块详情: 1917419954928504834 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419954928504834', 'taskId': '1917419954454548482', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:25:16', 'updateTime': None}, 'timestamp': 1745983521337}
2025-04-30 11:25:22,390 - services.sync_service - DEBUG - 任务块 1917419954928504834 AMR选择未完成，已尝试 11 次
2025-04-30 11:25:22,771 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:22,775 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:22,775 - sqlalchemy.engine.Engine - INFO - [cached since 5.053s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:22,779 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:22,894 - services.sync_service - INFO - 正在获取任务块详情: 1917419954928504834
2025-04-30 11:25:23,305 - services.sync_service - INFO - 成功获取任务块详情: 1917419954928504834 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419954928504834', 'taskId': '1917419954454548482', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:25:16', 'updateTime': None}, 'timestamp': 1745983522266}
2025-04-30 11:25:23,306 - services.sync_service - DEBUG - 任务块 1917419954928504834 AMR选择未完成，已尝试 12 次
2025-04-30 11:25:23,769 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:23,771 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:23,772 - sqlalchemy.engine.Engine - INFO - [cached since 6.049s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:23,773 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:23,815 - services.sync_service - INFO - 正在获取任务块详情: 1917419954928504834
2025-04-30 11:25:23,885 - services.sync_service - INFO - 成功获取任务块详情: 1917419954928504834 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419954928504834', 'taskId': '1917419954454548482', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:25:16', 'updateTime': None}, 'timestamp': 1745983522906}
2025-04-30 11:25:23,886 - services.sync_service - DEBUG - 任务块 1917419954928504834 AMR选择未完成，已尝试 13 次
2025-04-30 11:25:24,376 - services.sync_service - INFO - 正在获取任务块详情: 1917419954928504834
2025-04-30 11:25:24,451 - services.sync_service - INFO - 成功获取任务块详情: 1917419954928504834 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419954928504834', 'taskId': '1917419954454548482', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:25:16', 'updateTime': None}, 'timestamp': 1745983523465}
2025-04-30 11:25:24,454 - services.sync_service - DEBUG - 任务块 1917419954928504834 AMR选择未完成，已尝试 14 次
2025-04-30 11:25:24,784 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:24,789 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:24,795 - sqlalchemy.engine.Engine - INFO - [cached since 7.073s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:24,800 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:24,968 - services.sync_service - INFO - 正在获取任务块详情: 1917419954928504834
2025-04-30 11:25:24,988 - services.sync_service - INFO - 成功获取任务块详情: 1917419954928504834 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419954928504834', 'taskId': '1917419954454548482', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:25:16', 'updateTime': '2025-04-30 11:25:23'}, 'timestamp': 1745983524021}
2025-04-30 11:25:24,988 - services.sync_service - INFO - 任务块 1917419954928504834 已选择AMR: 1912328602264645634，共尝试 15 次
2025-04-30 11:25:24,989 - services.execution.handlers.robot_scheduling - INFO - 准备更新任务 0858851c-7417-40c1-92f5-9ff2d7c12738 的机器人ID: 1912328602264645634
2025-04-30 11:25:24,990 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:24,991 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.agv_id 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:24,991 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:24,994 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET agv_id=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:24,994 - sqlalchemy.engine.Engine - INFO - [generated in 0.00058s] ('1912328602264645634', datetime.datetime(2025, 4, 30, 11, 25, 24, 994261), '0858851c-7417-40c1-92f5-9ff2d7c12738')
2025-04-30 11:25:24,995 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:25,010 - services.execution.handlers.robot_scheduling - INFO - 成功更新任务记录 0858851c-7417-40c1-92f5-9ff2d7c12738 的agv_id字段: 1912328602264645634
2025-04-30 11:25:25,012 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 11:25:25,015 - services.execution.handlers.robot_scheduling - INFO - 块 b1(ID:1) 有 1 个子块
2025-04-30 11:25:25,016 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: [2]
2025-04-30 11:25:25,017 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 11:25:25,017 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 1 个
2025-04-30 11:25:25,020 - services.execution.handlers.robot_scheduling - INFO - 1. b2(ID:2, 类型:CAgvOperationBp, 关系:direct_child)
2025-04-30 11:25:25,022 - services.execution.handlers.robot_scheduling - INFO - 开始执行选择机器人块 b1 的子块
2025-04-30 11:25:25,024 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-30 11:25:25,026 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 1 个子块
2025-04-30 11:25:25,027 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b2, ID: 2, 类型: CAgvOperationBp
2025-04-30 11:25:25,029 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:25,030 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:25:25,031 - sqlalchemy.engine.Engine - INFO - [cached since 8.274s ago] ('901b6274-535a-4fbc-a887-207c68ec1fe2', 'b2', '2', '', '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"targetSiteLabel": "PT02", "scriptName": "JackUnload"}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917419954928504834"}', 'CAgvOperationBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '0858851c-7417-40c1-92f5-9ff2d7c12738', datetime.datetime(2025, 4, 30, 11, 25, 25, 28740), <TaskBlockRecordStatus.RUNNING: 1001>, '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917419954928504834"}', 1, datetime.datetime(2025, 4, 30, 11, 25, 25, 30656), datetime.datetime(2025, 4, 30, 11, 25, 25, 30656), 0)
2025-04-30 11:25:25,033 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:25,042 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 901b6274-535a-4fbc-a887-207c68ec1fe2
2025-04-30 11:25:25,043 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:25,044 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:25:25,045 - sqlalchemy.engine.Engine - INFO - [cached since 8.279s ago] ('901b6274-535a-4fbc-a887-207c68ec1fe2',)
2025-04-30 11:25:25,047 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-30 11:25:25,049 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-30 11:25:25,050 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:25:25,051 - sqlalchemy.engine.Engine - INFO - [generated in 0.00090s] ('{"selectedAgvId": "1912328602264645634"}', '执行中', "{'agv_for_block_2': '1912328602264645634', 'agv_for_b2': '1912328602264645634', 'agv_task_id_2': '1917419954928504834'}", '{"blocks": {"b2": {"selectedAgvId": "1912328602264645634"}}}', '执行中', datetime.datetime(2025, 4, 30, 11, 25, 25, 50640), '901b6274-535a-4fbc-a887-207c68ec1fe2')
2025-04-30 11:25:25,053 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:25,060 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-30 11:25:25,061 - services.execution.handlers.robot_scheduling - INFO - 找到块 b2(ID:2) 专用的机器人ID: 1912328602264645634
2025-04-30 11:25:25,061 - services.execution.handlers.robot_scheduling - INFO - 执行机器人通用动作，块 b2(ID:2) 使用机器人: 1912328602264645634, 目标站点: PT02
2025-04-30 11:25:25,062 - services.sync_service - INFO - 正在为任务添加动作: 1917419954928504834, 站点: PT02, 动作: JackUnload
2025-04-30 11:25:25,090 - services.sync_service - INFO - 成功为任务添加动作: 1917419954928504834, 站点: PT02, 动作: JackUnload
2025-04-30 11:25:25,090 - services.sync_service - INFO - 开始等待任务块 1917419989586038786 的动作完成
2025-04-30 11:25:25,094 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:25,130 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983524156}
2025-04-30 11:25:25,131 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 1 次
2025-04-30 11:25:25,652 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:25,679 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983524707}
2025-04-30 11:25:25,680 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 2 次
2025-04-30 11:25:25,823 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:25,824 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:25,825 - sqlalchemy.engine.Engine - INFO - [cached since 8.103s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:25,831 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:26,196 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:26,294 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983525302}
2025-04-30 11:25:26,295 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 3 次
2025-04-30 11:25:26,787 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:26,835 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:26,835 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:26,836 - sqlalchemy.engine.Engine - INFO - [cached since 9.113s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:26,837 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:26,862 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983525892}
2025-04-30 11:25:26,864 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 4 次
2025-04-30 11:25:27,365 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:27,487 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983526423}
2025-04-30 11:25:27,488 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 5 次
2025-04-30 11:25:27,846 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:27,846 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:27,847 - sqlalchemy.engine.Engine - INFO - [cached since 10.12s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:27,849 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:28,015 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:28,047 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983527076}
2025-04-30 11:25:28,048 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 6 次
2025-04-30 11:25:28,553 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:28,620 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983527643}
2025-04-30 11:25:28,637 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 7 次
2025-04-30 11:25:28,850 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:28,854 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:28,855 - sqlalchemy.engine.Engine - INFO - [cached since 11.13s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:28,861 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:29,133 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:29,151 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983528182}
2025-04-30 11:25:29,152 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 8 次
2025-04-30 11:25:29,672 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:29,717 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983528748}
2025-04-30 11:25:29,717 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 9 次
2025-04-30 11:25:29,873 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:29,875 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:29,879 - sqlalchemy.engine.Engine - INFO - [cached since 12.16s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:29,881 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:30,214 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:30,273 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983529286}
2025-04-30 11:25:30,274 - services.sync_service - INFO - 任务块 1917419989586038786 动作未完成(actionStatus为空)，已尝试 10 次，继续等待...
2025-04-30 11:25:30,775 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:30,832 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983529854}
2025-04-30 11:25:30,833 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 11 次
2025-04-30 11:25:30,881 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:30,882 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:30,882 - sqlalchemy.engine.Engine - INFO - [cached since 13.16s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:30,885 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:31,319 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:31,379 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983530408}
2025-04-30 11:25:31,380 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 12 次
2025-04-30 11:25:31,880 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:31,881 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:31,885 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:31,891 - sqlalchemy.engine.Engine - INFO - [cached since 14.17s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:31,896 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:31,910 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983530939}
2025-04-30 11:25:31,911 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 13 次
2025-04-30 11:25:32,408 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:32,619 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983531610}
2025-04-30 11:25:32,620 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 14 次
2025-04-30 11:25:32,909 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:32,910 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:32,914 - sqlalchemy.engine.Engine - INFO - [cached since 15.19s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:32,919 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:33,126 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:33,176 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983532198}
2025-04-30 11:25:33,178 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 15 次
2025-04-30 11:25:33,689 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:33,715 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983532747}
2025-04-30 11:25:33,717 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 16 次
2025-04-30 11:25:33,939 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:33,940 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:33,941 - sqlalchemy.engine.Engine - INFO - [cached since 16.22s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:33,943 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:34,219 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:34,236 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983533267}
2025-04-30 11:25:34,236 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 17 次
2025-04-30 11:25:34,751 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:34,792 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983533824}
2025-04-30 11:25:34,793 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 18 次
2025-04-30 11:25:34,968 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:34,971 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:34,972 - sqlalchemy.engine.Engine - INFO - [cached since 17.25s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:34,977 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:35,292 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:35,395 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983534364}
2025-04-30 11:25:35,396 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 19 次
2025-04-30 11:25:35,912 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:35,973 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:35,974 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:35,974 - sqlalchemy.engine.Engine - INFO - [cached since 18.25s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:35,975 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:36,196 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983535067}
2025-04-30 11:25:36,197 - services.sync_service - INFO - 任务块 1917419989586038786 动作未完成(actionStatus为空)，已尝试 20 次，继续等待...
2025-04-30 11:25:36,704 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:36,770 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983535773}
2025-04-30 11:25:36,771 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 21 次
2025-04-30 11:25:36,973 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:36,974 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:36,974 - sqlalchemy.engine.Engine - INFO - [cached since 19.25s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:36,975 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:37,296 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:37,325 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983536351}
2025-04-30 11:25:37,325 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 22 次
2025-04-30 11:25:37,844 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:37,900 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983536929}
2025-04-30 11:25:37,902 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 23 次
2025-04-30 11:25:37,981 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:37,982 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:37,985 - sqlalchemy.engine.Engine - INFO - [cached since 20.26s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:37,988 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:38,415 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:38,463 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983537489}
2025-04-30 11:25:38,463 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 24 次
2025-04-30 11:25:38,975 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:38,979 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:38,979 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:38,980 - sqlalchemy.engine.Engine - INFO - [cached since 21.26s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:38,982 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:39,024 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983538048}
2025-04-30 11:25:39,024 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 25 次
2025-04-30 11:25:39,520 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:39,588 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983538618}
2025-04-30 11:25:39,590 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 26 次
2025-04-30 11:25:39,988 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:39,989 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:39,990 - sqlalchemy.engine.Engine - INFO - [cached since 22.27s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:39,992 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:40,097 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:40,123 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983539150}
2025-04-30 11:25:40,124 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 27 次
2025-04-30 11:25:40,627 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:40,667 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983539697}
2025-04-30 11:25:40,667 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 28 次
2025-04-30 11:25:41,002 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:41,002 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:41,003 - sqlalchemy.engine.Engine - INFO - [cached since 23.28s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:41,004 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:41,171 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:41,196 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983540225}
2025-04-30 11:25:41,197 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 29 次
2025-04-30 11:25:41,717 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:41,761 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983540791}
2025-04-30 11:25:41,761 - services.sync_service - INFO - 任务块 1917419989586038786 动作未完成(actionStatus为空)，已尝试 30 次，继续等待...
2025-04-30 11:25:42,012 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:42,013 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:42,014 - sqlalchemy.engine.Engine - INFO - [cached since 24.29s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:42,016 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:42,274 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:42,330 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983541349}
2025-04-30 11:25:42,331 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 31 次
2025-04-30 11:25:42,838 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:42,860 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983541890}
2025-04-30 11:25:42,860 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 32 次
2025-04-30 11:25:43,022 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:43,023 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:43,026 - sqlalchemy.engine.Engine - INFO - [cached since 25.3s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:43,028 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:43,367 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:43,391 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983542419}
2025-04-30 11:25:43,393 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 33 次
2025-04-30 11:25:43,899 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:43,937 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983542970}
2025-04-30 11:25:43,937 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 34 次
2025-04-30 11:25:44,037 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:44,037 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:44,038 - sqlalchemy.engine.Engine - INFO - [cached since 26.32s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:44,038 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:44,424 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:44,471 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983543500}
2025-04-30 11:25:44,472 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 35 次
2025-04-30 11:25:45,001 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:45,030 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:45,030 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:45,031 - sqlalchemy.engine.Engine - INFO - [cached since 27.31s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:45,032 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:45,068 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983544074}
2025-04-30 11:25:45,069 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 36 次
2025-04-30 11:25:45,588 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:45,664 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983544694}
2025-04-30 11:25:45,664 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 37 次
2025-04-30 11:25:46,040 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:46,043 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:46,046 - sqlalchemy.engine.Engine - INFO - [cached since 28.32s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:46,051 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:46,149 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:46,179 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983545208}
2025-04-30 11:25:46,180 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 38 次
2025-04-30 11:25:46,697 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:46,714 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983545746}
2025-04-30 11:25:46,715 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 39 次
2025-04-30 11:25:47,070 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:47,070 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:47,070 - sqlalchemy.engine.Engine - INFO - [cached since 29.35s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:47,071 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:47,210 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:47,237 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983546267}
2025-04-30 11:25:47,238 - services.sync_service - INFO - 任务块 1917419989586038786 动作未完成(actionStatus为空)，已尝试 40 次，继续等待...
2025-04-30 11:25:47,752 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:47,768 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983546801}
2025-04-30 11:25:47,768 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 41 次
2025-04-30 11:25:48,079 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:48,080 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:48,080 - sqlalchemy.engine.Engine - INFO - [cached since 30.36s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:48,081 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:48,267 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:48,375 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983547403}
2025-04-30 11:25:48,375 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 42 次
2025-04-30 11:25:48,875 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:48,902 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983547933}
2025-04-30 11:25:48,904 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 43 次
2025-04-30 11:25:49,095 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:49,095 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:49,097 - sqlalchemy.engine.Engine - INFO - [cached since 31.37s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:49,098 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:49,422 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:49,563 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983548576}
2025-04-30 11:25:49,564 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 44 次
2025-04-30 11:25:50,092 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:50,096 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:50,096 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:50,096 - sqlalchemy.engine.Engine - INFO - [cached since 32.37s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:50,097 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:50,128 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983549153}
2025-04-30 11:25:50,129 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 45 次
2025-04-30 11:25:50,638 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:50,683 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983549710}
2025-04-30 11:25:50,684 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 46 次
2025-04-30 11:25:51,106 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:51,107 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:51,110 - sqlalchemy.engine.Engine - INFO - [cached since 33.39s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:51,114 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:51,185 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:51,213 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983550241}
2025-04-30 11:25:51,213 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 47 次
2025-04-30 11:25:51,713 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:51,781 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983550809}
2025-04-30 11:25:51,782 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 48 次
2025-04-30 11:25:52,118 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:52,119 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:52,120 - sqlalchemy.engine.Engine - INFO - [cached since 34.4s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:52,120 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:52,289 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:52,351 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983551348}
2025-04-30 11:25:52,353 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 49 次
2025-04-30 11:25:52,860 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:52,879 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983551909}
2025-04-30 11:25:52,881 - services.sync_service - INFO - 任务块 1917419989586038786 动作未完成(actionStatus为空)，已尝试 50 次，继续等待...
2025-04-30 11:25:53,129 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:53,130 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:53,133 - sqlalchemy.engine.Engine - INFO - [cached since 35.41s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:53,134 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:53,377 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:53,475 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983552500}
2025-04-30 11:25:53,476 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 51 次
2025-04-30 11:25:53,986 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:54,139 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:54,141 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:54,142 - sqlalchemy.engine.Engine - INFO - [cached since 36.42s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:54,144 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:54,230 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983553183}
2025-04-30 11:25:54,231 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 52 次
2025-04-30 11:25:54,750 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:54,792 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983553823}
2025-04-30 11:25:54,793 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 53 次
2025-04-30 11:25:55,170 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:55,173 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:55,173 - sqlalchemy.engine.Engine - INFO - [cached since 37.45s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:55,176 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:55,311 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:55,336 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983554366}
2025-04-30 11:25:55,336 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 54 次
2025-04-30 11:25:55,837 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:55,854 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983554885}
2025-04-30 11:25:55,855 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 55 次
2025-04-30 11:25:56,180 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:56,184 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:56,187 - sqlalchemy.engine.Engine - INFO - [cached since 38.47s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:56,188 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:56,350 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:56,394 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983555414}
2025-04-30 11:25:56,395 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 56 次
2025-04-30 11:25:56,898 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:56,958 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983555989}
2025-04-30 11:25:56,960 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 57 次
2025-04-30 11:25:57,210 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:57,211 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:57,211 - sqlalchemy.engine.Engine - INFO - [cached since 39.49s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:57,212 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:57,474 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:57,527 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983556553}
2025-04-30 11:25:57,528 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 58 次
2025-04-30 11:25:58,033 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:58,108 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983557137}
2025-04-30 11:25:58,109 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 59 次
2025-04-30 11:25:58,220 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:58,220 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:58,220 - sqlalchemy.engine.Engine - INFO - [cached since 40.5s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:58,221 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:58,596 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:58,649 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983557673}
2025-04-30 11:25:58,650 - services.sync_service - INFO - 任务块 1917419989586038786 动作未完成(actionStatus为空)，已尝试 60 次，继续等待...
2025-04-30 11:25:59,147 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:59,191 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983558204}
2025-04-30 11:25:59,191 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 61 次
2025-04-30 11:25:59,226 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:25:59,227 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:25:59,231 - sqlalchemy.engine.Engine - INFO - [cached since 41.51s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:25:59,235 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:25:59,709 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:25:59,752 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983558783}
2025-04-30 11:25:59,753 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 62 次
2025-04-30 11:26:00,224 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:00,227 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:00,231 - sqlalchemy.engine.Engine - INFO - [cached since 42.51s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:00,236 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:00,270 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:00,322 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983559342}
2025-04-30 11:26:00,322 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 63 次
2025-04-30 11:26:00,829 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:01,002 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983559970}
2025-04-30 11:26:01,003 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 64 次
2025-04-30 11:26:01,255 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:01,256 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:01,256 - sqlalchemy.engine.Engine - INFO - [cached since 43.53s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:01,258 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:01,520 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:01,591 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983560622}
2025-04-30 11:26:01,592 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 65 次
2025-04-30 11:26:02,075 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:02,135 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983561164}
2025-04-30 11:26:02,137 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 66 次
2025-04-30 11:26:02,265 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:02,266 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:02,266 - sqlalchemy.engine.Engine - INFO - [cached since 44.54s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:02,267 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:02,654 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:02,727 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983561758}
2025-04-30 11:26:02,728 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 67 次
2025-04-30 11:26:03,245 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:03,292 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:03,297 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:03,300 - sqlalchemy.engine.Engine - INFO - [cached since 45.58s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:03,305 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:03,320 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983562347}
2025-04-30 11:26:03,321 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 68 次
2025-04-30 11:26:03,838 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:03,859 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983562887}
2025-04-30 11:26:03,860 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 69 次
2025-04-30 11:26:04,323 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:04,325 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:04,327 - sqlalchemy.engine.Engine - INFO - [cached since 46.6s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:04,330 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:04,354 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:04,370 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983563401}
2025-04-30 11:26:04,371 - services.sync_service - INFO - 任务块 1917419989586038786 动作未完成(actionStatus为空)，已尝试 70 次，继续等待...
2025-04-30 11:26:04,870 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:04,943 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983563950}
2025-04-30 11:26:04,943 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 71 次
2025-04-30 11:26:05,333 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:05,334 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:05,334 - sqlalchemy.engine.Engine - INFO - [cached since 47.61s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:05,337 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:05,458 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:05,499 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983564531}
2025-04-30 11:26:05,500 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 72 次
2025-04-30 11:26:05,973 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:06,000 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983565031}
2025-04-30 11:26:06,000 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 73 次
2025-04-30 11:26:06,358 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:06,360 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:06,361 - sqlalchemy.engine.Engine - INFO - [cached since 48.64s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:06,362 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:06,500 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:06,563 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983565576}
2025-04-30 11:26:06,564 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 74 次
2025-04-30 11:26:07,090 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:07,118 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983566141}
2025-04-30 11:26:07,119 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 75 次
2025-04-30 11:26:07,388 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:07,391 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:07,391 - sqlalchemy.engine.Engine - INFO - [cached since 49.67s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:07,393 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:07,636 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:07,716 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983566745}
2025-04-30 11:26:07,717 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 76 次
2025-04-30 11:26:08,215 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:08,369 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983567311}
2025-04-30 11:26:08,370 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 77 次
2025-04-30 11:26:08,404 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:08,405 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:08,406 - sqlalchemy.engine.Engine - INFO - [cached since 50.68s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:08,407 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:08,886 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:08,977 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983568006}
2025-04-30 11:26:08,977 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 78 次
2025-04-30 11:26:09,414 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:09,418 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:09,422 - sqlalchemy.engine.Engine - INFO - [cached since 51.7s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:09,426 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:09,493 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:09,551 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983568576}
2025-04-30 11:26:09,552 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 79 次
2025-04-30 11:26:10,065 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:10,093 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983569124}
2025-04-30 11:26:10,094 - services.sync_service - INFO - 任务块 1917419989586038786 动作未完成(actionStatus为空)，已尝试 80 次，继续等待...
2025-04-30 11:26:10,452 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:10,452 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:10,452 - sqlalchemy.engine.Engine - INFO - [cached since 52.73s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:10,454 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:10,594 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:10,637 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983569667}
2025-04-30 11:26:10,638 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 81 次
2025-04-30 11:26:11,157 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:11,238 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983570265}
2025-04-30 11:26:11,238 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 82 次
2025-04-30 11:26:11,454 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:11,455 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:11,455 - sqlalchemy.engine.Engine - INFO - [cached since 53.73s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:11,455 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:11,749 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:11,780 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983570800}
2025-04-30 11:26:11,780 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 83 次
2025-04-30 11:26:12,296 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:12,342 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983571373}
2025-04-30 11:26:12,342 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 84 次
2025-04-30 11:26:12,480 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:12,480 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:12,481 - sqlalchemy.engine.Engine - INFO - [cached since 54.76s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:12,482 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:12,839 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:12,868 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983571894}
2025-04-30 11:26:12,869 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 85 次
2025-04-30 11:26:13,116 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 11:26:13,116 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 11:26:13,116 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 11:26:13,116 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 11:26:13,116 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 11:26:13,117 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 11:26:13,117 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 11:26:13,117 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 11:26:13,117 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 11:26:13,119 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 11:26:13,119 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 11:26:13,119 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 11:26:13,119 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 11:26:13,119 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 11:26:13,119 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 11:26:13,120 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 11:26:13,120 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 11:26:13,120 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 11:26:13,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 11:26:13,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 11:26:13,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 11:26:13,120 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 11:26:13,120 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 11:26:13,125 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 11:26:13,179 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:13,179 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 11:26:13,179 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 26, 13, 177091))
2025-04-30 11:26:13,180 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:13,364 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:13,483 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983572515}
2025-04-30 11:26:13,485 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 86 次
2025-04-30 11:26:13,486 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:13,488 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:13,491 - sqlalchemy.engine.Engine - INFO - [cached since 55.77s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:13,496 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:13,973 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:13,988 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983573020}
2025-04-30 11:26:13,989 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 87 次
2025-04-30 11:26:14,516 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:14,518 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:14,519 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:14,519 - sqlalchemy.engine.Engine - INFO - [cached since 56.8s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:14,520 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:14,584 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983573562}
2025-04-30 11:26:14,586 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 88 次
2025-04-30 11:26:15,091 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:15,109 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983574140}
2025-04-30 11:26:15,109 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 89 次
2025-04-30 11:26:15,529 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:15,530 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:15,530 - sqlalchemy.engine.Engine - INFO - [cached since 57.81s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:15,531 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:15,606 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:15,628 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983574658}
2025-04-30 11:26:15,628 - services.sync_service - INFO - 任务块 1917419989586038786 动作未完成(actionStatus为空)，已尝试 90 次，继续等待...
2025-04-30 11:26:16,133 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:16,541 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:16,542 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:16,543 - sqlalchemy.engine.Engine - INFO - [cached since 58.82s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:16,545 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:16,566 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983575593}
2025-04-30 11:26:16,566 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 91 次
2025-04-30 11:26:17,069 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:17,170 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983576129}
2025-04-30 11:26:17,171 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 92 次
2025-04-30 11:26:17,525 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:17,528 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:17,532 - sqlalchemy.engine.Engine - INFO - [cached since 59.81s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:17,537 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:17,679 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:17,724 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983576755}
2025-04-30 11:26:17,724 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 93 次
2025-04-30 11:26:18,227 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:18,288 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983577303}
2025-04-30 11:26:18,289 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 94 次
2025-04-30 11:26:18,552 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:18,556 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:18,559 - sqlalchemy.engine.Engine - INFO - [cached since 60.84s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:18,562 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:18,768 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:18,866 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983577875}
2025-04-30 11:26:18,867 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 95 次
2025-04-30 11:26:19,363 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:19,580 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:19,582 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:19,583 - sqlalchemy.engine.Engine - INFO - [cached since 61.86s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:19,585 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:20,451 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983579396}
2025-04-30 11:26:20,452 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 96 次
2025-04-30 11:26:20,592 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:20,592 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:20,593 - sqlalchemy.engine.Engine - INFO - [cached since 62.87s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:20,593 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:20,969 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:21,620 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:21,621 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:21,621 - sqlalchemy.engine.Engine - INFO - [cached since 63.9s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:21,625 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:22,044 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983581057}
2025-04-30 11:26:22,045 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 97 次
2025-04-30 11:26:22,520 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:22,630 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:22,630 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:22,631 - sqlalchemy.engine.Engine - INFO - [cached since 64.91s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:22,637 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:23,601 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983582632}
2025-04-30 11:26:23,602 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 98 次
2025-04-30 11:26:23,633 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:23,635 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:23,635 - sqlalchemy.engine.Engine - INFO - [cached since 65.91s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:23,640 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:24,104 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:24,650 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:24,650 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:24,650 - sqlalchemy.engine.Engine - INFO - [cached since 66.93s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:24,652 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:25,176 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983584207}
2025-04-30 11:26:25,176 - services.sync_service - DEBUG - 任务块 1917419989586038786 动作未完成，已尝试 99 次
2025-04-30 11:26:25,652 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:25,652 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:25,653 - sqlalchemy.engine.Engine - INFO - [cached since 67.93s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:25,655 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:25,697 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:26,653 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:26,654 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:26,654 - sqlalchemy.engine.Engine - INFO - [cached since 68.93s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:26,655 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:26,762 - services.sync_service - INFO - 成功获取任务块动作详情: 1917419989586038786 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917419989586038786', 'tenantId': 1000, 'taskId': '1917419954454548482', 'taskBlockId': '1917419954928504834', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:25:24'}, 'timestamp': 1745983585794}
2025-04-30 11:26:26,763 - services.sync_service - INFO - 任务块 1917419989586038786 动作未完成(actionStatus为空)，已尝试 100 次，继续等待...
2025-04-30 11:26:27,273 - services.sync_service - INFO - 正在获取任务块动作详情: 1917419989586038786
2025-04-30 11:26:27,649 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:27,650 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:27,651 - sqlalchemy.engine.Engine - INFO - [cached since 69.93s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:27,653 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:28,116 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 11:26:28,117 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 11:26:28,118 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 11:26:28,118 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 11:26:28,118 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 11:26:28,120 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 11:26:28,666 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:28,686 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:28,710 - sqlalchemy.engine.Engine - INFO - [cached since 70.99s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:28,716 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:29,712 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:29,712 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:29,712 - sqlalchemy.engine.Engine - INFO - [cached since 71.99s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:29,713 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:30,693 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:30,693 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:30,694 - sqlalchemy.engine.Engine - INFO - [cached since 72.97s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:30,695 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:31,691 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:31,694 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:31,697 - sqlalchemy.engine.Engine - INFO - [cached since 73.97s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:31,702 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:32,717 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:32,718 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:32,719 - sqlalchemy.engine.Engine - INFO - [cached since 75s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:32,721 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:33,747 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:33,748 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:33,748 - sqlalchemy.engine.Engine - INFO - [cached since 76.03s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:33,750 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:34,729 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:34,733 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:34,736 - sqlalchemy.engine.Engine - INFO - [cached since 77.01s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:34,736 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:35,740 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:35,741 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:35,741 - sqlalchemy.engine.Engine - INFO - [cached since 78.02s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:35,743 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:36,753 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:36,754 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:36,754 - sqlalchemy.engine.Engine - INFO - [cached since 79.03s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:36,755 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:37,780 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:37,780 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:37,781 - sqlalchemy.engine.Engine - INFO - [cached since 80.06s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:37,782 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:38,808 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:38,809 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:38,809 - sqlalchemy.engine.Engine - INFO - [cached since 81.09s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:38,811 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:39,804 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:39,804 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:39,805 - sqlalchemy.engine.Engine - INFO - [cached since 82.08s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:39,806 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:40,822 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:40,823 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:40,823 - sqlalchemy.engine.Engine - INFO - [cached since 83.1s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:40,824 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:41,844 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:41,844 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:41,844 - sqlalchemy.engine.Engine - INFO - [cached since 84.12s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:41,845 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:42,871 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:42,873 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:42,874 - sqlalchemy.engine.Engine - INFO - [cached since 85.15s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:42,875 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:43,900 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:43,902 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:43,903 - sqlalchemy.engine.Engine - INFO - [cached since 86.18s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:43,904 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:44,921 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:44,922 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:44,922 - sqlalchemy.engine.Engine - INFO - [cached since 87.2s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:44,923 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:45,947 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:45,949 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:45,949 - sqlalchemy.engine.Engine - INFO - [cached since 88.23s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:45,951 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:46,962 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:46,963 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:46,965 - sqlalchemy.engine.Engine - INFO - [cached since 89.24s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:46,966 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:47,945 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:47,945 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:47,945 - sqlalchemy.engine.Engine - INFO - [cached since 90.22s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:47,947 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:48,942 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:48,944 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:48,948 - sqlalchemy.engine.Engine - INFO - [cached since 91.23s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:48,950 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:49,954 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:26:49,957 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:26:49,959 - sqlalchemy.engine.Engine - INFO - [cached since 92.24s ago] ('0858851c-7417-40c1-92f5-9ff2d7c12738',)
2025-04-30 11:26:49,960 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:26:49,987 - app - INFO - 应用程序关闭中...
2025-04-30 11:26:49,987 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 11:26:49,987 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 11:26:49,987 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 11:26:49,988 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 11:26:49,988 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 11:26:49,988 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 11:26:49,989 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 11:26:49,989 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 11:26:49,989 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 11:26:49,989 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 11:26:49,990 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 11:26:49,990 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 11:26:49,990 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 11:26:49,991 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 11:26:49,991 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 11:26:49,991 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-30 11:26:49,992 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 11:26:49,992 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 11:26:49,992 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-30 11:26:49,993 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 11:26:49,993 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 11:26:49,993 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-30 11:26:49,994 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 11:26:49,994 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 11:26:49,994 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-30 11:26:49,994 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 11:26:49,995 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 11:26:49,995 - app - INFO - 增强版任务调度器已停止
2025-04-30 11:26:49,995 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 11:26:49,996 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 11:26:49,996 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 11:26:49,996 - data.session - INFO - 数据库连接已关闭
2025-04-30 11:32:30,360 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:32:30,427 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:32:30,430 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:32:31,174 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:32:31,239 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:32:31,241 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:32:31,309 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 11:32:31,370 - data.session - INFO - 正在初始化数据库...
2025-04-30 11:32:31,403 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 11:32:31,405 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:32:31,405 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:32:31,406 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:32:31,406 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:32:31,407 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:32:31,407 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:32:31,407 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:32:31,408 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 11:32:31,408 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:32:31,411 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 11:32:31,411 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:32:31,413 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 11:32:31,413 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:32:31,414 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 11:32:31,414 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:32:31,415 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 11:32:31,415 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:32:31,416 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 11:32:31,417 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:32:31,418 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 11:32:31,418 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:32:31,419 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 11:32:31,419 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:32:31,421 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 11:32:31,421 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:32:31,422 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 11:32:31,422 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:32:31,424 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 11:32:31,425 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:32:31,426 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:32:31,426 - data.session - INFO - 数据库表初始化完成
2025-04-30 11:32:31,820 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 11:32:31,820 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 11:32:31,820 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 11:32:31,820 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 11:32:31,821 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 11:32:31,821 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 11:32:31,821 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 11:32:31,821 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 11:32:31,821 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 11:32:31,821 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 11:32:31,821 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 11:32:31,821 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 11:32:31,822 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 11:32:31,823 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 11:32:31,823 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 11:32:31,823 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 11:32:31,823 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 11:32:31,823 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 11:32:31,823 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 11:32:31,824 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 11:32:31,824 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:32:31,825 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:32:31,825 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:32:31,826 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:32:31,826 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:32:31,827 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:32:31,827 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:32:31,827 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:32:31,838 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 11:32:31,839 - sqlalchemy.engine.Engine - INFO - [generated in 0.00063s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 11:32:31,841 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 11:32:31,841 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:32:31,843 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 11:32:31,844 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 11:32:31,844 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 11:32:31,844 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:32:31,846 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 11:32:31,846 - sqlalchemy.engine.Engine - INFO - [generated in 0.00068s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 11:32:31,848 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:32:31,848 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 11:32:31,848 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 11:32:31,848 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 11:32:31,848 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 11:32:31,850 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:32:31,850 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:32:31,851 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 11:32:31,851 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 32, 31, 844516))
2025-04-30 11:32:31,852 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:33:21,703 - app - INFO - 应用程序关闭中...
2025-04-30 11:33:21,704 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 11:33:21,704 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 11:33:21,704 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 11:33:21,704 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 11:33:21,704 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 11:33:21,708 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 11:33:21,709 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 11:33:21,711 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 11:33:21,713 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 11:33:21,715 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 11:33:21,717 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 11:33:21,717 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 11:33:21,718 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 11:33:21,719 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 11:33:21,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 11:33:21,722 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 11:33:21,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 11:33:21,724 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 11:33:21,725 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 11:33:21,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 11:33:21,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 11:33:21,725 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 11:33:21,725 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 11:33:21,726 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 11:33:21,728 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 11:33:21,728 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 11:33:21,728 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 11:33:21,729 - app - INFO - 增强版任务调度器已停止
2025-04-30 11:33:21,729 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 11:33:21,729 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 11:33:21,729 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 11:33:21,730 - data.session - INFO - 数据库连接已关闭
2025-04-30 11:33:52,361 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:33:52,430 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:33:52,431 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:33:53,157 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:33:53,221 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:33:53,222 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:33:53,287 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 11:33:53,337 - data.session - INFO - 正在初始化数据库...
2025-04-30 11:33:53,366 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 11:33:53,369 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:33:53,370 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:33:53,370 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:33:53,371 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:33:53,371 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:33:53,371 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:33:53,371 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:33:53,371 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 11:33:53,372 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:33:53,373 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 11:33:53,373 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:33:53,374 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 11:33:53,375 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:33:53,376 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 11:33:53,376 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:33:53,377 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 11:33:53,377 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:33:53,379 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 11:33:53,379 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:33:53,380 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 11:33:53,380 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:33:53,381 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 11:33:53,381 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:33:53,382 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 11:33:53,382 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:33:53,383 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 11:33:53,384 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:33:53,385 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 11:33:53,385 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:33:53,386 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:33:53,387 - data.session - INFO - 数据库表初始化完成
2025-04-30 11:33:53,769 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 11:33:53,769 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 11:33:53,769 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 11:33:53,770 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 11:33:53,770 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 11:33:53,770 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 11:33:53,770 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 11:33:53,770 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 11:33:53,770 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 11:33:53,770 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 11:33:53,770 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 11:33:53,770 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 11:33:53,771 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 11:33:53,772 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 11:33:53,772 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 11:33:53,772 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 11:33:53,772 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 11:33:53,772 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 11:33:53,773 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 11:33:53,773 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 11:33:53,774 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:33:53,775 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:33:53,775 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:33:53,776 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:33:53,776 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:33:53,776 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:33:53,776 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:33:53,777 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:33:53,786 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 11:33:53,786 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 11:33:53,787 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 11:33:53,788 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:33:53,789 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 11:33:53,789 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 11:33:53,790 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 11:33:53,790 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:33:53,792 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 11:33:53,793 - sqlalchemy.engine.Engine - INFO - [generated in 0.00076s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 11:33:53,794 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:33:53,795 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 11:33:53,795 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 11:33:53,795 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 11:33:53,795 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 11:33:53,796 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:33:53,796 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:33:53,797 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 11:33:53,798 - sqlalchemy.engine.Engine - INFO - [generated in 0.00169s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 33, 53, 790026))
2025-04-30 11:33:53,799 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:33:57,460 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 11:33:57,463 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:33:57,463 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:33:57,464 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:33:57,465 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:33:57,466 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:33:57,466 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:33:57,466 - sqlalchemy.engine.Engine - INFO - [cached since 0.002913s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:33:57,467 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:33:57,468 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 11:33:57,469 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 11:33:57,469 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 11:33:57,469 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:33:57,470 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 11:33:57,470 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] (None, datetime.datetime(2025, 4, 30, 11, 33, 57, 470546), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 11:33:57,471 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:33:57,487 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:33:57,488 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:33:57,488 - sqlalchemy.engine.Engine - INFO - [cached since 0.02503s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:33:57,490 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:33:57,490 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] ('eed6b387-ce4e-4340-ab0e-341a5b299905', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 11, 33, 57, 468125), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.4", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 11, 33, 57, 490497), datetime.datetime(2025, 4, 30, 11, 33, 57, 490497), 0)
2025-04-30 11:33:57,491 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:33:57,500 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:33:57,500 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:33:57,501 - sqlalchemy.engine.Engine - INFO - [generated in 0.00040s] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:33:57,502 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:33:57,503 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 eed6b387-ce4e-4340-ab0e-341a5b299905 (优先级 1) 添加到队列 0
2025-04-30 11:33:57,506 - services.sync_service - INFO - 正在同步创建任务到天风系统: eed6b387-ce4e-4340-ab0e-341a5b299905
2025-04-30 11:33:57,506 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"eed6b387-ce4e-4340-ab0e-341a5b299905","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 11:33:57","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 11:33:57,559 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: eed6b387-ce4e-4340-ab0e-341a5b299905, 优先级: 1
2025-04-30 11:33:57,559 - services.execution.task_executor - DEBUG - 任务 eed6b387-ce4e-4340-ab0e-341a5b299905 设置超时时间: 3600秒
2025-04-30 11:33:57,560 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:33:57,561 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:33:57,561 - sqlalchemy.engine.Engine - INFO - [cached since 0.06143s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:33:57,563 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:33:57,565 - sqlalchemy.engine.Engine - INFO - [cached since 0.1023s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:33:57,568 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:33:57,571 - sqlalchemy.engine.Engine - INFO - [generated in 0.00284s] (datetime.datetime(2025, 4, 30, 11, 33, 57, 567866), datetime.datetime(2025, 4, 30, 11, 33, 57, 568872), 'eed6b387-ce4e-4340-ab0e-341a5b299905')
2025-04-30 11:33:57,574 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:33:57,582 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:33:57,586 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:33:57,589 - sqlalchemy.engine.Engine - INFO - [generated in 0.00330s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 33, 57, 586862), 'eed6b387-ce4e-4340-ab0e-341a5b299905')
2025-04-30 11:33:57,591 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:33:57,600 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 11:33:57,602 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:33:57,606 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:33:57,608 - sqlalchemy.engine.Engine - INFO - [generated in 0.00192s] ('486211dd-c101-42c7-aa22-b9200bebe15a', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'eed6b387-ce4e-4340-ab0e-341a5b299905', datetime.datetime(2025, 4, 30, 11, 33, 57, 601867), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 33, 57, 606859), datetime.datetime(2025, 4, 30, 11, 33, 57, 606859), 0)
2025-04-30 11:33:57,611 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:33:57,622 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:33:57,624 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:33:57,628 - sqlalchemy.engine.Engine - INFO - [generated in 0.00412s] ('486211dd-c101-42c7-aa22-b9200bebe15a',)
2025-04-30 11:33:57,630 - services.sync_service - INFO - 成功同步任务到系统任务: eed6b387-ce4e-4340-ab0e-341a5b299905
2025-04-30 11:33:57,631 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: eed6b387-ce4e-4340-ab0e-341a5b299905
2025-04-30 11:33:57,633 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: eed6b387-ce4e-4340-ab0e-341a5b299905
2025-04-30 11:33:57,636 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 11:33:57,636 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 11:33:57,637 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:33:57,641 - sqlalchemy.engine.Engine - INFO - [generated in 0.00373s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 33, 57, 637859), '486211dd-c101-42c7-aa22-b9200bebe15a')
2025-04-30 11:33:57,645 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1857秒
2025-04-30 11:33:57,647 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:33:57,655 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 11:33:57,655 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 11:33:57,655 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 11:33:57,658 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:33:57,662 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:33:57,663 - sqlalchemy.engine.Engine - INFO - [cached since 0.05589s ago] ('cbf1f58b-9019-4b20-be2e-51a4a7e2d727', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'eed6b387-ce4e-4340-ab0e-341a5b299905', datetime.datetime(2025, 4, 30, 11, 33, 57, 657173), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 33, 57, 661177), datetime.datetime(2025, 4, 30, 11, 33, 57, 661177), 0)
2025-04-30 11:33:57,664 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:33:57,670 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: cbf1f58b-9019-4b20-be2e-51a4a7e2d727
2025-04-30 11:33:57,671 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:33:57,673 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:33:57,673 - sqlalchemy.engine.Engine - INFO - [cached since 0.04878s ago] ('cbf1f58b-9019-4b20-be2e-51a4a7e2d727',)
2025-04-30 11:33:57,674 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 11:33:57,675 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 11:33:57,675 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:33:57,676 - sqlalchemy.engine.Engine - INFO - [cached since 0.0381s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 33, 57, 675244), 'cbf1f58b-9019-4b20-be2e-51a4a7e2d727')
2025-04-30 11:33:57,677 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:33:57,683 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 11:33:57,684 - services.sync_service - INFO - 正在创建选择AMR任务: eed6b387-ce4e-4340-ab0e-341a5b299905, 站点: TK01
2025-04-30 11:33:57,846 - services.sync_service - INFO - 成功为任务选择AMR: eed6b387-ce4e-4340-ab0e-341a5b299905, AMR: None
2025-04-30 11:33:57,846 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917422140211220481 的AMR选择结果
2025-04-30 11:33:57,846 - services.sync_service - INFO - 开始等待任务块 1917422140211220481 的AMR选择结果
2025-04-30 11:33:57,846 - services.sync_service - INFO - 正在获取任务块详情: 1917422140211220481
2025-04-30 11:33:57,876 - services.sync_service - INFO - 成功获取任务块详情: 1917422140211220481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422140211220481', 'taskId': '1917422139208781826', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:33:57', 'updateTime': None}, 'timestamp': 1745984036905}
2025-04-30 11:33:57,878 - services.sync_service - DEBUG - 任务块 1917422140211220481 AMR选择未完成，已尝试 1 次
2025-04-30 11:33:58,378 - services.sync_service - INFO - 正在获取任务块详情: 1917422140211220481
2025-04-30 11:33:58,460 - services.sync_service - INFO - 成功获取任务块详情: 1917422140211220481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422140211220481', 'taskId': '1917422139208781826', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:33:57', 'updateTime': None}, 'timestamp': 1745984037455}
2025-04-30 11:33:58,460 - services.sync_service - DEBUG - 任务块 1917422140211220481 AMR选择未完成，已尝试 2 次
2025-04-30 11:33:58,566 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:33:58,568 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:33:58,570 - sqlalchemy.engine.Engine - INFO - [generated in 0.00224s] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:33:58,571 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:33:58,983 - services.sync_service - INFO - 正在获取任务块详情: 1917422140211220481
2025-04-30 11:33:59,071 - services.sync_service - INFO - 成功获取任务块详情: 1917422140211220481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422140211220481', 'taskId': '1917422139208781826', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:33:57', 'updateTime': None}, 'timestamp': 1745984038099}
2025-04-30 11:33:59,071 - services.sync_service - DEBUG - 任务块 1917422140211220481 AMR选择未完成，已尝试 3 次
2025-04-30 11:33:59,572 - services.sync_service - INFO - 正在获取任务块详情: 1917422140211220481
2025-04-30 11:33:59,573 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:33:59,574 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:33:59,574 - sqlalchemy.engine.Engine - INFO - [cached since 1.007s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:33:59,577 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:33:59,591 - services.sync_service - INFO - 成功获取任务块详情: 1917422140211220481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422140211220481', 'taskId': '1917422139208781826', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:33:57', 'updateTime': None}, 'timestamp': 1745984038618}
2025-04-30 11:33:59,591 - services.sync_service - DEBUG - 任务块 1917422140211220481 AMR选择未完成，已尝试 4 次
2025-04-30 11:34:00,089 - services.sync_service - INFO - 正在获取任务块详情: 1917422140211220481
2025-04-30 11:34:00,112 - services.sync_service - INFO - 成功获取任务块详情: 1917422140211220481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422140211220481', 'taskId': '1917422139208781826', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:33:57', 'updateTime': None}, 'timestamp': 1745984039143}
2025-04-30 11:34:00,112 - services.sync_service - DEBUG - 任务块 1917422140211220481 AMR选择未完成，已尝试 5 次
2025-04-30 11:34:00,585 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:00,585 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:00,586 - sqlalchemy.engine.Engine - INFO - [cached since 2.019s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:00,591 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:00,631 - services.sync_service - INFO - 正在获取任务块详情: 1917422140211220481
2025-04-30 11:34:00,720 - services.sync_service - INFO - 成功获取任务块详情: 1917422140211220481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422140211220481', 'taskId': '1917422139208781826', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:33:57', 'updateTime': None}, 'timestamp': 1745984039707}
2025-04-30 11:34:00,720 - services.sync_service - DEBUG - 任务块 1917422140211220481 AMR选择未完成，已尝试 6 次
2025-04-30 11:34:01,232 - services.sync_service - INFO - 正在获取任务块详情: 1917422140211220481
2025-04-30 11:34:01,262 - services.sync_service - INFO - 成功获取任务块详情: 1917422140211220481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422140211220481', 'taskId': '1917422139208781826', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:33:57', 'updateTime': None}, 'timestamp': 1745984040288}
2025-04-30 11:34:01,262 - services.sync_service - DEBUG - 任务块 1917422140211220481 AMR选择未完成，已尝试 7 次
2025-04-30 11:34:01,604 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:01,605 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:01,605 - sqlalchemy.engine.Engine - INFO - [cached since 3.038s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:01,606 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:01,776 - services.sync_service - INFO - 正在获取任务块详情: 1917422140211220481
2025-04-30 11:34:01,828 - services.sync_service - INFO - 成功获取任务块详情: 1917422140211220481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422140211220481', 'taskId': '1917422139208781826', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:33:57', 'updateTime': None}, 'timestamp': 1745984040848}
2025-04-30 11:34:01,828 - services.sync_service - DEBUG - 任务块 1917422140211220481 AMR选择未完成，已尝试 8 次
2025-04-30 11:34:02,328 - services.sync_service - INFO - 正在获取任务块详情: 1917422140211220481
2025-04-30 11:34:02,351 - services.sync_service - INFO - 成功获取任务块详情: 1917422140211220481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422140211220481', 'taskId': '1917422139208781826', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:33:57', 'updateTime': None}, 'timestamp': 1745984041377}
2025-04-30 11:34:02,352 - services.sync_service - DEBUG - 任务块 1917422140211220481 AMR选择未完成，已尝试 9 次
2025-04-30 11:34:02,608 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:02,609 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:02,609 - sqlalchemy.engine.Engine - INFO - [cached since 4.042s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:02,610 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:02,871 - services.sync_service - INFO - 正在获取任务块详情: 1917422140211220481
2025-04-30 11:34:02,898 - services.sync_service - INFO - 成功获取任务块详情: 1917422140211220481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422140211220481', 'taskId': '1917422139208781826', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:33:57', 'updateTime': None}, 'timestamp': 1745984041928}
2025-04-30 11:34:02,900 - services.sync_service - INFO - 任务块 1917422140211220481 AMR选择未完成(amrId/appointAmrId/appointAmrGroupId均为空)，已尝试 10 次，继续等待...
2025-04-30 11:34:03,414 - services.sync_service - INFO - 正在获取任务块详情: 1917422140211220481
2025-04-30 11:34:03,486 - services.sync_service - INFO - 成功获取任务块详情: 1917422140211220481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422140211220481', 'taskId': '1917422139208781826', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:33:57', 'updateTime': None}, 'timestamp': 1745984042516}
2025-04-30 11:34:03,486 - services.sync_service - DEBUG - 任务块 1917422140211220481 AMR选择未完成，已尝试 11 次
2025-04-30 11:34:03,615 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:03,617 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:03,619 - sqlalchemy.engine.Engine - INFO - [cached since 5.052s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:03,625 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:03,987 - services.sync_service - INFO - 正在获取任务块详情: 1917422140211220481
2025-04-30 11:34:04,013 - services.sync_service - INFO - 成功获取任务块详情: 1917422140211220481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422140211220481', 'taskId': '1917422139208781826', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:33:57', 'updateTime': None}, 'timestamp': 1745984043043}
2025-04-30 11:34:04,015 - services.sync_service - DEBUG - 任务块 1917422140211220481 AMR选择未完成，已尝试 12 次
2025-04-30 11:34:04,531 - services.sync_service - INFO - 正在获取任务块详情: 1917422140211220481
2025-04-30 11:34:04,571 - services.sync_service - INFO - 成功获取任务块详情: 1917422140211220481 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422140211220481', 'taskId': '1917422139208781826', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:33:57', 'updateTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984043579}
2025-04-30 11:34:04,571 - services.sync_service - INFO - 任务块 1917422140211220481 已选择AMR: 1912328602264645634，共尝试 13 次
2025-04-30 11:34:04,572 - services.execution.handlers.robot_scheduling - INFO - 准备更新任务 eed6b387-ce4e-4340-ab0e-341a5b299905 的机器人ID: 1912328602264645634
2025-04-30 11:34:04,573 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:04,573 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.agv_id 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:04,574 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:04,576 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET agv_id=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:04,577 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('1912328602264645634', datetime.datetime(2025, 4, 30, 11, 34, 4, 576974), 'eed6b387-ce4e-4340-ab0e-341a5b299905')
2025-04-30 11:34:04,577 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:04,592 - services.execution.handlers.robot_scheduling - INFO - 成功更新任务记录 eed6b387-ce4e-4340-ab0e-341a5b299905 的agv_id字段: 1912328602264645634
2025-04-30 11:34:04,592 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 11:34:04,592 - services.execution.handlers.robot_scheduling - INFO - 块 b1(ID:1) 有 1 个子块
2025-04-30 11:34:04,592 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: [2]
2025-04-30 11:34:04,593 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 11:34:04,593 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 1 个
2025-04-30 11:34:04,593 - services.execution.handlers.robot_scheduling - INFO - 1. b2(ID:2, 类型:CAgvOperationBp, 关系:direct_child)
2025-04-30 11:34:04,593 - services.execution.handlers.robot_scheduling - INFO - 开始执行选择机器人块 b1 的子块
2025-04-30 11:34:04,593 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-30 11:34:04,594 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 1 个子块
2025-04-30 11:34:04,594 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b2, ID: 2, 类型: CAgvOperationBp
2025-04-30 11:34:04,594 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:04,595 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:34:04,596 - sqlalchemy.engine.Engine - INFO - [cached since 6.989s ago] ('7d806214-ff0f-4706-972d-bc2456644d35', 'b2', '2', '', '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"targetSiteLabel": "PT02", "scriptName": "JackUnload"}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917422140211220481"}', 'CAgvOperationBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'eed6b387-ce4e-4340-ab0e-341a5b299905', datetime.datetime(2025, 4, 30, 11, 34, 4, 594085), <TaskBlockRecordStatus.RUNNING: 1001>, '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917422140211220481"}', 1, datetime.datetime(2025, 4, 30, 11, 34, 4, 595014), datetime.datetime(2025, 4, 30, 11, 34, 4, 595014), 0)
2025-04-30 11:34:04,596 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:04,602 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 7d806214-ff0f-4706-972d-bc2456644d35
2025-04-30 11:34:04,602 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:04,602 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:34:04,604 - sqlalchemy.engine.Engine - INFO - [cached since 6.98s ago] ('7d806214-ff0f-4706-972d-bc2456644d35',)
2025-04-30 11:34:04,605 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-30 11:34:04,605 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-30 11:34:04,605 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:34:04,606 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('{"selectedAgvId": "1912328602264645634"}', '执行中', "{'agv_for_block_2': '1912328602264645634', 'agv_for_b2': '1912328602264645634', 'agv_task_id_2': '1917422140211220481'}", '{"blocks": {"b2": {"selectedAgvId": "1912328602264645634"}}}', '执行中', datetime.datetime(2025, 4, 30, 11, 34, 4, 605617), '7d806214-ff0f-4706-972d-bc2456644d35')
2025-04-30 11:34:04,606 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:04,614 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-30 11:34:04,614 - services.execution.handlers.robot_scheduling - INFO - 找到块 b2(ID:2) 专用的机器人ID: 1912328602264645634
2025-04-30 11:34:04,614 - services.execution.handlers.robot_scheduling - INFO - 执行机器人通用动作，块 b2(ID:2) 使用机器人: 1912328602264645634, 目标站点: PT02
2025-04-30 11:34:04,614 - services.sync_service - INFO - 正在为任务添加动作: 1917422140211220481, 站点: PT02, 动作: JackUnload
2025-04-30 11:34:04,658 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:04,658 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:04,660 - sqlalchemy.engine.Engine - INFO - [cached since 6.092s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:04,660 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:04,677 - services.sync_service - INFO - 成功为任务添加动作: 1917422140211220481, 站点: PT02, 动作: JackUnload
2025-04-30 11:34:04,677 - services.sync_service - INFO - 开始等待任务块 1917422168753459201 的动作完成
2025-04-30 11:34:04,677 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:04,720 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984043749}
2025-04-30 11:34:04,721 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 1 次
2025-04-30 11:34:05,229 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:05,242 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984044273}
2025-04-30 11:34:05,243 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 2 次
2025-04-30 11:34:05,649 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:05,650 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:05,650 - sqlalchemy.engine.Engine - INFO - [cached since 7.083s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:05,652 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:05,759 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:05,778 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984044807}
2025-04-30 11:34:05,778 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 3 次
2025-04-30 11:34:06,274 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:06,649 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:06,650 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:06,652 - sqlalchemy.engine.Engine - INFO - [cached since 8.085s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:06,653 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:07,298 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984045983}
2025-04-30 11:34:07,299 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 4 次
2025-04-30 11:34:07,659 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:07,660 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:07,661 - sqlalchemy.engine.Engine - INFO - [cached since 9.094s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:07,661 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:07,816 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:08,205 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984047227}
2025-04-30 11:34:08,206 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 5 次
2025-04-30 11:34:08,667 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:08,668 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:08,668 - sqlalchemy.engine.Engine - INFO - [cached since 10.1s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:08,670 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:08,729 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:08,788 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984047819}
2025-04-30 11:34:08,789 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 6 次
2025-04-30 11:34:09,301 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:09,436 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984048462}
2025-04-30 11:34:09,437 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 7 次
2025-04-30 11:34:09,672 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:09,673 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:09,673 - sqlalchemy.engine.Engine - INFO - [cached since 11.11s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:09,674 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:09,951 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:09,995 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984049025}
2025-04-30 11:34:09,997 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 8 次
2025-04-30 11:34:10,490 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:10,672 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984049702}
2025-04-30 11:34:10,673 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 9 次
2025-04-30 11:34:10,694 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:10,695 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:10,697 - sqlalchemy.engine.Engine - INFO - [cached since 12.13s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:10,699 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:11,144 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:11,170 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984050199}
2025-04-30 11:34:11,171 - services.sync_service - INFO - 任务块 1917422168753459201 动作未完成(actionStatus为空)，已尝试 10 次，继续等待...
2025-04-30 11:34:11,669 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:11,695 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984050725}
2025-04-30 11:34:11,696 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 11 次
2025-04-30 11:34:11,697 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:11,697 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:11,698 - sqlalchemy.engine.Engine - INFO - [cached since 13.13s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:11,698 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:12,214 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:12,321 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984051317}
2025-04-30 11:34:12,321 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 12 次
2025-04-30 11:34:12,574 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 11:34:12,576 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:12,580 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:34:12,584 - sqlalchemy.engine.Engine - INFO - [cached since 15.12s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:34:12,585 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:12,590 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:12,594 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:34:12,596 - sqlalchemy.engine.Engine - INFO - [cached since 15.13s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:34:12,599 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:12,604 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 11:34:12,605 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 11:34:12,605 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 11:34:12,607 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:12,609 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 11:34:12,613 - sqlalchemy.engine.Engine - INFO - [cached since 15.14s ago] (None, datetime.datetime(2025, 4, 30, 11, 34, 12, 609272), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 11:34:12,616 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:12,633 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:12,637 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:34:12,638 - sqlalchemy.engine.Engine - INFO - [cached since 15.17s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:34:12,639 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:34:12,640 - sqlalchemy.engine.Engine - INFO - [cached since 15.15s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 11, 34, 12, 604261), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.4", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 11, 34, 12, 639446), datetime.datetime(2025, 4, 30, 11, 34, 12, 639446), 0)
2025-04-30 11:34:12,641 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:12,649 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:12,649 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:12,650 - sqlalchemy.engine.Engine - INFO - [cached since 15.15s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:12,651 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:12,652 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 6a8e8efd-22ae-41ef-b018-709981ee97dd (优先级 1) 添加到队列 0
2025-04-30 11:34:12,652 - services.sync_service - INFO - 正在同步创建任务到天风系统: 6a8e8efd-22ae-41ef-b018-709981ee97dd
2025-04-30 11:34:12,652 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"6a8e8efd-22ae-41ef-b018-709981ee97dd","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 11:34:12","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 11:34:12,676 - services.sync_service - INFO - 成功同步任务到系统任务: 6a8e8efd-22ae-41ef-b018-709981ee97dd
2025-04-30 11:34:12,676 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 6a8e8efd-22ae-41ef-b018-709981ee97dd
2025-04-30 11:34:12,677 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 6a8e8efd-22ae-41ef-b018-709981ee97dd
2025-04-30 11:34:12,677 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1035秒
2025-04-30 11:34:12,708 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:12,708 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:12,708 - sqlalchemy.engine.Engine - INFO - [cached since 14.14s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:12,709 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:12,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: 6a8e8efd-22ae-41ef-b018-709981ee97dd, 优先级: 1
2025-04-30 11:34:12,737 - services.execution.task_executor - DEBUG - 任务 6a8e8efd-22ae-41ef-b018-709981ee97dd 设置超时时间: 3600秒
2025-04-30 11:34:12,737 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:12,738 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:12,739 - sqlalchemy.engine.Engine - INFO - [cached since 15.24s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:12,740 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:34:12,740 - sqlalchemy.engine.Engine - INFO - [cached since 15.28s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:34:12,741 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:12,741 - sqlalchemy.engine.Engine - INFO - [cached since 15.17s ago] (datetime.datetime(2025, 4, 30, 11, 34, 12, 741602), datetime.datetime(2025, 4, 30, 11, 34, 12, 741602), '6a8e8efd-22ae-41ef-b018-709981ee97dd')
2025-04-30 11:34:12,741 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:12,749 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:12,749 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:12,750 - sqlalchemy.engine.Engine - INFO - [cached since 15.16s ago] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 34, 12, 749081), '6a8e8efd-22ae-41ef-b018-709981ee97dd')
2025-04-30 11:34:12,750 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:12,756 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 11:34:12,756 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:12,757 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:34:12,757 - sqlalchemy.engine.Engine - INFO - [cached since 15.15s ago] ('6a32c12e-8220-4e94-8908-35b006edb8b7', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6a8e8efd-22ae-41ef-b018-709981ee97dd', datetime.datetime(2025, 4, 30, 11, 34, 12, 756705), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 34, 12, 757697), datetime.datetime(2025, 4, 30, 11, 34, 12, 757697), 0)
2025-04-30 11:34:12,758 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:12,765 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:12,765 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:34:12,766 - sqlalchemy.engine.Engine - INFO - [cached since 15.14s ago] ('6a32c12e-8220-4e94-8908-35b006edb8b7',)
2025-04-30 11:34:12,766 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 11:34:12,766 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 11:34:12,767 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:34:12,767 - sqlalchemy.engine.Engine - INFO - [cached since 15.13s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 34, 12, 767535), '6a32c12e-8220-4e94-8908-35b006edb8b7')
2025-04-30 11:34:12,767 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:12,773 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 11:34:12,774 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 11:34:12,775 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 11:34:12,775 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:12,775 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:34:12,777 - sqlalchemy.engine.Engine - INFO - [cached since 15.17s ago] ('59382797-a179-44d0-b947-5e223454ad67', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6a8e8efd-22ae-41ef-b018-709981ee97dd', datetime.datetime(2025, 4, 30, 11, 34, 12, 775955), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 34, 12, 775955), datetime.datetime(2025, 4, 30, 11, 34, 12, 775955), 0)
2025-04-30 11:34:12,777 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:12,784 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 59382797-a179-44d0-b947-5e223454ad67
2025-04-30 11:34:12,784 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:12,784 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:34:12,784 - sqlalchemy.engine.Engine - INFO - [cached since 15.16s ago] ('59382797-a179-44d0-b947-5e223454ad67',)
2025-04-30 11:34:12,786 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 11:34:12,786 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 11:34:12,786 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:34:12,786 - sqlalchemy.engine.Engine - INFO - [cached since 15.15s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 34, 12, 786050), '59382797-a179-44d0-b947-5e223454ad67')
2025-04-30 11:34:12,787 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:12,792 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 11:34:12,792 - services.sync_service - INFO - 正在创建选择AMR任务: 6a8e8efd-22ae-41ef-b018-709981ee97dd, 站点: TK01
2025-04-30 11:34:12,815 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:12,849 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984051864}
2025-04-30 11:34:12,850 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 13 次
2025-04-30 11:34:12,850 - services.sync_service - INFO - 成功为任务选择AMR: 6a8e8efd-22ae-41ef-b018-709981ee97dd, AMR: None
2025-04-30 11:34:12,850 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917422203117391873 的AMR选择结果
2025-04-30 11:34:12,852 - services.sync_service - INFO - 开始等待任务块 1917422203117391873 的AMR选择结果
2025-04-30 11:34:12,852 - services.sync_service - INFO - 正在获取任务块详情: 1917422203117391873
2025-04-30 11:34:12,892 - services.sync_service - INFO - 成功获取任务块详情: 1917422203117391873 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422203117391873', 'taskId': '1917422202454691841', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:34:12', 'updateTime': None}, 'timestamp': 1745984051922}
2025-04-30 11:34:12,892 - services.sync_service - DEBUG - 任务块 1917422203117391873 AMR选择未完成，已尝试 1 次
2025-04-30 11:34:12,974 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 11:34:12,975 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:12,976 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:34:12,976 - sqlalchemy.engine.Engine - INFO - [cached since 15.51s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:34:12,978 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:12,979 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:12,980 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:34:12,980 - sqlalchemy.engine.Engine - INFO - [cached since 15.52s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:34:12,981 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:12,983 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 11:34:12,983 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 11:34:12,983 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 11:34:12,984 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:12,984 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 11:34:12,984 - sqlalchemy.engine.Engine - INFO - [cached since 15.51s ago] (None, datetime.datetime(2025, 4, 30, 11, 34, 12, 984714), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 11:34:12,985 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:12,994 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:12,995 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:34:12,995 - sqlalchemy.engine.Engine - INFO - [cached since 15.53s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:34:12,996 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:34:12,997 - sqlalchemy.engine.Engine - INFO - [cached since 15.51s ago] ('411fd552-da70-406f-910a-f072831fdc1b', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 11, 34, 12, 983690), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.4", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 11, 34, 12, 996704), datetime.datetime(2025, 4, 30, 11, 34, 12, 996704), 0)
2025-04-30 11:34:12,998 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:13,005 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:13,006 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:13,006 - sqlalchemy.engine.Engine - INFO - [cached since 15.51s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:13,007 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:13,009 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 411fd552-da70-406f-910a-f072831fdc1b (优先级 1) 添加到队列 0
2025-04-30 11:34:13,009 - services.sync_service - INFO - 正在同步创建任务到天风系统: 411fd552-da70-406f-910a-f072831fdc1b
2025-04-30 11:34:13,009 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"411fd552-da70-406f-910a-f072831fdc1b","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 11:34:13","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 11:34:13,056 - services.sync_service - INFO - 成功同步任务到系统任务: 411fd552-da70-406f-910a-f072831fdc1b
2025-04-30 11:34:13,056 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 411fd552-da70-406f-910a-f072831fdc1b, 优先级: 1
2025-04-30 11:34:13,056 - services.execution.task_executor - DEBUG - 任务 411fd552-da70-406f-910a-f072831fdc1b 设置超时时间: 3600秒
2025-04-30 11:34:13,057 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 411fd552-da70-406f-910a-f072831fdc1b
2025-04-30 11:34:13,057 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 411fd552-da70-406f-910a-f072831fdc1b
2025-04-30 11:34:13,058 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:13,058 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:13,058 - sqlalchemy.engine.Engine - INFO - [cached since 15.56s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:13,058 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0842秒
2025-04-30 11:34:13,060 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:34:13,060 - sqlalchemy.engine.Engine - INFO - [cached since 15.6s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:34:13,061 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:13,061 - sqlalchemy.engine.Engine - INFO - [cached since 15.49s ago] (datetime.datetime(2025, 4, 30, 11, 34, 13, 61951), datetime.datetime(2025, 4, 30, 11, 34, 13, 61951), '411fd552-da70-406f-910a-f072831fdc1b')
2025-04-30 11:34:13,062 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:13,070 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:13,070 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:13,071 - sqlalchemy.engine.Engine - INFO - [cached since 15.49s ago] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 34, 13, 70958), '411fd552-da70-406f-910a-f072831fdc1b')
2025-04-30 11:34:13,071 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:13,078 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 11:34:13,079 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:13,080 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:34:13,081 - sqlalchemy.engine.Engine - INFO - [cached since 15.47s ago] ('7c60b5d3-4378-4c33-b3a9-98a9710bd315', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '411fd552-da70-406f-910a-f072831fdc1b', datetime.datetime(2025, 4, 30, 11, 34, 13, 79065), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 34, 13, 80067), datetime.datetime(2025, 4, 30, 11, 34, 13, 80067), 0)
2025-04-30 11:34:13,081 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:13,088 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:13,088 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:34:13,088 - sqlalchemy.engine.Engine - INFO - [cached since 15.46s ago] ('7c60b5d3-4378-4c33-b3a9-98a9710bd315',)
2025-04-30 11:34:13,089 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 11:34:13,089 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 11:34:13,089 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:34:13,089 - sqlalchemy.engine.Engine - INFO - [cached since 15.45s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 34, 13, 89066), '7c60b5d3-4378-4c33-b3a9-98a9710bd315')
2025-04-30 11:34:13,090 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:13,096 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 11:34:13,096 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 11:34:13,097 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 11:34:13,097 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:13,098 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:34:13,098 - sqlalchemy.engine.Engine - INFO - [cached since 15.49s ago] ('959e689f-430f-4f0d-9f8d-b3e6abfcb780', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '411fd552-da70-406f-910a-f072831fdc1b', datetime.datetime(2025, 4, 30, 11, 34, 13, 97263), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 34, 13, 98244), datetime.datetime(2025, 4, 30, 11, 34, 13, 98244), 0)
2025-04-30 11:34:13,098 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:13,104 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 959e689f-430f-4f0d-9f8d-b3e6abfcb780
2025-04-30 11:34:13,105 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:13,105 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:34:13,106 - sqlalchemy.engine.Engine - INFO - [cached since 15.48s ago] ('959e689f-430f-4f0d-9f8d-b3e6abfcb780',)
2025-04-30 11:34:13,106 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 11:34:13,107 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 11:34:13,108 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:34:13,108 - sqlalchemy.engine.Engine - INFO - [cached since 15.47s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 34, 13, 108203), '959e689f-430f-4f0d-9f8d-b3e6abfcb780')
2025-04-30 11:34:13,109 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:13,113 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 11:34:13,115 - services.sync_service - INFO - 正在创建选择AMR任务: 411fd552-da70-406f-910a-f072831fdc1b, 站点: TK01
2025-04-30 11:34:13,165 - services.sync_service - INFO - 成功为任务选择AMR: 411fd552-da70-406f-910a-f072831fdc1b, AMR: None
2025-04-30 11:34:13,165 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917422204434403330 的AMR选择结果
2025-04-30 11:34:13,166 - services.sync_service - INFO - 开始等待任务块 1917422204434403330 的AMR选择结果
2025-04-30 11:34:13,166 - services.sync_service - INFO - 正在获取任务块详情: 1917422204434403330
2025-04-30 11:34:13,184 - services.sync_service - INFO - 成功获取任务块详情: 1917422204434403330 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422204434403330', 'taskId': '1917422204010778625', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:34:12', 'updateTime': None}, 'timestamp': 1745984052214}
2025-04-30 11:34:13,185 - services.sync_service - DEBUG - 任务块 1917422204434403330 AMR选择未完成，已尝试 1 次
2025-04-30 11:34:13,358 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:13,406 - services.sync_service - INFO - 正在获取任务块详情: 1917422203117391873
2025-04-30 11:34:13,419 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984052448}
2025-04-30 11:34:13,419 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 14 次
2025-04-30 11:34:13,422 - services.sync_service - INFO - 成功获取任务块详情: 1917422203117391873 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422203117391873', 'taskId': '1917422202454691841', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:34:12', 'updateTime': None}, 'timestamp': 1745984052454}
2025-04-30 11:34:13,423 - services.sync_service - DEBUG - 任务块 1917422203117391873 AMR选择未完成，已尝试 2 次
2025-04-30 11:34:13,684 - services.sync_service - INFO - 正在获取任务块详情: 1917422204434403330
2025-04-30 11:34:13,698 - services.sync_service - INFO - 成功获取任务块详情: 1917422204434403330 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422204434403330', 'taskId': '1917422204010778625', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:34:12', 'updateTime': None}, 'timestamp': 1745984052729}
2025-04-30 11:34:13,699 - services.sync_service - DEBUG - 任务块 1917422204434403330 AMR选择未完成，已尝试 2 次
2025-04-30 11:34:13,699 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:13,700 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:13,705 - sqlalchemy.engine.Engine - INFO - [cached since 15.14s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:13,706 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:13,745 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:13,746 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:13,746 - sqlalchemy.engine.Engine - INFO - [cached since 15.18s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:13,747 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:13,899 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:13,900 - services.sync_service - INFO - 正在获取任务块详情: 1917422203117391873
2025-04-30 11:34:13,944 - services.sync_service - INFO - 成功获取任务块详情: 1917422203117391873 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422203117391873', 'taskId': '1917422202454691841', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:34:12', 'updateTime': None}, 'timestamp': 1745984052973}
2025-04-30 11:34:13,945 - services.sync_service - DEBUG - 任务块 1917422203117391873 AMR选择未完成，已尝试 3 次
2025-04-30 11:34:13,945 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984052972}
2025-04-30 11:34:13,945 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 15 次
2025-04-30 11:34:14,070 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:14,071 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:14,072 - sqlalchemy.engine.Engine - INFO - [cached since 15.5s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:14,072 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:14,211 - services.sync_service - INFO - 正在获取任务块详情: 1917422204434403330
2025-04-30 11:34:14,231 - services.sync_service - INFO - 成功获取任务块详情: 1917422204434403330 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422204434403330', 'taskId': '1917422204010778625', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:34:12', 'updateTime': None}, 'timestamp': 1745984053260}
2025-04-30 11:34:14,231 - services.sync_service - DEBUG - 任务块 1917422204434403330 AMR选择未完成，已尝试 3 次
2025-04-30 11:34:14,457 - services.sync_service - INFO - 正在获取任务块详情: 1917422203117391873
2025-04-30 11:34:14,458 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:14,545 - services.sync_service - INFO - 成功获取任务块详情: 1917422203117391873 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422203117391873', 'taskId': '1917422202454691841', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:34:12', 'updateTime': None}, 'timestamp': 1745984053506}
2025-04-30 11:34:14,545 - services.sync_service - DEBUG - 任务块 1917422203117391873 AMR选择未完成，已尝试 4 次
2025-04-30 11:34:14,546 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984053506}
2025-04-30 11:34:14,546 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 16 次
2025-04-30 11:34:14,720 - services.sync_service - INFO - 正在获取任务块详情: 1917422204434403330
2025-04-30 11:34:14,721 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:14,723 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:14,727 - sqlalchemy.engine.Engine - INFO - [cached since 16.16s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:14,728 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:14,731 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:14,735 - sqlalchemy.engine.Engine - INFO - [cached since 16.17s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:14,736 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:14,737 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:14,753 - services.sync_service - INFO - 成功获取任务块详情: 1917422204434403330 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422204434403330', 'taskId': '1917422204010778625', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:34:12', 'updateTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984053779}
2025-04-30 11:34:14,756 - services.sync_service - INFO - 任务块 1917422204434403330 已选择AMR: 1912328602264645634，共尝试 4 次
2025-04-30 11:34:14,757 - services.execution.handlers.robot_scheduling - INFO - 准备更新任务 411fd552-da70-406f-910a-f072831fdc1b 的机器人ID: 1912328602264645634
2025-04-30 11:34:14,760 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:14,763 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.agv_id 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:14,767 - sqlalchemy.engine.Engine - INFO - [cached since 10.19s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:14,768 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET agv_id=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:14,770 - sqlalchemy.engine.Engine - INFO - [cached since 10.19s ago] ('1912328602264645634', datetime.datetime(2025, 4, 30, 11, 34, 14, 768675), '411fd552-da70-406f-910a-f072831fdc1b')
2025-04-30 11:34:14,774 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:14,788 - services.execution.handlers.robot_scheduling - INFO - 成功更新任务记录 411fd552-da70-406f-910a-f072831fdc1b 的agv_id字段: 1912328602264645634
2025-04-30 11:34:14,789 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 11:34:14,791 - services.execution.handlers.robot_scheduling - INFO - 块 b1(ID:1) 有 1 个子块
2025-04-30 11:34:14,793 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: [2]
2025-04-30 11:34:14,795 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 11:34:14,797 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 1 个
2025-04-30 11:34:14,799 - services.execution.handlers.robot_scheduling - INFO - 1. b2(ID:2, 类型:CAgvOperationBp, 关系:direct_child)
2025-04-30 11:34:14,800 - services.execution.handlers.robot_scheduling - INFO - 开始执行选择机器人块 b1 的子块
2025-04-30 11:34:14,800 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-30 11:34:14,800 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 1 个子块
2025-04-30 11:34:14,801 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b2, ID: 2, 类型: CAgvOperationBp
2025-04-30 11:34:14,801 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:14,803 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:34:14,807 - sqlalchemy.engine.Engine - INFO - [cached since 17.2s ago] ('bdc89805-732f-4df1-a043-58de11db0409', 'b2', '2', '', '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"targetSiteLabel": "PT02", "scriptName": "JackUnload"}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917422204434403330"}', 'CAgvOperationBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '411fd552-da70-406f-910a-f072831fdc1b', datetime.datetime(2025, 4, 30, 11, 34, 14, 801707), <TaskBlockRecordStatus.RUNNING: 1001>, '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917422204434403330"}', 1, datetime.datetime(2025, 4, 30, 11, 34, 14, 803846), datetime.datetime(2025, 4, 30, 11, 34, 14, 803846), 0)
2025-04-30 11:34:14,811 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:14,819 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: bdc89805-732f-4df1-a043-58de11db0409
2025-04-30 11:34:14,820 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:14,821 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:34:14,823 - sqlalchemy.engine.Engine - INFO - [cached since 17.2s ago] ('bdc89805-732f-4df1-a043-58de11db0409',)
2025-04-30 11:34:14,829 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-30 11:34:14,830 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-30 11:34:14,831 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:34:14,832 - sqlalchemy.engine.Engine - INFO - [cached since 10.23s ago] ('{"selectedAgvId": "1912328602264645634"}', '执行中', "{'agv_for_block_2': '1912328602264645634', 'agv_for_b2': '1912328602264645634', 'agv_task_id_2': '1917422204434403330'}", '{"blocks": {"b2": {"selectedAgvId": "1912328602264645634"}}}', '执行中', datetime.datetime(2025, 4, 30, 11, 34, 14, 831289), 'bdc89805-732f-4df1-a043-58de11db0409')
2025-04-30 11:34:14,833 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:14,838 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-30 11:34:14,839 - services.execution.handlers.robot_scheduling - INFO - 找到块 b2(ID:2) 专用的机器人ID: 1912328602264645634
2025-04-30 11:34:14,839 - services.execution.handlers.robot_scheduling - INFO - 执行机器人通用动作，块 b2(ID:2) 使用机器人: 1912328602264645634, 目标站点: PT02
2025-04-30 11:34:14,839 - services.sync_service - INFO - 正在为任务添加动作: 1917422204434403330, 站点: PT02, 动作: JackUnload
2025-04-30 11:34:14,900 - services.sync_service - INFO - 成功为任务添加动作: 1917422204434403330, 站点: PT02, 动作: JackUnload
2025-04-30 11:34:14,900 - services.sync_service - INFO - 开始等待任务块 1917422211677966337 的动作完成
2025-04-30 11:34:14,901 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:14,936 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984053966}
2025-04-30 11:34:14,937 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 1 次
2025-04-30 11:34:15,061 - services.sync_service - INFO - 正在获取任务块详情: 1917422203117391873
2025-04-30 11:34:15,063 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:15,065 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:15,066 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:15,066 - sqlalchemy.engine.Engine - INFO - [cached since 16.5s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:15,067 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:15,081 - services.sync_service - INFO - 成功获取任务块详情: 1917422203117391873 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422203117391873', 'taskId': '1917422202454691841', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 11:34:12', 'updateTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984054108}
2025-04-30 11:34:15,081 - services.sync_service - INFO - 任务块 1917422203117391873 已选择AMR: 1912328602264645634，共尝试 5 次
2025-04-30 11:34:15,081 - services.execution.handlers.robot_scheduling - INFO - 准备更新任务 6a8e8efd-22ae-41ef-b018-709981ee97dd 的机器人ID: 1912328602264645634
2025-04-30 11:34:15,082 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984054110}
2025-04-30 11:34:15,082 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 17 次
2025-04-30 11:34:15,082 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:15,083 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.agv_id 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:15,083 - sqlalchemy.engine.Engine - INFO - [cached since 10.51s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:15,084 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET agv_id=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:15,084 - sqlalchemy.engine.Engine - INFO - [cached since 10.51s ago] ('1912328602264645634', datetime.datetime(2025, 4, 30, 11, 34, 15, 84191), '6a8e8efd-22ae-41ef-b018-709981ee97dd')
2025-04-30 11:34:15,085 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:15,092 - services.execution.handlers.robot_scheduling - INFO - 成功更新任务记录 6a8e8efd-22ae-41ef-b018-709981ee97dd 的agv_id字段: 1912328602264645634
2025-04-30 11:34:15,092 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 11:34:15,092 - services.execution.handlers.robot_scheduling - INFO - 块 b1(ID:1) 有 1 个子块
2025-04-30 11:34:15,092 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: [2]
2025-04-30 11:34:15,092 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 11:34:15,092 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 1 个
2025-04-30 11:34:15,092 - services.execution.handlers.robot_scheduling - INFO - 1. b2(ID:2, 类型:CAgvOperationBp, 关系:direct_child)
2025-04-30 11:34:15,093 - services.execution.handlers.robot_scheduling - INFO - 开始执行选择机器人块 b1 的子块
2025-04-30 11:34:15,093 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-30 11:34:15,093 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 1 个子块
2025-04-30 11:34:15,093 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b2, ID: 2, 类型: CAgvOperationBp
2025-04-30 11:34:15,093 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:15,093 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:34:15,093 - sqlalchemy.engine.Engine - INFO - [cached since 17.49s ago] ('1c252390-524f-4c13-9a41-c91fba0ec80c', 'b2', '2', '', '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"targetSiteLabel": "PT02", "scriptName": "JackUnload"}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917422203117391873"}', 'CAgvOperationBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6a8e8efd-22ae-41ef-b018-709981ee97dd', datetime.datetime(2025, 4, 30, 11, 34, 15, 93883), <TaskBlockRecordStatus.RUNNING: 1001>, '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917422203117391873"}', 1, datetime.datetime(2025, 4, 30, 11, 34, 15, 93883), datetime.datetime(2025, 4, 30, 11, 34, 15, 93883), 0)
2025-04-30 11:34:15,095 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:15,101 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 1c252390-524f-4c13-9a41-c91fba0ec80c
2025-04-30 11:34:15,101 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:15,106 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:34:15,109 - sqlalchemy.engine.Engine - INFO - [cached since 17.48s ago] ('1c252390-524f-4c13-9a41-c91fba0ec80c',)
2025-04-30 11:34:15,110 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-30 11:34:15,110 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-30 11:34:15,111 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:34:15,111 - sqlalchemy.engine.Engine - INFO - [cached since 10.51s ago] ('{"selectedAgvId": "1912328602264645634"}', '执行中', "{'agv_for_block_2': '1912328602264645634', 'agv_for_b2': '1912328602264645634', 'agv_task_id_2': '1917422203117391873'}", '{"blocks": {"b2": {"selectedAgvId": "1912328602264645634"}}}', '执行中', datetime.datetime(2025, 4, 30, 11, 34, 15, 111293), '1c252390-524f-4c13-9a41-c91fba0ec80c')
2025-04-30 11:34:15,112 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:15,119 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-30 11:34:15,119 - services.execution.handlers.robot_scheduling - INFO - 找到块 b2(ID:2) 专用的机器人ID: 1912328602264645634
2025-04-30 11:34:15,122 - services.execution.handlers.robot_scheduling - INFO - 执行机器人通用动作，块 b2(ID:2) 使用机器人: 1912328602264645634, 目标站点: PT02
2025-04-30 11:34:15,123 - services.sync_service - INFO - 正在为任务添加动作: 1917422203117391873, 站点: PT02, 动作: JackUnload
2025-04-30 11:34:15,147 - services.sync_service - INFO - 成功为任务添加动作: 1917422203117391873, 站点: PT02, 动作: JackUnload
2025-04-30 11:34:15,149 - services.sync_service - INFO - 开始等待任务块 1917422212797845505 的动作完成
2025-04-30 11:34:15,153 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:15,262 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984054215}
2025-04-30 11:34:15,263 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 1 次
2025-04-30 11:34:15,436 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:15,458 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984054481}
2025-04-30 11:34:15,458 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 2 次
2025-04-30 11:34:15,574 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:15,758 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:15,759 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:15,760 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:15,760 - sqlalchemy.engine.Engine - INFO - [cached since 17.19s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:15,760 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:15,761 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:15,761 - sqlalchemy.engine.Engine - INFO - [cached since 17.19s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:15,762 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:15,762 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:15,767 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984054671}
2025-04-30 11:34:15,767 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 18 次
2025-04-30 11:34:15,780 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984054809}
2025-04-30 11:34:15,782 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 2 次
2025-04-30 11:34:15,961 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:15,982 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984055007}
2025-04-30 11:34:15,982 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 3 次
2025-04-30 11:34:16,086 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:16,087 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:16,088 - sqlalchemy.engine.Engine - INFO - [cached since 17.52s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:16,088 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:16,273 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:16,275 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:16,308 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984055336}
2025-04-30 11:34:16,308 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 19 次
2025-04-30 11:34:16,308 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984055336}
2025-04-30 11:34:16,308 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 3 次
2025-04-30 11:34:16,489 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:16,511 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984055537}
2025-04-30 11:34:16,511 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 4 次
2025-04-30 11:34:16,771 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:16,772 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:16,772 - sqlalchemy.engine.Engine - INFO - [cached since 18.2s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:16,773 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:16,775 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:16,776 - sqlalchemy.engine.Engine - INFO - [cached since 18.21s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:16,777 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:16,778 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:16,817 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:16,818 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:16,866 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984055894}
2025-04-30 11:34:16,866 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 4 次
2025-04-30 11:34:16,866 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984055894}
2025-04-30 11:34:16,867 - services.sync_service - INFO - 任务块 1917422168753459201 动作未完成(actionStatus为空)，已尝试 20 次，继续等待...
2025-04-30 11:34:17,019 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:17,056 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984056066}
2025-04-30 11:34:17,056 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 5 次
2025-04-30 11:34:17,081 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:17,082 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:17,082 - sqlalchemy.engine.Engine - INFO - [cached since 18.52s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:17,084 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:17,390 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:17,397 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:17,422 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984056444}
2025-04-30 11:34:17,424 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 5 次
2025-04-30 11:34:17,432 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984056463}
2025-04-30 11:34:17,432 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 21 次
2025-04-30 11:34:17,576 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:17,605 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984056634}
2025-04-30 11:34:17,605 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 6 次
2025-04-30 11:34:17,793 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:17,794 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:17,794 - sqlalchemy.engine.Engine - INFO - [cached since 19.23s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:17,794 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:17,796 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:17,796 - sqlalchemy.engine.Engine - INFO - [cached since 19.23s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:17,796 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:17,797 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:17,935 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:17,936 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:17,994 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984057024}
2025-04-30 11:34:17,996 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 22 次
2025-04-30 11:34:17,996 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984057024}
2025-04-30 11:34:17,997 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 6 次
2025-04-30 11:34:18,075 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:18,076 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:18,076 - sqlalchemy.engine.Engine - INFO - [cached since 19.51s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:18,081 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:18,106 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:18,136 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984057152}
2025-04-30 11:34:18,136 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 7 次
2025-04-30 11:34:18,507 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:18,509 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:18,593 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984057612}
2025-04-30 11:34:18,594 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 7 次
2025-04-30 11:34:18,594 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984057616}
2025-04-30 11:34:18,595 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 23 次
2025-04-30 11:34:18,631 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:18,658 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984057688}
2025-04-30 11:34:18,659 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 8 次
2025-04-30 11:34:18,772 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:18,774 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:18,777 - sqlalchemy.engine.Engine - INFO - [cached since 20.21s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:18,781 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:18,783 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:18,788 - sqlalchemy.engine.Engine - INFO - [cached since 20.22s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:18,790 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:18,793 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:19,099 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:19,100 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:19,101 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:19,101 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:19,101 - sqlalchemy.engine.Engine - INFO - [cached since 20.53s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:19,101 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:19,121 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984058151}
2025-04-30 11:34:19,121 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 8 次
2025-04-30 11:34:19,123 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984058153}
2025-04-30 11:34:19,123 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 24 次
2025-04-30 11:34:19,175 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:19,219 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984058249}
2025-04-30 11:34:19,222 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 9 次
2025-04-30 11:34:19,640 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:19,642 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:19,682 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984058713}
2025-04-30 11:34:19,682 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 9 次
2025-04-30 11:34:19,687 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984058713}
2025-04-30 11:34:19,689 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 25 次
2025-04-30 11:34:19,749 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:19,766 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984058797}
2025-04-30 11:34:19,766 - services.sync_service - INFO - 任务块 1917422211677966337 动作未完成(actionStatus为空)，已尝试 10 次，继续等待...
2025-04-30 11:34:19,795 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:19,796 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:19,796 - sqlalchemy.engine.Engine - INFO - [cached since 21.23s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:19,797 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:19,797 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:19,797 - sqlalchemy.engine.Engine - INFO - [cached since 21.23s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:19,797 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:19,798 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:20,109 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:20,109 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:20,109 - sqlalchemy.engine.Engine - INFO - [cached since 21.54s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:20,110 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:20,200 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:20,201 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:20,246 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984059272}
2025-04-30 11:34:20,247 - services.sync_service - INFO - 任务块 1917422212797845505 动作未完成(actionStatus为空)，已尝试 10 次，继续等待...
2025-04-30 11:34:20,278 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:20,279 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984059288}
2025-04-30 11:34:20,279 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 26 次
2025-04-30 11:34:20,345 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984059337}
2025-04-30 11:34:20,345 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 11 次
2025-04-30 11:34:20,753 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:20,772 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984059802}
2025-04-30 11:34:20,772 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:20,774 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 11 次
2025-04-30 11:34:20,774 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:20,776 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:20,777 - sqlalchemy.engine.Engine - INFO - [cached since 22.21s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:20,777 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:20,778 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:20,778 - sqlalchemy.engine.Engine - INFO - [cached since 22.21s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:20,778 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:20,779 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:20,792 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984059820}
2025-04-30 11:34:20,792 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 27 次
2025-04-30 11:34:20,815 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:20,855 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984059885}
2025-04-30 11:34:20,856 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 12 次
2025-04-30 11:34:21,141 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:21,142 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:21,143 - sqlalchemy.engine.Engine - INFO - [cached since 22.58s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:21,144 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:21,297 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:21,299 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:21,359 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:21,393 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984060381}
2025-04-30 11:34:21,395 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 28 次
2025-04-30 11:34:21,395 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984060381}
2025-04-30 11:34:21,395 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 12 次
2025-04-30 11:34:21,528 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984060467}
2025-04-30 11:34:21,529 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 13 次
2025-04-30 11:34:21,793 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:21,794 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:21,794 - sqlalchemy.engine.Engine - INFO - [cached since 23.23s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:21,794 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:21,795 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:21,795 - sqlalchemy.engine.Engine - INFO - [cached since 23.23s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:21,795 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:21,797 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:21,917 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:21,919 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:21,995 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984060977}
2025-04-30 11:34:21,996 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 29 次
2025-04-30 11:34:21,997 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984060977}
2025-04-30 11:34:21,998 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 13 次
2025-04-30 11:34:22,041 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:22,066 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984061085}
2025-04-30 11:34:22,067 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 14 次
2025-04-30 11:34:22,148 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:22,149 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:22,149 - sqlalchemy.engine.Engine - INFO - [cached since 23.58s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:22,151 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:22,490 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:22,492 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:22,509 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984061537}
2025-04-30 11:34:22,510 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 14 次
2025-04-30 11:34:22,510 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984061537}
2025-04-30 11:34:22,511 - services.sync_service - INFO - 任务块 1917422168753459201 动作未完成(actionStatus为空)，已尝试 30 次，继续等待...
2025-04-30 11:34:22,584 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:22,598 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984061629}
2025-04-30 11:34:22,598 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 15 次
2025-04-30 11:34:22,788 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:22,790 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:22,791 - sqlalchemy.engine.Engine - INFO - [cached since 24.22s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:22,792 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:22,793 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:22,797 - sqlalchemy.engine.Engine - INFO - [cached since 24.23s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:22,801 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:22,803 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:23,006 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:23,008 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:23,039 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984062068}
2025-04-30 11:34:23,039 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 15 次
2025-04-30 11:34:23,039 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984062068}
2025-04-30 11:34:23,040 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 31 次
2025-04-30 11:34:23,113 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:23,159 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:23,161 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:23,163 - sqlalchemy.engine.Engine - INFO - [cached since 24.6s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:23,165 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:23,173 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984062158}
2025-04-30 11:34:23,173 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 16 次
2025-04-30 11:34:23,549 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:23,551 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:23,568 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984062599}
2025-04-30 11:34:23,570 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 16 次
2025-04-30 11:34:23,570 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984062599}
2025-04-30 11:34:23,570 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 32 次
2025-04-30 11:34:23,689 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:23,708 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984062738}
2025-04-30 11:34:23,709 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 17 次
2025-04-30 11:34:23,827 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:23,828 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:23,828 - sqlalchemy.engine.Engine - INFO - [cached since 25.26s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:23,829 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:23,829 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:23,829 - sqlalchemy.engine.Engine - INFO - [cached since 25.26s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:23,829 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:23,830 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:24,075 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:24,076 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:24,117 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984063146}
2025-04-30 11:34:24,117 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 17 次
2025-04-30 11:34:24,117 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984063146}
2025-04-30 11:34:24,117 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 33 次
2025-04-30 11:34:24,168 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:24,169 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:24,170 - sqlalchemy.engine.Engine - INFO - [cached since 25.6s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:24,172 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:24,216 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:24,290 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984063296}
2025-04-30 11:34:24,291 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 18 次
2025-04-30 11:34:24,634 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:24,635 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:24,678 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984063706}
2025-04-30 11:34:24,678 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 18 次
2025-04-30 11:34:24,678 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984063706}
2025-04-30 11:34:24,679 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 34 次
2025-04-30 11:34:24,791 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:24,821 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:24,822 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:24,823 - sqlalchemy.engine.Engine - INFO - [cached since 26.26s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:24,823 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:24,823 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:24,824 - sqlalchemy.engine.Engine - INFO - [cached since 26.26s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:24,824 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:24,825 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:24,833 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984063863}
2025-04-30 11:34:24,833 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 19 次
2025-04-30 11:34:25,196 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:25,196 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:25,198 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:25,199 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:25,200 - sqlalchemy.engine.Engine - INFO - [cached since 26.63s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:25,202 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:25,213 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984064242}
2025-04-30 11:34:25,213 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 19 次
2025-04-30 11:34:25,214 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984064242}
2025-04-30 11:34:25,214 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 35 次
2025-04-30 11:34:25,318 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:25,372 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984064371}
2025-04-30 11:34:25,373 - services.sync_service - INFO - 任务块 1917422211677966337 动作未完成(actionStatus为空)，已尝试 20 次，继续等待...
2025-04-30 11:34:25,708 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:25,712 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:25,723 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984064753}
2025-04-30 11:34:25,724 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 36 次
2025-04-30 11:34:25,727 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984064757}
2025-04-30 11:34:25,728 - services.sync_service - INFO - 任务块 1917422212797845505 动作未完成(actionStatus为空)，已尝试 20 次，继续等待...
2025-04-30 11:34:25,817 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:25,818 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:25,818 - sqlalchemy.engine.Engine - INFO - [cached since 27.25s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:25,819 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:25,819 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:25,819 - sqlalchemy.engine.Engine - INFO - [cached since 27.25s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:25,820 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:25,821 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:25,879 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:25,895 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984064925}
2025-04-30 11:34:25,896 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 21 次
2025-04-30 11:34:26,206 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:26,207 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:26,210 - sqlalchemy.engine.Engine - INFO - [cached since 27.64s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:26,210 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:26,237 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:26,238 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:26,268 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984065282}
2025-04-30 11:34:26,268 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 21 次
2025-04-30 11:34:26,268 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984065282}
2025-04-30 11:34:26,269 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 37 次
2025-04-30 11:34:26,397 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:26,420 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984065450}
2025-04-30 11:34:26,420 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 22 次
2025-04-30 11:34:26,799 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:26,803 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:26,821 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984065850}
2025-04-30 11:34:26,823 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 22 次
2025-04-30 11:34:26,823 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984065850}
2025-04-30 11:34:26,826 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 38 次
2025-04-30 11:34:26,826 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:26,829 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:26,830 - sqlalchemy.engine.Engine - INFO - [cached since 28.26s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:26,833 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:26,836 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:26,840 - sqlalchemy.engine.Engine - INFO - [cached since 28.27s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:26,844 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:26,847 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:26,922 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:26,989 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984065994}
2025-04-30 11:34:26,990 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 23 次
2025-04-30 11:34:27,219 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:27,220 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:27,221 - sqlalchemy.engine.Engine - INFO - [cached since 28.65s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:27,222 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:27,342 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:27,343 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:27,357 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984066387}
2025-04-30 11:34:27,357 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 23 次
2025-04-30 11:34:27,359 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984066387}
2025-04-30 11:34:27,360 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 39 次
2025-04-30 11:34:27,511 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:27,638 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984066615}
2025-04-30 11:34:27,639 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 24 次
2025-04-30 11:34:27,866 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:27,868 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:27,869 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:27,869 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:27,870 - sqlalchemy.engine.Engine - INFO - [cached since 29.3s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:27,870 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:27,870 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:27,872 - sqlalchemy.engine.Engine - INFO - [cached since 29.3s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:27,872 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:27,873 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:27,884 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984066912}
2025-04-30 11:34:27,885 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 24 次
2025-04-30 11:34:27,885 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984066912}
2025-04-30 11:34:27,885 - services.sync_service - INFO - 任务块 1917422168753459201 动作未完成(actionStatus为空)，已尝试 40 次，继续等待...
2025-04-30 11:34:28,146 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:28,173 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984067202}
2025-04-30 11:34:28,173 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 25 次
2025-04-30 11:34:28,239 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:28,240 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:28,240 - sqlalchemy.engine.Engine - INFO - [cached since 29.67s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:28,241 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:28,394 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:28,396 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:28,441 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984067465}
2025-04-30 11:34:28,442 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 41 次
2025-04-30 11:34:28,453 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984067482}
2025-04-30 11:34:28,453 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 25 次
2025-04-30 11:34:28,659 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:28,688 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984067719}
2025-04-30 11:34:28,690 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 26 次
2025-04-30 11:34:28,875 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:28,876 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:28,907 - sqlalchemy.engine.Engine - INFO - [cached since 30.34s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:28,908 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:28,926 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:28,938 - sqlalchemy.engine.Engine - INFO - [cached since 30.37s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:28,940 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:28,942 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:28,943 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:28,947 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:28,967 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984067993}
2025-04-30 11:34:28,968 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 42 次
2025-04-30 11:34:28,976 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984068008}
2025-04-30 11:34:28,981 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 26 次
2025-04-30 11:34:29,216 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:29,246 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:29,247 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:29,248 - sqlalchemy.engine.Engine - INFO - [cached since 30.68s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:29,249 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:29,256 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984068287}
2025-04-30 11:34:29,257 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 27 次
2025-04-30 11:34:29,476 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:29,477 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:29,504 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984068533}
2025-04-30 11:34:29,505 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 43 次
2025-04-30 11:34:29,505 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984068533}
2025-04-30 11:34:29,506 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 27 次
2025-04-30 11:34:29,776 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:29,814 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984068846}
2025-04-30 11:34:29,817 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 28 次
2025-04-30 11:34:29,960 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:29,961 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:29,961 - sqlalchemy.engine.Engine - INFO - [cached since 31.39s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:29,962 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:29,962 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:29,964 - sqlalchemy.engine.Engine - INFO - [cached since 31.4s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:29,964 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:29,965 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:30,024 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:30,025 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:30,065 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984069095}
2025-04-30 11:34:30,066 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 28 次
2025-04-30 11:34:30,066 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984069095}
2025-04-30 11:34:30,066 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 44 次
2025-04-30 11:34:30,239 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:30,240 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:30,244 - sqlalchemy.engine.Engine - INFO - [cached since 31.68s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:30,249 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:30,332 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:30,434 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984069466}
2025-04-30 11:34:30,435 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 29 次
2025-04-30 11:34:30,581 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:30,582 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:30,622 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984069653}
2025-04-30 11:34:30,623 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 29 次
2025-04-30 11:34:30,624 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984069653}
2025-04-30 11:34:30,627 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 45 次
2025-04-30 11:34:30,940 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:30,942 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:30,945 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:30,949 - sqlalchemy.engine.Engine - INFO - [cached since 32.38s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:30,953 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:30,956 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:30,957 - sqlalchemy.engine.Engine - INFO - [cached since 32.39s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:30,958 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:30,962 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:30,985 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984070002}
2025-04-30 11:34:30,986 - services.sync_service - INFO - 任务块 1917422211677966337 动作未完成(actionStatus为空)，已尝试 30 次，继续等待...
2025-04-30 11:34:31,097 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:31,113 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984070143}
2025-04-30 11:34:31,113 - services.sync_service - INFO - 任务块 1917422212797845505 动作未完成(actionStatus为空)，已尝试 30 次，继续等待...
2025-04-30 11:34:31,145 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:31,208 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984070225}
2025-04-30 11:34:31,209 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 46 次
2025-04-30 11:34:31,252 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:31,255 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:31,255 - sqlalchemy.engine.Engine - INFO - [cached since 32.69s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:31,256 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:31,516 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:31,541 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984070570}
2025-04-30 11:34:31,541 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 31 次
2025-04-30 11:34:31,624 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:31,664 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984070696}
2025-04-30 11:34:31,665 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 31 次
2025-04-30 11:34:31,718 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:31,746 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984070778}
2025-04-30 11:34:31,747 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 47 次
2025-04-30 11:34:31,983 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:31,983 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:31,984 - sqlalchemy.engine.Engine - INFO - [cached since 33.42s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:31,984 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:31,986 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:31,986 - sqlalchemy.engine.Engine - INFO - [cached since 33.42s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:31,986 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:31,987 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:32,029 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:32,042 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984071073}
2025-04-30 11:34:32,043 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 32 次
2025-04-30 11:34:32,183 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:32,225 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984071254}
2025-04-30 11:34:32,225 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:32,227 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 32 次
2025-04-30 11:34:32,275 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:32,276 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:32,276 - sqlalchemy.engine.Engine - INFO - [cached since 33.71s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:32,277 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:32,280 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984071285}
2025-04-30 11:34:32,281 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 48 次
2025-04-30 11:34:32,539 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:32,581 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984071611}
2025-04-30 11:34:32,582 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 33 次
2025-04-30 11:34:32,727 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:32,780 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984071783}
2025-04-30 11:34:32,781 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:32,781 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 33 次
2025-04-30 11:34:32,797 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984071827}
2025-04-30 11:34:32,797 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 49 次
2025-04-30 11:34:32,991 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:32,992 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:32,993 - sqlalchemy.engine.Engine - INFO - [cached since 34.43s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:32,993 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:32,994 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:32,995 - sqlalchemy.engine.Engine - INFO - [cached since 34.43s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:32,995 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:32,996 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:33,069 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:33,123 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984072141}
2025-04-30 11:34:33,124 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 34 次
2025-04-30 11:34:33,288 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:33,291 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:33,293 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:33,296 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:33,300 - sqlalchemy.engine.Engine - INFO - [cached since 34.73s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:33,304 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:33,368 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984072344}
2025-04-30 11:34:33,369 - services.sync_service - INFO - 任务块 1917422168753459201 动作未完成(actionStatus为空)，已尝试 50 次，继续等待...
2025-04-30 11:34:33,369 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984072344}
2025-04-30 11:34:33,369 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 34 次
2025-04-30 11:34:33,615 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:33,673 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984072702}
2025-04-30 11:34:33,673 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 35 次
2025-04-30 11:34:33,880 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:33,881 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:33,906 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984072936}
2025-04-30 11:34:33,907 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 35 次
2025-04-30 11:34:33,907 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984072937}
2025-04-30 11:34:33,907 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 51 次
2025-04-30 11:34:34,003 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:34,004 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:34,005 - sqlalchemy.engine.Engine - INFO - [cached since 35.44s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:34,007 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:34,010 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:34,012 - sqlalchemy.engine.Engine - INFO - [cached since 35.44s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:34,016 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:34,020 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:34,159 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:34,177 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984073208}
2025-04-30 11:34:34,178 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 36 次
2025-04-30 11:34:34,328 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:34,329 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:34,330 - sqlalchemy.engine.Engine - INFO - [cached since 35.76s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:34,331 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:34,423 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:34,425 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:34,488 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984073489}
2025-04-30 11:34:34,489 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 36 次
2025-04-30 11:34:34,489 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984073489}
2025-04-30 11:34:34,489 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 52 次
2025-04-30 11:34:34,687 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:34,727 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984073757}
2025-04-30 11:34:34,727 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 37 次
2025-04-30 11:34:34,997 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:35,000 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:35,019 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984074047}
2025-04-30 11:34:35,020 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 53 次
2025-04-30 11:34:35,020 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:35,021 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:35,021 - sqlalchemy.engine.Engine - INFO - [cached since 36.45s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:35,022 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:35,022 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:35,023 - sqlalchemy.engine.Engine - INFO - [cached since 36.46s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:35,023 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:35,024 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984074047}
2025-04-30 11:34:35,024 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 37 次
2025-04-30 11:34:35,024 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:35,229 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:35,279 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984074287}
2025-04-30 11:34:35,279 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 38 次
2025-04-30 11:34:35,323 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:35,325 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:35,330 - sqlalchemy.engine.Engine - INFO - [cached since 36.76s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:35,332 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:35,541 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:35,545 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:35,573 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984074588}
2025-04-30 11:34:35,574 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 54 次
2025-04-30 11:34:35,589 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984074615}
2025-04-30 11:34:35,589 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 38 次
2025-04-30 11:34:35,790 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:35,819 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984074848}
2025-04-30 11:34:35,819 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 39 次
2025-04-30 11:34:36,041 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:36,042 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:36,042 - sqlalchemy.engine.Engine - INFO - [cached since 37.47s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:36,042 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:36,043 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:36,043 - sqlalchemy.engine.Engine - INFO - [cached since 37.48s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:36,044 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:36,044 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:36,087 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:36,088 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:36,102 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984075133}
2025-04-30 11:34:36,103 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 55 次
2025-04-30 11:34:36,103 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984075133}
2025-04-30 11:34:36,103 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 39 次
2025-04-30 11:34:36,335 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:36,336 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:36,340 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:36,345 - sqlalchemy.engine.Engine - INFO - [cached since 37.78s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:36,348 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:36,365 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984075395}
2025-04-30 11:34:36,366 - services.sync_service - INFO - 任务块 1917422211677966337 动作未完成(actionStatus为空)，已尝试 40 次，继续等待...
2025-04-30 11:34:36,601 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:36,602 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:36,627 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984075655}
2025-04-30 11:34:36,627 - services.sync_service - INFO - 任务块 1917422212797845505 动作未完成(actionStatus为空)，已尝试 40 次，继续等待...
2025-04-30 11:34:36,627 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984075655}
2025-04-30 11:34:36,628 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 56 次
2025-04-30 11:34:36,880 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:36,959 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984075928}
2025-04-30 11:34:36,960 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 41 次
2025-04-30 11:34:37,051 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:37,054 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:37,056 - sqlalchemy.engine.Engine - INFO - [cached since 38.49s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:37,064 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:37,066 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:37,067 - sqlalchemy.engine.Engine - INFO - [cached since 38.5s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:37,071 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:37,074 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:37,144 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:37,146 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:37,179 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984076207}
2025-04-30 11:34:37,179 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 57 次
2025-04-30 11:34:37,179 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984076207}
2025-04-30 11:34:37,180 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 41 次
2025-04-30 11:34:37,363 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:37,364 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:37,364 - sqlalchemy.engine.Engine - INFO - [cached since 38.8s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:37,365 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:37,472 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:37,687 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:37,688 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:37,780 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984076792}
2025-04-30 11:34:37,780 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 42 次
2025-04-30 11:34:37,794 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984076822}
2025-04-30 11:34:37,795 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 58 次
2025-04-30 11:34:37,795 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984076822}
2025-04-30 11:34:37,797 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 42 次
2025-04-30 11:34:38,088 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:38,091 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:38,091 - sqlalchemy.engine.Engine - INFO - [cached since 39.52s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:38,093 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:38,096 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:38,099 - sqlalchemy.engine.Engine - INFO - [cached since 39.53s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:38,099 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:38,104 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:38,276 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:38,279 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:38,279 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:38,322 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984077348}
2025-04-30 11:34:38,323 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 43 次
2025-04-30 11:34:38,323 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984077348}
2025-04-30 11:34:38,323 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984077348}
2025-04-30 11:34:38,324 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 43 次
2025-04-30 11:34:38,324 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 59 次
2025-04-30 11:34:38,385 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:38,385 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:38,385 - sqlalchemy.engine.Engine - INFO - [cached since 39.82s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:38,387 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:38,837 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:38,842 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:38,845 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:38,878 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984077906}
2025-04-30 11:34:38,880 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 44 次
2025-04-30 11:34:38,880 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984077906}
2025-04-30 11:34:38,881 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984077906}
2025-04-30 11:34:38,884 - services.sync_service - INFO - 任务块 1917422168753459201 动作未完成(actionStatus为空)，已尝试 60 次，继续等待...
2025-04-30 11:34:38,884 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 44 次
2025-04-30 11:34:39,101 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:39,102 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:39,103 - sqlalchemy.engine.Engine - INFO - [cached since 40.54s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:39,103 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:39,104 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:39,104 - sqlalchemy.engine.Engine - INFO - [cached since 40.54s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:39,105 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:39,106 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:39,404 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:39,405 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:39,406 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:39,406 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:39,407 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:39,407 - sqlalchemy.engine.Engine - INFO - [cached since 40.84s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:39,408 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:39,629 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984078659}
2025-04-30 11:34:39,630 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 45 次
2025-04-30 11:34:39,631 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984078659}
2025-04-30 11:34:39,632 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 61 次
2025-04-30 11:34:39,633 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984078659}
2025-04-30 11:34:39,633 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 45 次
2025-04-30 11:34:40,113 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:40,116 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:40,117 - sqlalchemy.engine.Engine - INFO - [cached since 41.55s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:40,119 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:40,121 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:40,122 - sqlalchemy.engine.Engine - INFO - [cached since 41.55s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:40,123 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:40,124 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:40,144 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:40,145 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:40,146 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:40,160 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984079191}
2025-04-30 11:34:40,162 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 46 次
2025-04-30 11:34:40,162 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984079191}
2025-04-30 11:34:40,162 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984079191}
2025-04-30 11:34:40,162 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 46 次
2025-04-30 11:34:40,162 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 62 次
2025-04-30 11:34:40,424 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:40,425 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:40,425 - sqlalchemy.engine.Engine - INFO - [cached since 41.86s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:40,426 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:40,658 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:40,659 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:40,660 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:40,672 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984079704}
2025-04-30 11:34:40,674 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 47 次
2025-04-30 11:34:40,674 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984079704}
2025-04-30 11:34:40,676 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 63 次
2025-04-30 11:34:40,676 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984079704}
2025-04-30 11:34:40,677 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 47 次
2025-04-30 11:34:41,136 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:41,137 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:41,137 - sqlalchemy.engine.Engine - INFO - [cached since 42.57s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:41,138 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:41,138 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:41,138 - sqlalchemy.engine.Engine - INFO - [cached since 42.57s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:41,141 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:41,141 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:41,183 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:41,184 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:41,184 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:41,228 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984080229}
2025-04-30 11:34:41,229 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 48 次
2025-04-30 11:34:41,231 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984080229}
2025-04-30 11:34:41,231 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 64 次
2025-04-30 11:34:41,231 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984080229}
2025-04-30 11:34:41,232 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 48 次
2025-04-30 11:34:41,431 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:41,434 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:41,438 - sqlalchemy.engine.Engine - INFO - [cached since 42.87s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:41,442 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:41,727 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:41,729 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:41,729 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:41,771 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984080799}
2025-04-30 11:34:41,772 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 49 次
2025-04-30 11:34:41,772 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984080799}
2025-04-30 11:34:41,773 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 65 次
2025-04-30 11:34:41,773 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984080800}
2025-04-30 11:34:41,774 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 49 次
2025-04-30 11:34:42,162 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:42,165 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:42,168 - sqlalchemy.engine.Engine - INFO - [cached since 43.6s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:42,171 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:42,174 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:42,176 - sqlalchemy.engine.Engine - INFO - [cached since 43.61s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:42,179 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:42,180 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:42,273 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:42,275 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:42,279 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:42,455 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984081395}
2025-04-30 11:34:42,456 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 66 次
2025-04-30 11:34:42,456 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984081436}
2025-04-30 11:34:42,457 - services.sync_service - INFO - 任务块 1917422212797845505 动作未完成(actionStatus为空)，已尝试 50 次，继续等待...
2025-04-30 11:34:42,457 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:42,457 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:42,458 - sqlalchemy.engine.Engine - INFO - [cached since 43.89s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:42,459 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:42,941 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:42,942 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:42,998 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984082028}
2025-04-30 11:34:42,999 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 51 次
2025-04-30 11:34:43,000 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984082029}
2025-04-30 11:34:43,001 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 67 次
2025-04-30 11:34:43,204 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:43,205 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:43,205 - sqlalchemy.engine.Engine - INFO - [cached since 44.64s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:43,206 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:43,206 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:43,206 - sqlalchemy.engine.Engine - INFO - [cached since 44.64s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:43,207 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:43,208 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:43,323 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984082354}
2025-04-30 11:34:43,323 - services.sync_service - INFO - 任务块 1917422211677966337 动作未完成(actionStatus为空)，已尝试 50 次，继续等待...
2025-04-30 11:34:43,484 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:43,484 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:43,486 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:43,486 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:43,487 - sqlalchemy.engine.Engine - INFO - [cached since 44.92s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:43,488 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:43,542 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984082560}
2025-04-30 11:34:43,542 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 68 次
2025-04-30 11:34:43,542 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984082560}
2025-04-30 11:34:43,543 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 52 次
2025-04-30 11:34:43,846 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:43,876 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984082890}
2025-04-30 11:34:43,876 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 51 次
2025-04-30 11:34:44,031 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:44,033 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:44,047 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984083077}
2025-04-30 11:34:44,047 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 53 次
2025-04-30 11:34:44,050 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984083078}
2025-04-30 11:34:44,053 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 69 次
2025-04-30 11:34:44,233 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:44,234 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:44,235 - sqlalchemy.engine.Engine - INFO - [cached since 45.67s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:44,235 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:44,237 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:44,237 - sqlalchemy.engine.Engine - INFO - [cached since 45.67s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:44,237 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:44,238 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:44,374 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:44,443 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984083474}
2025-04-30 11:34:44,445 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 52 次
2025-04-30 11:34:44,498 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:44,498 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:44,499 - sqlalchemy.engine.Engine - INFO - [cached since 45.93s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:44,499 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:44,544 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:44,574 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:44,598 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984083630}
2025-04-30 11:34:44,599 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 54 次
2025-04-30 11:34:44,604 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984083635}
2025-04-30 11:34:44,604 - services.sync_service - INFO - 任务块 1917422168753459201 动作未完成(actionStatus为空)，已尝试 70 次，继续等待...
2025-04-30 11:34:44,963 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:45,046 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984084019}
2025-04-30 11:34:45,047 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 53 次
2025-04-30 11:34:45,117 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:45,120 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:45,242 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:45,243 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:45,244 - sqlalchemy.engine.Engine - INFO - [cached since 46.68s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:45,244 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:45,244 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:45,245 - sqlalchemy.engine.Engine - INFO - [cached since 46.68s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:45,245 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:45,246 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:45,492 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:45,493 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:45,494 - sqlalchemy.engine.Engine - INFO - [cached since 46.93s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:45,495 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:45,553 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:45,627 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984084432}
2025-04-30 11:34:45,627 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 71 次
2025-04-30 11:34:45,627 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984084432}
2025-04-30 11:34:45,629 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 55 次
2025-04-30 11:34:45,665 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984084671}
2025-04-30 11:34:45,666 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 54 次
2025-04-30 11:34:46,145 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:46,145 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:46,149 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:46,158 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984085190}
2025-04-30 11:34:46,159 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 72 次
2025-04-30 11:34:46,161 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984085190}
2025-04-30 11:34:46,163 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 56 次
2025-04-30 11:34:46,163 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984085192}
2025-04-30 11:34:46,164 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 55 次
2025-04-30 11:34:46,251 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:46,252 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:46,253 - sqlalchemy.engine.Engine - INFO - [cached since 47.69s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:46,253 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:46,254 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:46,254 - sqlalchemy.engine.Engine - INFO - [cached since 47.69s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:46,255 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:46,255 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:46,496 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:46,496 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:46,498 - sqlalchemy.engine.Engine - INFO - [cached since 47.93s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:46,499 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:46,671 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:46,672 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:46,672 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:46,714 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984085719}
2025-04-30 11:34:46,715 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 73 次
2025-04-30 11:34:46,715 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984085719}
2025-04-30 11:34:46,715 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 57 次
2025-04-30 11:34:46,716 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984085719}
2025-04-30 11:34:46,716 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 56 次
2025-04-30 11:34:47,219 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:47,219 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:47,220 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:47,248 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984086263}
2025-04-30 11:34:47,249 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 74 次
2025-04-30 11:34:47,260 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984086269}
2025-04-30 11:34:47,261 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 58 次
2025-04-30 11:34:47,261 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:47,262 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:47,263 - sqlalchemy.engine.Engine - INFO - [cached since 48.7s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:47,263 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:47,263 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:47,263 - sqlalchemy.engine.Engine - INFO - [cached since 48.7s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:47,264 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:47,264 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:47,268 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984086300}
2025-04-30 11:34:47,271 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 57 次
2025-04-30 11:34:47,497 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:47,498 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:47,498 - sqlalchemy.engine.Engine - INFO - [cached since 48.93s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:47,499 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:47,746 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:47,771 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:47,772 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:47,783 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984086813}
2025-04-30 11:34:47,784 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 75 次
2025-04-30 11:34:47,788 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984086820}
2025-04-30 11:34:47,789 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 58 次
2025-04-30 11:34:47,790 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984086820}
2025-04-30 11:34:47,791 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 59 次
2025-04-30 11:34:48,294 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:48,296 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:48,297 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:48,298 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:48,299 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:48,300 - sqlalchemy.engine.Engine - INFO - [cached since 49.73s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:48,301 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:48,302 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:48,302 - sqlalchemy.engine.Engine - INFO - [cached since 49.73s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:48,303 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:48,304 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:48,326 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984087350}
2025-04-30 11:34:48,327 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 76 次
2025-04-30 11:34:48,327 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984087350}
2025-04-30 11:34:48,327 - services.sync_service - INFO - 任务块 1917422212797845505 动作未完成(actionStatus为空)，已尝试 60 次，继续等待...
2025-04-30 11:34:48,328 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984087350}
2025-04-30 11:34:48,328 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 59 次
2025-04-30 11:34:48,496 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:48,497 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:48,497 - sqlalchemy.engine.Engine - INFO - [cached since 49.93s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:48,498 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:48,836 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:48,837 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:48,838 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:48,868 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984087893}
2025-04-30 11:34:48,869 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984087893}
2025-04-30 11:34:48,870 - services.sync_service - INFO - 任务块 1917422211677966337 动作未完成(actionStatus为空)，已尝试 60 次，继续等待...
2025-04-30 11:34:48,870 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 77 次
2025-04-30 11:34:48,889 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984087911}
2025-04-30 11:34:48,890 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 61 次
2025-04-30 11:34:49,305 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:49,307 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:49,307 - sqlalchemy.engine.Engine - INFO - [cached since 50.74s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:49,308 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:49,311 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:49,316 - sqlalchemy.engine.Engine - INFO - [cached since 50.75s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:49,321 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:49,323 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:49,351 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:49,352 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:49,383 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:49,459 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984088479}
2025-04-30 11:34:49,461 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984088427}
2025-04-30 11:34:49,462 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 61 次
2025-04-30 11:34:49,462 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 78 次
2025-04-30 11:34:49,477 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984088507}
2025-04-30 11:34:49,477 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 62 次
2025-04-30 11:34:49,521 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:49,523 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:49,523 - sqlalchemy.engine.Engine - INFO - [cached since 50.96s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:49,524 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:49,974 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:49,977 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:49,979 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:49,991 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984089022}
2025-04-30 11:34:49,991 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 79 次
2025-04-30 11:34:49,993 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984089022}
2025-04-30 11:34:49,993 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 62 次
2025-04-30 11:34:49,995 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984089027}
2025-04-30 11:34:49,995 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 63 次
2025-04-30 11:34:50,316 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:50,317 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:50,317 - sqlalchemy.engine.Engine - INFO - [cached since 51.75s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:50,317 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:50,318 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:50,318 - sqlalchemy.engine.Engine - INFO - [cached since 51.75s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:50,319 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:50,319 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:50,488 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:50,489 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:50,490 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:50,504 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984089535}
2025-04-30 11:34:50,505 - services.sync_service - INFO - 任务块 1917422168753459201 动作未完成(actionStatus为空)，已尝试 80 次，继续等待...
2025-04-30 11:34:50,505 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984089535}
2025-04-30 11:34:50,505 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 64 次
2025-04-30 11:34:50,508 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984089535}
2025-04-30 11:34:50,508 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 63 次
2025-04-30 11:34:50,535 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:50,536 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:50,536 - sqlalchemy.engine.Engine - INFO - [cached since 51.97s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:50,537 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:51,017 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:51,018 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:51,019 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:51,059 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984090090}
2025-04-30 11:34:51,061 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 81 次
2025-04-30 11:34:51,061 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984090090}
2025-04-30 11:34:51,062 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 65 次
2025-04-30 11:34:51,063 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984090090}
2025-04-30 11:34:51,064 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 64 次
2025-04-30 11:34:51,344 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:51,345 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:51,345 - sqlalchemy.engine.Engine - INFO - [cached since 52.78s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:51,345 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:51,346 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:51,346 - sqlalchemy.engine.Engine - INFO - [cached since 52.78s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:51,346 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:51,346 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:51,517 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:51,518 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:51,524 - sqlalchemy.engine.Engine - INFO - [cached since 52.96s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:51,526 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:51,564 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:51,567 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:51,570 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:51,582 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984090613}
2025-04-30 11:34:51,583 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 82 次
2025-04-30 11:34:51,584 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984090615}
2025-04-30 11:34:51,585 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 66 次
2025-04-30 11:34:51,585 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984090615}
2025-04-30 11:34:51,586 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 65 次
2025-04-30 11:34:52,074 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:52,077 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:52,078 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:52,094 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984091126}
2025-04-30 11:34:52,095 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 67 次
2025-04-30 11:34:52,096 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984091126}
2025-04-30 11:34:52,096 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 66 次
2025-04-30 11:34:52,098 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984091126}
2025-04-30 11:34:52,098 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 83 次
2025-04-30 11:34:52,369 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:52,370 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:52,370 - sqlalchemy.engine.Engine - INFO - [cached since 53.8s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:52,370 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:52,371 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:52,371 - sqlalchemy.engine.Engine - INFO - [cached since 53.8s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:52,371 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:52,372 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:52,541 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:52,544 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:52,544 - sqlalchemy.engine.Engine - INFO - [cached since 53.98s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:52,546 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:52,619 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:52,621 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:52,625 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:52,651 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984091667}
2025-04-30 11:34:52,652 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984091667}
2025-04-30 11:34:52,656 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 84 次
2025-04-30 11:34:52,657 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 68 次
2025-04-30 11:34:52,677 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984091697}
2025-04-30 11:34:52,678 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 67 次
2025-04-30 11:34:53,159 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:53,161 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:53,191 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984092207}
2025-04-30 11:34:53,191 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:53,193 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 85 次
2025-04-30 11:34:53,212 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984092242}
2025-04-30 11:34:53,213 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 69 次
2025-04-30 11:34:53,215 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984092245}
2025-04-30 11:34:53,215 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 68 次
2025-04-30 11:34:53,375 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:53,376 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:53,378 - sqlalchemy.engine.Engine - INFO - [cached since 54.81s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:53,382 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:53,386 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:53,388 - sqlalchemy.engine.Engine - INFO - [cached since 54.82s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:53,392 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:53,393 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:53,534 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:53,535 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:53,535 - sqlalchemy.engine.Engine - INFO - [cached since 54.97s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:53,536 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:53,694 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:53,695 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:53,695 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:53,732 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984092764}
2025-04-30 11:34:53,734 - services.sync_service - INFO - 任务块 1917422212797845505 动作未完成(actionStatus为空)，已尝试 70 次，继续等待...
2025-04-30 11:34:53,736 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984092764}
2025-04-30 11:34:53,737 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984092764}
2025-04-30 11:34:53,738 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 69 次
2025-04-30 11:34:53,738 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 86 次
2025-04-30 11:34:53,804 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 11:34:53,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 11:34:53,810 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 11:34:53,811 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 11:34:53,812 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 11:34:53,814 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 11:34:53,817 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 11:34:53,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 11:34:53,818 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 11:34:53,819 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 11:34:53,820 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 11:34:53,825 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:53,827 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 11:34:53,829 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 34, 53, 811822))
2025-04-30 11:34:53,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 11:34:53,834 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:54,234 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:54,236 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:54,237 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:54,353 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984093306}
2025-04-30 11:34:54,354 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 71 次
2025-04-30 11:34:54,354 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984093307}
2025-04-30 11:34:54,354 - services.sync_service - INFO - 任务块 1917422211677966337 动作未完成(actionStatus为空)，已尝试 70 次，继续等待...
2025-04-30 11:34:54,402 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984093307}
2025-04-30 11:34:54,403 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 87 次
2025-04-30 11:34:54,403 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:54,403 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:54,404 - sqlalchemy.engine.Engine - INFO - [cached since 55.84s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:54,404 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:54,406 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:54,406 - sqlalchemy.engine.Engine - INFO - [cached since 55.84s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:54,406 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:54,406 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:54,543 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:54,545 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:54,549 - sqlalchemy.engine.Engine - INFO - [cached since 55.98s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:54,552 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:54,854 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:54,858 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:54,871 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984093902}
2025-04-30 11:34:54,873 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 72 次
2025-04-30 11:34:54,875 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984093902}
2025-04-30 11:34:54,876 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 71 次
2025-04-30 11:34:54,918 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:54,973 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984094004}
2025-04-30 11:34:54,973 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 88 次
2025-04-30 11:34:55,371 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:55,372 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:55,395 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984094424}
2025-04-30 11:34:55,396 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 73 次
2025-04-30 11:34:55,396 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984094424}
2025-04-30 11:34:55,397 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 72 次
2025-04-30 11:34:55,397 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:55,397 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:55,398 - sqlalchemy.engine.Engine - INFO - [cached since 56.83s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:55,398 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:55,398 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:55,398 - sqlalchemy.engine.Engine - INFO - [cached since 56.83s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:55,400 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:55,400 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:55,481 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:55,506 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984094533}
2025-04-30 11:34:55,507 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 89 次
2025-04-30 11:34:55,558 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:55,558 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:55,559 - sqlalchemy.engine.Engine - INFO - [cached since 56.99s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:55,560 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:55,914 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:55,918 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:55,971 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984095001}
2025-04-30 11:34:55,972 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 73 次
2025-04-30 11:34:55,972 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984095001}
2025-04-30 11:34:55,974 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 74 次
2025-04-30 11:34:56,008 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:56,035 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984095064}
2025-04-30 11:34:56,036 - services.sync_service - INFO - 任务块 1917422168753459201 动作未完成(actionStatus为空)，已尝试 90 次，继续等待...
2025-04-30 11:34:56,408 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:56,409 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:56,409 - sqlalchemy.engine.Engine - INFO - [cached since 57.84s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:56,410 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:56,410 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:56,410 - sqlalchemy.engine.Engine - INFO - [cached since 57.84s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:56,411 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:56,411 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:56,501 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:56,502 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:56,516 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984095547}
2025-04-30 11:34:56,517 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 75 次
2025-04-30 11:34:56,517 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:56,519 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984095547}
2025-04-30 11:34:56,521 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 74 次
2025-04-30 11:34:56,580 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:56,580 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:56,583 - sqlalchemy.engine.Engine - INFO - [cached since 58.02s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:56,585 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:56,590 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984095588}
2025-04-30 11:34:56,590 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 91 次
2025-04-30 11:34:57,033 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:57,038 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:57,066 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984096081}
2025-04-30 11:34:57,067 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:57,070 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 75 次
2025-04-30 11:34:57,112 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984096123}
2025-04-30 11:34:57,113 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 76 次
2025-04-30 11:34:57,126 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984096155}
2025-04-30 11:34:57,127 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 92 次
2025-04-30 11:34:57,436 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:57,440 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:57,441 - sqlalchemy.engine.Engine - INFO - [cached since 58.87s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:57,445 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:57,448 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:57,451 - sqlalchemy.engine.Engine - INFO - [cached since 58.88s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:57,453 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:57,454 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:57,593 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:57,594 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:57,594 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:57,594 - sqlalchemy.engine.Engine - INFO - [cached since 59.03s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:57,595 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:57,595 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:57,611 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984096642}
2025-04-30 11:34:57,614 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 77 次
2025-04-30 11:34:57,614 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984096642}
2025-04-30 11:34:57,617 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 76 次
2025-04-30 11:34:57,641 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:57,679 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984096710}
2025-04-30 11:34:57,679 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 93 次
2025-04-30 11:34:58,119 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:58,121 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:58,148 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984097174}
2025-04-30 11:34:58,150 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 78 次
2025-04-30 11:34:58,150 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984097174}
2025-04-30 11:34:58,151 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 77 次
2025-04-30 11:34:58,198 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:58,224 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984097252}
2025-04-30 11:34:58,225 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 94 次
2025-04-30 11:34:58,461 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:58,462 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:58,463 - sqlalchemy.engine.Engine - INFO - [cached since 59.9s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:58,463 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:58,463 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:58,464 - sqlalchemy.engine.Engine - INFO - [cached since 59.9s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:58,464 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:58,465 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:58,618 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:58,618 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:58,620 - sqlalchemy.engine.Engine - INFO - [cached since 60.05s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:58,620 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:58,650 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:58,650 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:58,695 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984097721}
2025-04-30 11:34:58,695 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 78 次
2025-04-30 11:34:58,696 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984097721}
2025-04-30 11:34:58,697 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 79 次
2025-04-30 11:34:58,744 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:58,761 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984097790}
2025-04-30 11:34:58,761 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 95 次
2025-04-30 11:34:59,212 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:59,215 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:59,255 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:59,255 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984098284}
2025-04-30 11:34:59,257 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 79 次
2025-04-30 11:34:59,285 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984098303}
2025-04-30 11:34:59,287 - services.sync_service - INFO - 任务块 1917422212797845505 动作未完成(actionStatus为空)，已尝试 80 次，继续等待...
2025-04-30 11:34:59,299 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984098328}
2025-04-30 11:34:59,300 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 96 次
2025-04-30 11:34:59,472 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:59,472 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:59,472 - sqlalchemy.engine.Engine - INFO - [cached since 60.9s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:34:59,473 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:59,473 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:59,473 - sqlalchemy.engine.Engine - INFO - [cached since 60.91s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:34:59,473 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:59,473 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:59,610 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:34:59,611 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:34:59,611 - sqlalchemy.engine.Engine - INFO - [cached since 61.04s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:34:59,611 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:34:59,764 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:34:59,780 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:34:59,791 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984098822}
2025-04-30 11:34:59,791 - services.sync_service - INFO - 任务块 1917422211677966337 动作未完成(actionStatus为空)，已尝试 80 次，继续等待...
2025-04-30 11:34:59,800 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984098826}
2025-04-30 11:34:59,801 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:34:59,801 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 81 次
2025-04-30 11:34:59,853 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984098867}
2025-04-30 11:34:59,854 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 97 次
2025-04-30 11:35:00,309 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:00,311 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:00,373 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:35:00,432 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984099378}
2025-04-30 11:35:00,433 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 81 次
2025-04-30 11:35:00,481 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:00,482 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:00,482 - sqlalchemy.engine.Engine - INFO - [cached since 61.91s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:00,483 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:00,483 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:00,484 - sqlalchemy.engine.Engine - INFO - [cached since 61.92s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:00,484 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:00,485 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:00,485 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984099487}
2025-04-30 11:35:00,485 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 82 次
2025-04-30 11:35:00,495 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984099524}
2025-04-30 11:35:00,496 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 98 次
2025-04-30 11:35:00,635 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:00,635 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:00,636 - sqlalchemy.engine.Engine - INFO - [cached since 62.07s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:00,637 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:00,949 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:00,972 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984099994}
2025-04-30 11:35:00,972 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:00,973 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:35:00,973 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 82 次
2025-04-30 11:35:00,990 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984100019}
2025-04-30 11:35:00,990 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 99 次
2025-04-30 11:35:00,990 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984100019}
2025-04-30 11:35:00,991 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 83 次
2025-04-30 11:35:01,493 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:01,495 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:01,497 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:35:01,497 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:01,501 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:01,501 - sqlalchemy.engine.Engine - INFO - [cached since 62.93s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:01,502 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:01,507 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:01,507 - sqlalchemy.engine.Engine - INFO - [cached since 62.94s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:01,509 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:01,510 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:01,544 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984100549}
2025-04-30 11:35:01,544 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 83 次
2025-04-30 11:35:01,545 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984100550}
2025-04-30 11:35:01,545 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984100551}
2025-04-30 11:35:01,545 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 84 次
2025-04-30 11:35:01,545 - services.sync_service - INFO - 任务块 1917422168753459201 动作未完成(actionStatus为空)，已尝试 100 次，继续等待...
2025-04-30 11:35:01,634 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:01,634 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:01,636 - sqlalchemy.engine.Engine - INFO - [cached since 63.07s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:01,636 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:02,036 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:02,038 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:02,039 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:35:02,060 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984101089}
2025-04-30 11:35:02,061 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 101 次
2025-04-30 11:35:02,061 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984101089}
2025-04-30 11:35:02,061 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 85 次
2025-04-30 11:35:02,064 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984101089}
2025-04-30 11:35:02,064 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 84 次
2025-04-30 11:35:02,503 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:02,504 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:02,504 - sqlalchemy.engine.Engine - INFO - [cached since 63.94s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:02,505 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:02,505 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:02,505 - sqlalchemy.engine.Engine - INFO - [cached since 63.94s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:02,506 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:02,507 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:02,563 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:35:02,566 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:02,567 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:02,610 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984101613}
2025-04-30 11:35:02,612 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 102 次
2025-04-30 11:35:02,612 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984101613}
2025-04-30 11:35:02,614 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 85 次
2025-04-30 11:35:02,615 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984101613}
2025-04-30 11:35:02,616 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 86 次
2025-04-30 11:35:02,641 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:02,643 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:02,644 - sqlalchemy.engine.Engine - INFO - [cached since 64.08s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:02,645 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:03,110 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:03,111 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:35:03,111 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:03,169 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984102190}
2025-04-30 11:35:03,169 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 86 次
2025-04-30 11:35:03,170 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984102190}
2025-04-30 11:35:03,170 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984102190}
2025-04-30 11:35:03,170 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 103 次
2025-04-30 11:35:03,170 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 87 次
2025-04-30 11:35:03,515 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:03,516 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:03,517 - sqlalchemy.engine.Engine - INFO - [cached since 64.95s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:03,519 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:03,520 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:03,521 - sqlalchemy.engine.Engine - INFO - [cached since 64.95s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:03,523 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:03,523 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:03,657 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:03,658 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:35:03,659 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:03,660 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:03,660 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:03,662 - sqlalchemy.engine.Engine - INFO - [cached since 65.09s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:03,664 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:03,679 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984102709}
2025-04-30 11:35:03,679 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 88 次
2025-04-30 11:35:03,680 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984102709}
2025-04-30 11:35:03,681 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 104 次
2025-04-30 11:35:03,681 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984102709}
2025-04-30 11:35:03,681 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 87 次
2025-04-30 11:35:04,187 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:35:04,189 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:04,189 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:04,217 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984103248}
2025-04-30 11:35:04,219 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 89 次
2025-04-30 11:35:04,222 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984103248}
2025-04-30 11:35:04,222 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 88 次
2025-04-30 11:35:04,223 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984103248}
2025-04-30 11:35:04,224 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 105 次
2025-04-30 11:35:04,544 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:04,545 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:04,545 - sqlalchemy.engine.Engine - INFO - [cached since 65.98s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:04,546 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:04,546 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:04,546 - sqlalchemy.engine.Engine - INFO - [cached since 65.98s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:04,547 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:04,547 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:04,673 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:04,679 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:04,685 - sqlalchemy.engine.Engine - INFO - [cached since 66.12s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:04,690 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:04,693 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:04,740 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984103759}
2025-04-30 11:35:04,741 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:35:04,742 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:04,743 - services.sync_service - INFO - 任务块 1917422212797845505 动作未完成(actionStatus为空)，已尝试 90 次，继续等待...
2025-04-30 11:35:04,770 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984103802}
2025-04-30 11:35:04,771 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 106 次
2025-04-30 11:35:04,772 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984103803}
2025-04-30 11:35:04,773 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 89 次
2025-04-30 11:35:05,241 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:05,288 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:05,289 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:35:05,537 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:05,537 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:05,539 - sqlalchemy.engine.Engine - INFO - [cached since 66.97s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:05,539 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:05,540 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:05,541 - sqlalchemy.engine.Engine - INFO - [cached since 66.97s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:05,542 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:05,542 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:05,667 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984104696}
2025-04-30 11:35:05,667 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 91 次
2025-04-30 11:35:05,668 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984104696}
2025-04-30 11:35:05,668 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984104696}
2025-04-30 11:35:05,670 - services.sync_service - INFO - 任务块 1917422211677966337 动作未完成(actionStatus为空)，已尝试 90 次，继续等待...
2025-04-30 11:35:05,670 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 107 次
2025-04-30 11:35:05,710 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:05,711 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:05,711 - sqlalchemy.engine.Engine - INFO - [cached since 67.14s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:05,713 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:06,146 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:35:06,149 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:06,151 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:06,179 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984105195}
2025-04-30 11:35:06,181 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984105195}
2025-04-30 11:35:06,182 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 91 次
2025-04-30 11:35:06,183 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 108 次
2025-04-30 11:35:06,215 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984105245}
2025-04-30 11:35:06,216 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 92 次
2025-04-30 11:35:06,538 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:06,539 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:06,541 - sqlalchemy.engine.Engine - INFO - [cached since 67.97s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:06,541 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:06,542 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:06,542 - sqlalchemy.engine.Engine - INFO - [cached since 67.97s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:06,542 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:06,543 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:06,694 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:06,695 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:35:06,696 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:06,697 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:06,698 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:06,698 - sqlalchemy.engine.Engine - INFO - [cached since 68.13s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:06,699 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:06,716 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984105748}
2025-04-30 11:35:06,717 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 92 次
2025-04-30 11:35:06,719 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984105749}
2025-04-30 11:35:06,719 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 93 次
2025-04-30 11:35:06,719 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984105749}
2025-04-30 11:35:06,719 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 109 次
2025-04-30 11:35:07,220 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:07,223 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:07,226 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:35:07,545 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:07,546 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:07,546 - sqlalchemy.engine.Engine - INFO - [cached since 68.98s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:07,546 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:07,546 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:07,547 - sqlalchemy.engine.Engine - INFO - [cached since 68.98s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:07,547 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:07,547 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:07,616 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984106315}
2025-04-30 11:35:07,619 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 94 次
2025-04-30 11:35:07,714 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984106315}
2025-04-30 11:35:07,717 - services.sync_service - INFO - 任务块 1917422168753459201 动作未完成(actionStatus为空)，已尝试 110 次，继续等待...
2025-04-30 11:35:07,718 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984106315}
2025-04-30 11:35:07,718 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 93 次
2025-04-30 11:35:07,718 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:07,719 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:07,719 - sqlalchemy.engine.Engine - INFO - [cached since 69.15s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:07,720 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:08,121 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:08,165 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984107195}
2025-04-30 11:35:08,166 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 95 次
2025-04-30 11:35:08,197 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:35:08,199 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:08,272 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984107269}
2025-04-30 11:35:08,272 - services.sync_service - DEBUG - 任务块 1917422168753459201 动作未完成，已尝试 111 次
2025-04-30 11:35:08,272 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984107269}
2025-04-30 11:35:08,272 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 94 次
2025-04-30 11:35:08,556 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:08,556 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:08,557 - sqlalchemy.engine.Engine - INFO - [cached since 69.99s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:08,557 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:08,557 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:08,558 - sqlalchemy.engine.Engine - INFO - [cached since 69.99s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:08,558 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:08,559 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:08,662 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:08,683 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984107708}
2025-04-30 11:35:08,684 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 96 次
2025-04-30 11:35:08,741 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:08,745 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:08,748 - sqlalchemy.engine.Engine - INFO - [cached since 70.18s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:08,750 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:08,785 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422168753459201
2025-04-30 11:35:08,787 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:08,817 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422168753459201 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422168753459201', 'tenantId': 1000, 'taskId': '1917422139208781826', 'taskBlockId': '1917422140211220481', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:04'}, 'timestamp': 1745984107829}
2025-04-30 11:35:08,819 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 11:35:08,820 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 11:35:08,821 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 11:35:08,822 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 11:35:08,822 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 11:35:08,823 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 11:35:08,832 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984107861}
2025-04-30 11:35:08,832 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 95 次
2025-04-30 11:35:09,202 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:09,227 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984108256}
2025-04-30 11:35:09,227 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 97 次
2025-04-30 11:35:09,358 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:09,505 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984108487}
2025-04-30 11:35:09,505 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 96 次
2025-04-30 11:35:09,574 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:09,575 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:09,575 - sqlalchemy.engine.Engine - INFO - [cached since 71.01s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:09,575 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:09,576 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:09,576 - sqlalchemy.engine.Engine - INFO - [cached since 71.01s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:09,578 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:09,583 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:09,745 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:09,776 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:09,781 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:09,785 - sqlalchemy.engine.Engine - INFO - [cached since 71.22s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:09,789 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:09,791 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984108819}
2025-04-30 11:35:09,794 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 98 次
2025-04-30 11:35:10,022 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:10,105 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984109093}
2025-04-30 11:35:10,105 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 97 次
2025-04-30 11:35:10,271 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:10,333 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984109356}
2025-04-30 11:35:10,335 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 99 次
2025-04-30 11:35:10,597 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:10,597 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:10,602 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:10,605 - sqlalchemy.engine.Engine - INFO - [cached since 72.04s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:10,609 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:10,612 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:10,613 - sqlalchemy.engine.Engine - INFO - [cached since 72.05s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:10,614 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:10,614 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:10,630 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984109659}
2025-04-30 11:35:10,631 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 98 次
2025-04-30 11:35:10,783 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:10,784 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:10,784 - sqlalchemy.engine.Engine - INFO - [cached since 72.22s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:10,785 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:10,815 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:10,833 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984109862}
2025-04-30 11:35:10,833 - services.sync_service - INFO - 任务块 1917422212797845505 动作未完成(actionStatus为空)，已尝试 100 次，继续等待...
2025-04-30 11:35:11,138 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:11,180 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984110209}
2025-04-30 11:35:11,180 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 99 次
2025-04-30 11:35:11,353 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:11,378 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984110403}
2025-04-30 11:35:11,378 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 101 次
2025-04-30 11:35:11,618 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:11,619 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:11,619 - sqlalchemy.engine.Engine - INFO - [cached since 73.05s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:11,620 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:11,620 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:11,621 - sqlalchemy.engine.Engine - INFO - [cached since 73.05s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:11,621 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:11,622 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:11,697 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:11,733 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984110741}
2025-04-30 11:35:11,734 - services.sync_service - INFO - 任务块 1917422211677966337 动作未完成(actionStatus为空)，已尝试 100 次，继续等待...
2025-04-30 11:35:11,774 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:11,775 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:11,775 - sqlalchemy.engine.Engine - INFO - [cached since 73.21s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:11,776 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:11,882 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:11,897 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984110928}
2025-04-30 11:35:11,898 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 102 次
2025-04-30 11:35:12,237 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:12,254 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984111286}
2025-04-30 11:35:12,255 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 101 次
2025-04-30 11:35:12,409 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:12,461 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984111465}
2025-04-30 11:35:12,462 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 103 次
2025-04-30 11:35:12,611 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:12,612 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:12,612 - sqlalchemy.engine.Engine - INFO - [cached since 74.04s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:12,612 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:12,612 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:12,613 - sqlalchemy.engine.Engine - INFO - [cached since 74.05s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:12,613 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:12,613 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:12,752 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:12,784 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:12,788 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:12,790 - sqlalchemy.engine.Engine - INFO - [cached since 74.22s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:12,794 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:12,971 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:13,601 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:13,601 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:13,602 - sqlalchemy.engine.Engine - INFO - [cached since 75.03s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:13,602 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:13,602 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:13,602 - sqlalchemy.engine.Engine - INFO - [cached since 75.04s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:13,603 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:13,604 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:13,631 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984112651}
2025-04-30 11:35:13,632 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 104 次
2025-04-30 11:35:13,632 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984112651}
2025-04-30 11:35:13,633 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 102 次
2025-04-30 11:35:13,813 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:13,815 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:13,817 - sqlalchemy.engine.Engine - INFO - [cached since 75.25s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:13,821 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:14,140 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:14,141 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:14,153 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984113183}
2025-04-30 11:35:14,154 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 105 次
2025-04-30 11:35:14,154 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984113185}
2025-04-30 11:35:14,154 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 103 次
2025-04-30 11:35:14,621 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:14,622 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:14,622 - sqlalchemy.engine.Engine - INFO - [cached since 76.05s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:14,622 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:14,622 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:14,623 - sqlalchemy.engine.Engine - INFO - [cached since 76.06s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:14,623 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:14,623 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:14,652 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:14,652 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:14,699 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984113710}
2025-04-30 11:35:14,700 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 106 次
2025-04-30 11:35:14,700 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984113710}
2025-04-30 11:35:14,700 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 104 次
2025-04-30 11:35:14,837 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:14,838 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:14,838 - sqlalchemy.engine.Engine - INFO - [cached since 76.27s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:14,839 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:15,193 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:15,194 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:15,236 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984114264}
2025-04-30 11:35:15,236 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 107 次
2025-04-30 11:35:15,237 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984114264}
2025-04-30 11:35:15,237 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 105 次
2025-04-30 11:35:15,617 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:15,619 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:15,623 - sqlalchemy.engine.Engine - INFO - [cached since 77.06s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:15,626 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:15,631 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:15,632 - sqlalchemy.engine.Engine - INFO - [cached since 77.06s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:15,634 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:15,638 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:15,725 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:15,726 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:15,777 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984114808}
2025-04-30 11:35:15,777 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 106 次
2025-04-30 11:35:15,781 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984114808}
2025-04-30 11:35:15,782 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 108 次
2025-04-30 11:35:15,849 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:15,851 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:15,851 - sqlalchemy.engine.Engine - INFO - [cached since 77.28s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:15,851 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:16,282 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:16,284 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:16,382 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984115354}
2025-04-30 11:35:16,384 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 109 次
2025-04-30 11:35:16,387 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984115354}
2025-04-30 11:35:16,388 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 107 次
2025-04-30 11:35:16,656 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:16,658 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:16,658 - sqlalchemy.engine.Engine - INFO - [cached since 78.09s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:16,659 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:16,659 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:16,660 - sqlalchemy.engine.Engine - INFO - [cached since 78.09s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:16,660 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:16,661 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:16,861 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:16,862 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:16,863 - sqlalchemy.engine.Engine - INFO - [cached since 78.29s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:16,863 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:16,892 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:16,895 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:16,908 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984115937}
2025-04-30 11:35:16,908 - services.sync_service - INFO - 任务块 1917422212797845505 动作未完成(actionStatus为空)，已尝试 110 次，继续等待...
2025-04-30 11:35:16,914 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984115940}
2025-04-30 11:35:16,915 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 108 次
2025-04-30 11:35:17,437 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:17,437 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:17,475 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984116504}
2025-04-30 11:35:17,475 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 111 次
2025-04-30 11:35:17,478 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984116504}
2025-04-30 11:35:17,478 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 109 次
2025-04-30 11:35:17,655 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:17,656 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:17,657 - sqlalchemy.engine.Engine - INFO - [cached since 79.09s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:17,659 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:17,660 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:17,661 - sqlalchemy.engine.Engine - INFO - [cached since 79.09s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:17,661 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:17,662 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:17,871 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:17,873 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:17,875 - sqlalchemy.engine.Engine - INFO - [cached since 79.31s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:17,879 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:17,980 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:17,981 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:17,995 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984117026}
2025-04-30 11:35:17,998 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 112 次
2025-04-30 11:35:17,998 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984117026}
2025-04-30 11:35:17,998 - services.sync_service - INFO - 任务块 1917422211677966337 动作未完成(actionStatus为空)，已尝试 110 次，继续等待...
2025-04-30 11:35:18,505 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:18,506 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:18,524 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984117554}
2025-04-30 11:35:18,524 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 111 次
2025-04-30 11:35:18,524 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984117554}
2025-04-30 11:35:18,525 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 113 次
2025-04-30 11:35:18,677 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:18,678 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:18,678 - sqlalchemy.engine.Engine - INFO - [cached since 80.11s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:18,678 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:18,678 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:18,678 - sqlalchemy.engine.Engine - INFO - [cached since 80.11s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:18,679 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:18,681 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:18,878 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:18,878 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:18,880 - sqlalchemy.engine.Engine - INFO - [cached since 80.31s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:18,881 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:19,033 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:19,034 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:19,065 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984118078}
2025-04-30 11:35:19,066 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 114 次
2025-04-30 11:35:19,100 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984118117}
2025-04-30 11:35:19,100 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 112 次
2025-04-30 11:35:19,577 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:19,615 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984118633}
2025-04-30 11:35:19,615 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:19,616 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 115 次
2025-04-30 11:35:19,633 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984118664}
2025-04-30 11:35:19,634 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 113 次
2025-04-30 11:35:19,685 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:19,686 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:19,690 - sqlalchemy.engine.Engine - INFO - [cached since 81.12s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:19,694 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:19,698 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:19,701 - sqlalchemy.engine.Engine - INFO - [cached since 81.13s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:19,702 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:19,702 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:19,901 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:19,902 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:19,903 - sqlalchemy.engine.Engine - INFO - [cached since 81.34s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:19,904 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:20,118 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:20,131 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:20,143 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984119173}
2025-04-30 11:35:20,144 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 116 次
2025-04-30 11:35:20,146 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984119176}
2025-04-30 11:35:20,146 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 114 次
2025-04-30 11:35:20,661 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:20,662 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:20,685 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984119716}
2025-04-30 11:35:20,685 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 117 次
2025-04-30 11:35:20,686 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984119716}
2025-04-30 11:35:20,687 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 115 次
2025-04-30 11:35:20,708 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:20,709 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:20,709 - sqlalchemy.engine.Engine - INFO - [cached since 82.14s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:20,709 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:20,710 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:20,711 - sqlalchemy.engine.Engine - INFO - [cached since 82.14s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:20,712 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:20,713 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:20,910 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:20,914 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:20,914 - sqlalchemy.engine.Engine - INFO - [cached since 82.35s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:20,915 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:21,202 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:21,204 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:21,274 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984120301}
2025-04-30 11:35:21,274 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 116 次
2025-04-30 11:35:21,274 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984120301}
2025-04-30 11:35:21,275 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 118 次
2025-04-30 11:35:21,731 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:21,731 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:21,731 - sqlalchemy.engine.Engine - INFO - [cached since 83.16s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:21,733 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:21,733 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:21,733 - sqlalchemy.engine.Engine - INFO - [cached since 83.17s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:21,734 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:21,734 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:21,792 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:21,793 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:21,806 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984120837}
2025-04-30 11:35:21,806 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 117 次
2025-04-30 11:35:21,816 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984120842}
2025-04-30 11:35:21,816 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 119 次
2025-04-30 11:35:21,917 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:21,918 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:21,918 - sqlalchemy.engine.Engine - INFO - [cached since 83.35s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:21,919 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:22,318 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:22,319 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:22,350 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984121363}
2025-04-30 11:35:22,351 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 118 次
2025-04-30 11:35:22,416 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984121391}
2025-04-30 11:35:22,416 - services.sync_service - INFO - 任务块 1917422212797845505 动作未完成(actionStatus为空)，已尝试 120 次，继续等待...
2025-04-30 11:35:22,750 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:22,750 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:22,751 - sqlalchemy.engine.Engine - INFO - [cached since 84.18s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:22,751 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:22,752 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:22,752 - sqlalchemy.engine.Engine - INFO - [cached since 84.18s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:22,753 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:22,754 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:22,859 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:22,886 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984121904}
2025-04-30 11:35:22,887 - services.sync_service - DEBUG - 任务块 1917422211677966337 动作未完成，已尝试 119 次
2025-04-30 11:35:22,923 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:22,924 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:22,928 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:22,929 - sqlalchemy.engine.Engine - INFO - [cached since 84.36s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:22,931 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:22,945 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984121975}
2025-04-30 11:35:22,948 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 121 次
2025-04-30 11:35:23,398 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422211677966337
2025-04-30 11:35:23,441 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422211677966337 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422211677966337', 'tenantId': 1000, 'taskId': '1917422204010778625', 'taskBlockId': '1917422204434403330', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984122471}
2025-04-30 11:35:23,442 - services.sync_service - INFO - 正在获取任务块动作详情: 1917422212797845505
2025-04-30 11:35:23,442 - services.sync_service - INFO - 任务块 1917422211677966337 动作未完成(actionStatus为空)，已尝试 120 次，继续等待...
2025-04-30 11:35:23,460 - services.sync_service - INFO - 成功获取任务块动作详情: 1917422212797845505 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917422212797845505', 'tenantId': 1000, 'taskId': '1917422202454691841', 'taskBlockId': '1917422203117391873', 'amrId': '1912328602264645634', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 11:34:14'}, 'timestamp': 1745984122487}
2025-04-30 11:35:23,461 - services.sync_service - DEBUG - 任务块 1917422212797845505 动作未完成，已尝试 122 次
2025-04-30 11:35:23,769 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:23,769 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:23,769 - sqlalchemy.engine.Engine - INFO - [cached since 85.2s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:23,770 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:23,771 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:23,771 - sqlalchemy.engine.Engine - INFO - [cached since 85.2s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:23,771 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:23,771 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:23,830 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 11:35:23,830 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 11:35:23,830 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 11:35:23,831 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 11:35:23,831 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 11:35:23,831 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 11:35:23,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 11:35:23,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 11:35:23,832 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 11:35:23,833 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 11:35:23,833 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 11:35:23,833 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 11:35:23,953 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:23,954 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:23,955 - sqlalchemy.engine.Engine - INFO - [cached since 85.39s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:23,956 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:24,776 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:24,777 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:24,777 - sqlalchemy.engine.Engine - INFO - [cached since 86.21s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:24,780 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:24,784 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:24,788 - sqlalchemy.engine.Engine - INFO - [cached since 86.22s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:24,790 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:24,793 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:24,948 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:24,949 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:24,949 - sqlalchemy.engine.Engine - INFO - [cached since 86.38s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:24,950 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:25,770 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:25,771 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:25,771 - sqlalchemy.engine.Engine - INFO - [cached since 87.2s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:25,772 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:25,772 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:25,773 - sqlalchemy.engine.Engine - INFO - [cached since 87.21s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:25,773 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:25,774 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:25,941 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:25,943 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:25,945 - sqlalchemy.engine.Engine - INFO - [cached since 87.38s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:25,946 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:26,794 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:26,794 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:26,794 - sqlalchemy.engine.Engine - INFO - [cached since 88.23s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:26,796 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:26,796 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:26,796 - sqlalchemy.engine.Engine - INFO - [cached since 88.23s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:26,797 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:26,798 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:26,965 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:26,967 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:26,968 - sqlalchemy.engine.Engine - INFO - [cached since 88.4s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:26,974 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:27,776 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:27,776 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:27,777 - sqlalchemy.engine.Engine - INFO - [cached since 89.21s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:27,778 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:27,778 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:27,779 - sqlalchemy.engine.Engine - INFO - [cached since 89.21s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:27,779 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:27,780 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:27,992 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:27,993 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:27,993 - sqlalchemy.engine.Engine - INFO - [cached since 89.43s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:27,995 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:28,795 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:28,797 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:28,797 - sqlalchemy.engine.Engine - INFO - [cached since 90.23s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:28,811 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:28,815 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:28,826 - sqlalchemy.engine.Engine - INFO - [cached since 90.26s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:28,830 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:28,842 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:28,982 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:28,983 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:28,984 - sqlalchemy.engine.Engine - INFO - [cached since 90.42s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:28,984 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:29,853 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:29,854 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:29,854 - sqlalchemy.engine.Engine - INFO - [cached since 91.29s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:35:29,854 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:29,854 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:29,854 - sqlalchemy.engine.Engine - INFO - [cached since 91.29s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:35:29,855 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:29,855 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:29,993 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:35:29,994 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:35:29,994 - sqlalchemy.engine.Engine - INFO - [cached since 91.43s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:35:29,995 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:35:30,070 - app - INFO - 应用程序关闭中...
2025-04-30 11:35:30,071 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 11:35:30,071 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 11:35:30,071 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 11:35:30,071 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 11:35:30,072 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 11:35:30,072 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 11:35:30,072 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 11:35:30,072 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 11:35:30,072 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 11:35:30,073 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 11:35:30,073 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 11:35:30,073 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 11:35:30,073 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 11:35:30,073 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 11:35:30,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 11:35:30,074 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 3
2025-04-30 11:35:30,074 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 11:35:30,076 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 11:35:30,077 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 2
2025-04-30 11:35:30,077 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 11:35:30,077 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 11:35:30,078 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 1
2025-04-30 11:35:30,078 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 11:35:30,079 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 11:35:30,079 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 0
2025-04-30 11:35:30,080 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 11:35:30,080 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 11:35:30,080 - app - INFO - 增强版任务调度器已停止
2025-04-30 11:35:30,080 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 11:35:30,080 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 11:35:30,080 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 11:35:30,081 - data.session - INFO - 数据库连接已关闭
2025-04-30 11:58:12,597 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:58:12,665 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:58:12,666 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:58:13,380 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:58:13,441 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:58:13,442 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:58:13,506 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 11:58:13,561 - data.session - INFO - 正在初始化数据库...
2025-04-30 11:58:13,598 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 11:58:13,618 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:58:13,618 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:13,619 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:58:13,619 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:13,619 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:58:13,620 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:13,620 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:13,621 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 11:58:13,621 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:13,622 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 11:58:13,622 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:13,625 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 11:58:13,625 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:13,626 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 11:58:13,626 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:13,627 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 11:58:13,627 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:13,629 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 11:58:13,629 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:13,631 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 11:58:13,632 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:13,633 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 11:58:13,633 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:13,634 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 11:58:13,634 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:13,635 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 11:58:13,635 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:13,636 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 11:58:13,636 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:13,637 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:13,637 - data.session - INFO - 数据库表初始化完成
2025-04-30 11:58:13,996 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 11:58:13,996 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 11:58:13,996 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 11:58:13,997 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 11:58:13,997 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 11:58:13,997 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 11:58:13,997 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 11:58:13,997 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 11:58:13,997 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 11:58:13,997 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 11:58:13,999 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 11:58:13,999 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 11:58:14,000 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 11:58:14,001 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 11:58:14,001 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 11:58:14,001 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 11:58:14,001 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 11:58:14,002 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 11:58:14,002 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 11:58:14,002 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 11:58:14,003 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:58:14,003 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:58:14,004 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:58:14,004 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:58:14,005 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:58:14,005 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:58:14,005 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:58:14,006 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,015 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 11:58:14,015 - sqlalchemy.engine.Engine - INFO - [generated in 0.00050s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 11:58:14,016 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 11:58:14,017 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,017 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 11:58:14,018 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 11:58:14,019 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 11:58:14,019 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,021 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 11:58:14,021 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 11:58:14,037 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,038 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:58:14,038 - services.enhanced_scheduler.task_persistence - WARNING - 备份文件 D:\jsw_code\project\VWED_task\data\task_backups\tasks_backup_20250421_155939.json 已过期 (212.0小时)，不使用它恢复任务
2025-04-30 11:58:14,038 - services.enhanced_scheduler.task_persistence - INFO - 已加载 3 个待处理任务
2025-04-30 11:58:14,039 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,040 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:58:14,041 - sqlalchemy.engine.Engine - INFO - [generated in 0.00063s] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:58:14,041 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,042 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 11:58:14,043 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 58, 14, 19514))
2025-04-30 11:58:14,044 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:58:14,045 - sqlalchemy.engine.Engine - INFO - [cached since 0.00486s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:58:14,046 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,047 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:58:14,047 - sqlalchemy.engine.Engine - INFO - [cached since 0.007084s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:58:14,048 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,049 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 411fd552-da70-406f-910a-f072831fdc1b (优先级 1) 添加到队列 0
2025-04-30 11:58:14,049 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 411fd552-da70-406f-910a-f072831fdc1b, 优先级: 1
2025-04-30 11:58:14,049 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 6a8e8efd-22ae-41ef-b018-709981ee97dd (优先级 1) 添加到队列 0
2025-04-30 11:58:14,049 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 6a8e8efd-22ae-41ef-b018-709981ee97dd, 优先级: 1
2025-04-30 11:58:14,050 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 eed6b387-ce4e-4340-ab0e-341a5b299905 (优先级 1) 添加到队列 0
2025-04-30 11:58:14,050 - services.enhanced_scheduler.task_scheduler - INFO - 恢复任务 eed6b387-ce4e-4340-ab0e-341a5b299905, 优先级: 1
2025-04-30 11:58:14,050 - services.enhanced_scheduler.task_scheduler - INFO - 已恢复 3 个未完成的任务，移除 0 个不需要恢复的任务
2025-04-30 11:58:14,050 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 11:58:14,050 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 11:58:14,098 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 411fd552-da70-406f-910a-f072831fdc1b, 优先级: 1
2025-04-30 11:58:14,100 - services.execution.task_executor - DEBUG - 任务 411fd552-da70-406f-910a-f072831fdc1b 设置超时时间: 3600秒
2025-04-30 11:58:14,100 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 6a8e8efd-22ae-41ef-b018-709981ee97dd, 优先级: 1
2025-04-30 11:58:14,101 - services.execution.task_executor - DEBUG - 任务 6a8e8efd-22ae-41ef-b018-709981ee97dd 设置超时时间: 3600秒
2025-04-30 11:58:14,101 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 获取到任务: eed6b387-ce4e-4340-ab0e-341a5b299905, 优先级: 1
2025-04-30 11:58:14,101 - services.execution.task_executor - DEBUG - 任务 eed6b387-ce4e-4340-ab0e-341a5b299905 设置超时时间: 3600秒
2025-04-30 11:58:14,101 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,102 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:58:14,102 - sqlalchemy.engine.Engine - INFO - [cached since 0.06151s ago] ('411fd552-da70-406f-910a-f072831fdc1b',)
2025-04-30 11:58:14,102 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,103 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:58:14,103 - sqlalchemy.engine.Engine - INFO - [cached since 0.06244s ago] ('6a8e8efd-22ae-41ef-b018-709981ee97dd',)
2025-04-30 11:58:14,104 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:58:14,105 - sqlalchemy.engine.Engine - INFO - [generated in 0.00073s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:58:14,106 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:58:14,106 - sqlalchemy.engine.Engine - INFO - [cached since 0.001733s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:58:14,106 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,107 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,108 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,109 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:58:14,109 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 58, 14, 109269), '411fd552-da70-406f-910a-f072831fdc1b')
2025-04-30 11:58:14,110 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,111 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,111 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:58:14,111 - sqlalchemy.engine.Engine - INFO - [cached since 0.002037s ago] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 58, 14, 111275), '6a8e8efd-22ae-41ef-b018-709981ee97dd')
2025-04-30 11:58:14,112 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,114 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:58:14,114 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,114 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:58:14,114 - sqlalchemy.engine.Engine - INFO - [cached since 0.07407s ago] ('eed6b387-ce4e-4340-ab0e-341a5b299905',)
2025-04-30 11:58:14,115 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:58:14,115 - sqlalchemy.engine.Engine - INFO - [cached since 0.01142s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:58:14,117 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,117 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,118 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:58:14,118 - sqlalchemy.engine.Engine - INFO - [cached since 0.008824s ago] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 58, 14, 118152), 'eed6b387-ce4e-4340-ab0e-341a5b299905')
2025-04-30 11:58:14,119 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,119 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 11:58:14,120 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,123 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:58:14,123 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] ('fb0e27e2-cff7-47ee-b355-0cedffb0d2c4', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '411fd552-da70-406f-910a-f072831fdc1b', datetime.datetime(2025, 4, 30, 11, 58, 14, 120150), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 58, 14, 123151), datetime.datetime(2025, 4, 30, 11, 58, 14, 123151), 0)
2025-04-30 11:58:14,124 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 11:58:14,124 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,125 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,125 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:58:14,125 - sqlalchemy.engine.Engine - INFO - [cached since 0.002496s ago] ('796e6e5b-f2d5-4c3e-a790-f358f0171694', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6a8e8efd-22ae-41ef-b018-709981ee97dd', datetime.datetime(2025, 4, 30, 11, 58, 14, 124144), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 58, 14, 125147), datetime.datetime(2025, 4, 30, 11, 58, 14, 125147), 0)
2025-04-30 11:58:14,126 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,127 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 11:58:14,128 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,128 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:58:14,128 - sqlalchemy.engine.Engine - INFO - [cached since 0.005607s ago] ('14c3c7e8-5401-42af-8046-5f8f937e3804', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'eed6b387-ce4e-4340-ab0e-341a5b299905', datetime.datetime(2025, 4, 30, 11, 58, 14, 127152), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 58, 14, 128151), datetime.datetime(2025, 4, 30, 11, 58, 14, 128151), 0)
2025-04-30 11:58:14,129 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,133 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,135 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:14,135 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] ('fb0e27e2-cff7-47ee-b355-0cedffb0d2c4',)
2025-04-30 11:58:14,136 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 11:58:14,136 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 11:58:14,137 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:14,137 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 58, 14, 137216), 'fb0e27e2-cff7-47ee-b355-0cedffb0d2c4')
2025-04-30 11:58:14,138 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,138 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,139 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:14,139 - sqlalchemy.engine.Engine - INFO - [cached since 0.004804s ago] ('796e6e5b-f2d5-4c3e-a790-f358f0171694',)
2025-04-30 11:58:14,140 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 11:58:14,140 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 11:58:14,140 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:14,141 - sqlalchemy.engine.Engine - INFO - [cached since 0.004067s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 58, 14, 140678), '796e6e5b-f2d5-4c3e-a790-f358f0171694')
2025-04-30 11:58:14,142 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,142 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:14,143 - sqlalchemy.engine.Engine - INFO - [cached since 0.007896s ago] ('14c3c7e8-5401-42af-8046-5f8f937e3804',)
2025-04-30 11:58:14,143 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,144 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 11:58:14,144 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 11:58:14,144 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:14,145 - sqlalchemy.engine.Engine - INFO - [cached since 0.007267s ago] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 58, 14, 144086), '14c3c7e8-5401-42af-8046-5f8f937e3804')
2025-04-30 11:58:14,145 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,146 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 11:58:14,146 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 11:58:14,146 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 11:58:14,147 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,147 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:58:14,147 - sqlalchemy.engine.Engine - INFO - [cached since 0.02468s ago] ('25de8b12-1b84-4764-b602-24524b287331', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '411fd552-da70-406f-910a-f072831fdc1b', datetime.datetime(2025, 4, 30, 11, 58, 14, 147085), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 58, 14, 147085), datetime.datetime(2025, 4, 30, 11, 58, 14, 147085), 0)
2025-04-30 11:58:14,148 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,151 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 11:58:14,151 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 11:58:14,151 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 11:58:14,152 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,152 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:58:14,152 - sqlalchemy.engine.Engine - INFO - [cached since 0.03008s ago] ('b6cb61f3-2876-4468-bdb7-d6a9741f052d', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6a8e8efd-22ae-41ef-b018-709981ee97dd', datetime.datetime(2025, 4, 30, 11, 58, 14, 151523), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 58, 14, 152521), datetime.datetime(2025, 4, 30, 11, 58, 14, 152521), 0)
2025-04-30 11:58:14,153 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,155 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 11:58:14,155 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 11:58:14,155 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 11:58:14,155 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,156 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:58:14,156 - sqlalchemy.engine.Engine - INFO - [cached since 0.03388s ago] ('c1da2793-43d3-4a59-b747-186a4f7ae2b7', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'eed6b387-ce4e-4340-ab0e-341a5b299905', datetime.datetime(2025, 4, 30, 11, 58, 14, 155516), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 58, 14, 156515), datetime.datetime(2025, 4, 30, 11, 58, 14, 156515), 0)
2025-04-30 11:58:14,158 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 25de8b12-1b84-4764-b602-24524b287331
2025-04-30 11:58:14,158 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,161 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:14,161 - sqlalchemy.engine.Engine - INFO - [cached since 0.02708s ago] ('25de8b12-1b84-4764-b602-24524b287331',)
2025-04-30 11:58:14,163 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 11:58:14,163 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 11:58:14,164 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:14,164 - sqlalchemy.engine.Engine - INFO - [cached since 0.02701s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 58, 14, 164472), '25de8b12-1b84-4764-b602-24524b287331')
2025-04-30 11:58:14,165 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,165 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,167 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: b6cb61f3-2876-4468-bdb7-d6a9741f052d
2025-04-30 11:58:14,167 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,167 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:14,168 - sqlalchemy.engine.Engine - INFO - [cached since 0.03341s ago] ('b6cb61f3-2876-4468-bdb7-d6a9741f052d',)
2025-04-30 11:58:14,168 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 11:58:14,169 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 11:58:14,169 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:14,169 - sqlalchemy.engine.Engine - INFO - [cached since 0.03215s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 58, 14, 169364), 'b6cb61f3-2876-4468-bdb7-d6a9741f052d')
2025-04-30 11:58:14,170 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,172 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: c1da2793-43d3-4a59-b747-186a4f7ae2b7
2025-04-30 11:58:14,172 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,172 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:14,172 - sqlalchemy.engine.Engine - INFO - [cached since 0.03809s ago] ('c1da2793-43d3-4a59-b747-186a4f7ae2b7',)
2025-04-30 11:58:14,173 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 11:58:14,173 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 11:58:14,173 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:14,173 - sqlalchemy.engine.Engine - INFO - [cached since 0.03664s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 58, 14, 173780), 'c1da2793-43d3-4a59-b747-186a4f7ae2b7')
2025-04-30 11:58:14,174 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,174 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 11:58:14,179 - services.sync_service - INFO - 正在创建选择AMR任务: 411fd552-da70-406f-910a-f072831fdc1b, 站点: TK01
2025-04-30 11:58:14,181 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 11:58:14,182 - services.sync_service - INFO - 正在创建选择AMR任务: 6a8e8efd-22ae-41ef-b018-709981ee97dd, 站点: TK01
2025-04-30 11:58:14,183 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 11:58:14,183 - services.sync_service - INFO - 正在创建选择AMR任务: eed6b387-ce4e-4340-ab0e-341a5b299905, 站点: TK01
2025-04-30 11:58:14,215 - services.sync_service - ERROR - 调用选择AMR接口失败: 401, message='Attempt to decode JSON with unexpected mimetype: text/html;charset=utf-8', url='http://192.168.189.101:8080/jeecg-boot/taskBlock'
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\sync_service.py", line 202, in create_choose_amr_task
    response_text = await response.json()
                    ^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiohttp\client_reqrep.py", line 1281, in json
    raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 401, message='Attempt to decode JSON with unexpected mimetype: text/html;charset=utf-8', url='http://192.168.189.101:8080/jeecg-boot/taskBlock'
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 759, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 309, in execute_children
    result = await handler.execute(child_block, parsed_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\robot_scheduling.py", line 627, in execute
    result = await create_choose_amr_task(
  File "D:\jsw_code\project\VWED_task\services\sync_service.py", line 215, in create_choose_amr_task
    logger.error(f"调用选择AMR接口失败: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:58:14,217 - services.sync_service - ERROR - 调用选择AMR接口失败: 401, message='Attempt to decode JSON with unexpected mimetype: text/html;charset=utf-8', url='http://192.168.189.101:8080/jeecg-boot/taskBlock'
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\sync_service.py", line 202, in create_choose_amr_task
    response_text = await response.json()
                    ^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiohttp\client_reqrep.py", line 1281, in json
    raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 401, message='Attempt to decode JSON with unexpected mimetype: text/html;charset=utf-8', url='http://192.168.189.101:8080/jeecg-boot/taskBlock'
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 759, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 309, in execute_children
    result = await handler.execute(child_block, parsed_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\robot_scheduling.py", line 627, in execute
    result = await create_choose_amr_task(
  File "D:\jsw_code\project\VWED_task\services\sync_service.py", line 215, in create_choose_amr_task
    logger.error(f"调用选择AMR接口失败: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:58:14,218 - services.sync_service - ERROR - 调用选择AMR接口失败: 401, message='Attempt to decode JSON with unexpected mimetype: text/html;charset=utf-8', url='http://192.168.189.101:8080/jeecg-boot/taskBlock'
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\sync_service.py", line 202, in create_choose_amr_task
    response_text = await response.json()
                    ^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiohttp\client_reqrep.py", line 1281, in json
    raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 401, message='Attempt to decode JSON with unexpected mimetype: text/html;charset=utf-8', url='http://192.168.189.101:8080/jeecg-boot/taskBlock'
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 759, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 309, in execute_children
    result = await handler.execute(child_block, parsed_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\robot_scheduling.py", line 627, in execute
    result = await create_choose_amr_task(
  File "D:\jsw_code\project\VWED_task\services\sync_service.py", line 215, in create_choose_amr_task
    logger.error(f"调用选择AMR接口失败: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:58:14,219 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,221 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:58:14,221 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] ('1d04b25d-f74f-428f-b012-4ceedeef216b', 3, '{"success": false, "message": "选择执行机器人异常: \'NoneType\' object has no attribute \'get\'"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '411fd552-da70-406f-910a-f072831fdc1b', datetime.datetime(2025, 4, 30, 11, 58, 14, 221334), datetime.datetime(2025, 4, 30, 11, 58, 14, 221334), 0)
2025-04-30 11:58:14,221 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,222 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:58:14,222 - sqlalchemy.engine.Engine - INFO - [cached since 0.001399s ago] ('51ebb558-a9ac-4020-a5af-443d566cbbd9', 3, '{"success": false, "message": "选择执行机器人异常: \'NoneType\' object has no attribute \'get\'"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6a8e8efd-22ae-41ef-b018-709981ee97dd', datetime.datetime(2025, 4, 30, 11, 58, 14, 222279), datetime.datetime(2025, 4, 30, 11, 58, 14, 222279), 0)
2025-04-30 11:58:14,222 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,222 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:58:14,222 - sqlalchemy.engine.Engine - INFO - [cached since 0.002384s ago] ('7e6176c3-f933-4598-a89b-87db3480248a', 3, '{"success": false, "message": "选择执行机器人异常: \'NoneType\' object has no attribute \'get\'"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'eed6b387-ce4e-4340-ab0e-341a5b299905', datetime.datetime(2025, 4, 30, 11, 58, 14, 222279), datetime.datetime(2025, 4, 30, 11, 58, 14, 222279), 0)
2025-04-30 11:58:14,223 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,223 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,223 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,232 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人异常: 'NoneType' object has no attribute 'get'
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 759, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:58:14,233 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,233 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:14,233 - sqlalchemy.engine.Engine - INFO - [cached since 0.09879s ago] ('25de8b12-1b84-4764-b602-24524b287331',)
2025-04-30 11:58:14,234 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 11:58:14,234 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 11:58:14,235 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:14,235 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] (datetime.datetime(2025, 4, 30, 11, 58, 14, 234272), "选择执行机器人异常: 'NoneType' object has no attribute 'get'", <TaskBlockRecordStatus.FAILED: 2000>, "选择执行机器人异常: 'NoneType' object has no attribute 'get'", datetime.datetime(2025, 4, 30, 11, 58, 14, 235271), '25de8b12-1b84-4764-b602-24524b287331')
2025-04-30 11:58:14,237 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人异常: 'NoneType' object has no attribute 'get'
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 759, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:58:14,238 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,238 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人异常: 'NoneType' object has no attribute 'get'
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 759, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:58:14,238 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,239 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:14,239 - sqlalchemy.engine.Engine - INFO - [cached since 0.1048s ago] ('b6cb61f3-2876-4468-bdb7-d6a9741f052d',)
2025-04-30 11:58:14,239 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,240 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:14,240 - sqlalchemy.engine.Engine - INFO - [cached since 0.1064s ago] ('c1da2793-43d3-4a59-b747-186a4f7ae2b7',)
2025-04-30 11:58:14,241 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 11:58:14,241 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 11:58:14,241 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:14,242 - sqlalchemy.engine.Engine - INFO - [cached since 0.007302s ago] (datetime.datetime(2025, 4, 30, 11, 58, 14, 241751), "选择执行机器人异常: 'NoneType' object has no attribute 'get'", <TaskBlockRecordStatus.FAILED: 2000>, "选择执行机器人异常: 'NoneType' object has no attribute 'get'", datetime.datetime(2025, 4, 30, 11, 58, 14, 241751), 'b6cb61f3-2876-4468-bdb7-d6a9741f052d')
2025-04-30 11:58:14,242 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 11:58:14,242 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 11:58:14,243 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:14,243 - sqlalchemy.engine.Engine - INFO - [cached since 0.009094s ago] (datetime.datetime(2025, 4, 30, 11, 58, 14, 242745), "选择执行机器人异常: 'NoneType' object has no attribute 'get'", <TaskBlockRecordStatus.FAILED: 2000>, "选择执行机器人异常: 'NoneType' object has no attribute 'get'", datetime.datetime(2025, 4, 30, 11, 58, 14, 243744), 'c1da2793-43d3-4a59-b747-186a4f7ae2b7')
2025-04-30 11:58:14,244 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,245 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,245 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,245 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:58:14,245 - sqlalchemy.engine.Engine - INFO - [cached since 0.02541s ago] ('4ab06f8c-2532-42ab-be07-7e3941a34e9a', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人异常: \'NoneType\' object has no attribute \'get\'", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '411fd552-da70-406f-910a-f072831fdc1b', datetime.datetime(2025, 4, 30, 11, 58, 14, 245854), datetime.datetime(2025, 4, 30, 11, 58, 14, 245854), 0)
2025-04-30 11:58:14,246 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,253 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,253 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:58:14,254 - sqlalchemy.engine.Engine - INFO - [cached since 0.03358s ago] ('f7296f33-87c2-4b10-b5c5-84322613157d', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人异常: \'NoneType\' object has no attribute \'get\'", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6a8e8efd-22ae-41ef-b018-709981ee97dd', datetime.datetime(2025, 4, 30, 11, 58, 14, 253865), datetime.datetime(2025, 4, 30, 11, 58, 14, 253865), 0)
2025-04-30 11:58:14,254 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,259 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,260 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:14,260 - sqlalchemy.engine.Engine - INFO - [cached since 0.126s ago] ('fb0e27e2-cff7-47ee-b355-0cedffb0d2c4',)
2025-04-30 11:58:14,260 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,261 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:58:14,261 - sqlalchemy.engine.Engine - INFO - [cached since 0.04074s ago] ('f1f4e9a0-c809-4964-a53c-90e1efbd5045', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人异常: \'NoneType\' object has no attribute \'get\'", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'eed6b387-ce4e-4340-ab0e-341a5b299905', datetime.datetime(2025, 4, 30, 11, 58, 14, 261790), datetime.datetime(2025, 4, 30, 11, 58, 14, 261790), 0)
2025-04-30 11:58:14,261 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 11:58:14,261 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 11:58:14,262 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:14,263 - sqlalchemy.engine.Engine - INFO - [cached since 0.02857s ago] (datetime.datetime(2025, 4, 30, 11, 58, 14, 262797), "子块 1 执行失败: 选择执行机器人异常: 'NoneType' object has no attribute 'get'", <TaskBlockRecordStatus.FAILED: 2000>, "子块 1 执行失败: 选择执行机器人异常: 'NoneType' object has no attribute 'get'", datetime.datetime(2025, 4, 30, 11, 58, 14, 262797), 'fb0e27e2-cff7-47ee-b355-0cedffb0d2c4')
2025-04-30 11:58:14,264 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,264 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,265 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,265 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:14,266 - sqlalchemy.engine.Engine - INFO - [cached since 0.1317s ago] ('796e6e5b-f2d5-4c3e-a790-f358f0171694',)
2025-04-30 11:58:14,266 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 11:58:14,267 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 11:58:14,267 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:14,268 - sqlalchemy.engine.Engine - INFO - [cached since 0.03328s ago] (datetime.datetime(2025, 4, 30, 11, 58, 14, 267798), "子块 1 执行失败: 选择执行机器人异常: 'NoneType' object has no attribute 'get'", <TaskBlockRecordStatus.FAILED: 2000>, "子块 1 执行失败: 选择执行机器人异常: 'NoneType' object has no attribute 'get'", datetime.datetime(2025, 4, 30, 11, 58, 14, 267798), '796e6e5b-f2d5-4c3e-a790-f358f0171694')
2025-04-30 11:58:14,268 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,270 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,270 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:14,270 - sqlalchemy.engine.Engine - INFO - [cached since 0.1363s ago] ('14c3c7e8-5401-42af-8046-5f8f937e3804',)
2025-04-30 11:58:14,271 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 11:58:14,271 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 11:58:14,271 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:14,271 - sqlalchemy.engine.Engine - INFO - [cached since 0.03737s ago] (datetime.datetime(2025, 4, 30, 11, 58, 14, 271798), "子块 1 执行失败: 选择执行机器人异常: 'NoneType' object has no attribute 'get'", <TaskBlockRecordStatus.FAILED: 2000>, "子块 1 执行失败: 选择执行机器人异常: 'NoneType' object has no attribute 'get'", datetime.datetime(2025, 4, 30, 11, 58, 14, 271798), '14c3c7e8-5401-42af-8046-5f8f937e3804')
2025-04-30 11:58:14,273 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,276 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,279 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:58:14,279 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (datetime.datetime(2025, 4, 30, 11, 58, 14, 275019), "子块 1 执行失败: 选择执行机器人异常: 'NoneType' object has no attribute 'get'", <TaskStatus.FAILED: 2000>, 166, 1, datetime.datetime(2025, 4, 30, 11, 58, 14, 279020), '411fd552-da70-406f-910a-f072831fdc1b')
2025-04-30 11:58:14,280 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,281 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,281 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:58:14,281 - sqlalchemy.engine.Engine - INFO - [cached since 0.002812s ago] (datetime.datetime(2025, 4, 30, 11, 58, 14, 281286), "子块 1 执行失败: 选择执行机器人异常: 'NoneType' object has no attribute 'get'", <TaskStatus.FAILED: 2000>, 169, 1, datetime.datetime(2025, 4, 30, 11, 58, 14, 281286), '6a8e8efd-22ae-41ef-b018-709981ee97dd')
2025-04-30 11:58:14,282 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,282 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:14,283 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:58:14,283 - sqlalchemy.engine.Engine - INFO - [cached since 0.005014s ago] (datetime.datetime(2025, 4, 30, 11, 58, 14, 282651), "子块 1 执行失败: 选择执行机器人异常: 'NoneType' object has no attribute 'get'", <TaskStatus.FAILED: 2000>, 165, 1, datetime.datetime(2025, 4, 30, 11, 58, 14, 283657), 'eed6b387-ce4e-4340-ab0e-341a5b299905')
2025-04-30 11:58:14,284 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:14,290 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 411fd552-da70-406f-910a-f072831fdc1b, 结果: False
2025-04-30 11:58:14,298 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: 6a8e8efd-22ae-41ef-b018-709981ee97dd, 结果: False
2025-04-30 11:58:14,298 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 完成任务: eed6b387-ce4e-4340-ab0e-341a5b299905, 结果: False
2025-04-30 11:58:18,739 - app - INFO - 应用程序关闭中...
2025-04-30 11:58:18,739 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 11:58:18,739 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 11:58:18,739 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 11:58:18,739 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 11:58:18,740 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 11:58:18,740 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 11:58:18,740 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 11:58:18,740 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 11:58:18,740 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 11:58:18,740 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 11:58:18,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 11:58:18,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 11:58:18,740 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 11:58:18,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 11:58:18,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 11:58:18,741 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 11:58:18,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 11:58:18,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 11:58:18,741 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 11:58:18,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 11:58:18,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 11:58:18,742 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 11:58:18,742 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 11:58:18,742 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 11:58:18,742 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 11:58:18,742 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 11:58:18,742 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 11:58:18,742 - app - INFO - 增强版任务调度器已停止
2025-04-30 11:58:18,742 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 11:58:18,743 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 11:58:18,743 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 11:58:18,743 - data.session - INFO - 数据库连接已关闭
2025-04-30 11:58:28,345 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:58:28,407 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:58:28,410 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:58:29,120 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:58:29,180 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:58:29,184 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:58:29,247 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 11:58:29,300 - data.session - INFO - 正在初始化数据库...
2025-04-30 11:58:29,332 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 11:58:29,359 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:58:29,359 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:29,360 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:58:29,363 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:29,366 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:58:29,367 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:29,369 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:29,372 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 11:58:29,374 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:29,376 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 11:58:29,376 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:29,380 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 11:58:29,380 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:29,382 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 11:58:29,387 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:29,388 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 11:58:29,391 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:29,392 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 11:58:29,393 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:29,394 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 11:58:29,399 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:29,404 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 11:58:29,407 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:29,409 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 11:58:29,414 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:29,417 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 11:58:29,420 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:29,422 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 11:58:29,423 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:29,424 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:29,427 - data.session - INFO - 数据库表初始化完成
2025-04-30 11:58:29,788 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 11:58:29,790 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 11:58:29,790 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 11:58:29,790 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 11:58:29,791 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 11:58:29,791 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 11:58:29,792 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 11:58:29,792 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 11:58:29,792 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 11:58:29,792 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 11:58:29,793 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 11:58:29,793 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 11:58:29,793 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 11:58:29,795 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 11:58:29,795 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 11:58:29,795 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 11:58:29,795 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 11:58:29,796 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 11:58:29,796 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 11:58:29,796 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 11:58:29,797 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:58:29,797 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:58:29,798 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:58:29,798 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:58:29,799 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:58:29,800 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:58:29,800 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:58:29,801 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:29,810 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 11:58:29,810 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 11:58:29,812 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 11:58:29,812 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:29,813 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 11:58:29,814 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 11:58:29,814 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 11:58:29,814 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:29,817 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 11:58:29,817 - sqlalchemy.engine.Engine - INFO - [generated in 0.00063s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 11:58:29,819 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:29,819 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:58:29,819 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 11:58:29,820 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 11:58:29,820 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 11:58:29,820 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 11:58:29,821 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:29,823 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 11:58:29,826 - sqlalchemy.engine.Engine - INFO - [generated in 0.00195s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 58, 29, 814523))
2025-04-30 11:58:29,828 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:33,588 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 11:58:33,592 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:33,597 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:58:33,598 - sqlalchemy.engine.Engine - INFO - [generated in 0.00102s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:58:33,601 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:33,603 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:33,605 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:58:33,607 - sqlalchemy.engine.Engine - INFO - [cached since 0.01042s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:58:33,612 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:33,615 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 11:58:33,617 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 11:58:33,617 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 11:58:33,618 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:33,622 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 11:58:33,625 - sqlalchemy.engine.Engine - INFO - [generated in 0.00357s] (None, datetime.datetime(2025, 4, 30, 11, 58, 33, 621562), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 11:58:33,628 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:33,640 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:33,641 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:58:33,643 - sqlalchemy.engine.Engine - INFO - [cached since 0.0456s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:58:33,649 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:58:33,651 - sqlalchemy.engine.Engine - INFO - [generated in 0.00305s] ('fb6bd33a-f10b-4a73-a0aa-3b038a32f664', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 11, 58, 33, 615562), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.4", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 11, 58, 33, 648055), datetime.datetime(2025, 4, 30, 11, 58, 33, 648055), 0)
2025-04-30 11:58:33,656 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:33,666 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:33,670 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:58:33,672 - sqlalchemy.engine.Engine - INFO - [generated in 0.00267s] ('fb6bd33a-f10b-4a73-a0aa-3b038a32f664',)
2025-04-30 11:58:33,676 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:33,677 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 fb6bd33a-f10b-4a73-a0aa-3b038a32f664 (优先级 1) 添加到队列 0
2025-04-30 11:58:33,680 - services.sync_service - INFO - 正在同步创建任务到天风系统: fb6bd33a-f10b-4a73-a0aa-3b038a32f664
2025-04-30 11:58:33,680 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"fb6bd33a-f10b-4a73-a0aa-3b038a32f664","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 11:58:33","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 11:58:33,703 - services.sync_service - WARNING - 同步任务到系统任务失败: Token失效，请重新登录!
2025-04-30 11:58:33,705 - services.enhanced_scheduler.task_scheduler - WARNING - 同步任务到主任务系统失败: fb6bd33a-f10b-4a73-a0aa-3b038a32f664
2025-04-30 11:58:33,705 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: fb6bd33a-f10b-4a73-a0aa-3b038a32f664
2025-04-30 11:58:33,705 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1166秒
2025-04-30 11:58:33,784 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: fb6bd33a-f10b-4a73-a0aa-3b038a32f664, 优先级: 1
2025-04-30 11:58:33,784 - services.execution.task_executor - DEBUG - 任务 fb6bd33a-f10b-4a73-a0aa-3b038a32f664 设置超时时间: 3600秒
2025-04-30 11:58:33,785 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:33,785 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:58:33,786 - sqlalchemy.engine.Engine - INFO - [cached since 0.1166s ago] ('fb6bd33a-f10b-4a73-a0aa-3b038a32f664',)
2025-04-30 11:58:33,788 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:58:33,788 - sqlalchemy.engine.Engine - INFO - [cached since 0.1913s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:58:33,789 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:58:33,790 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] (datetime.datetime(2025, 4, 30, 11, 58, 33, 789623), datetime.datetime(2025, 4, 30, 11, 58, 33, 789623), 'fb6bd33a-f10b-4a73-a0aa-3b038a32f664')
2025-04-30 11:58:33,791 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:33,798 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:33,799 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:58:33,799 - sqlalchemy.engine.Engine - INFO - [generated in 0.00048s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 58, 33, 799622), 'fb6bd33a-f10b-4a73-a0aa-3b038a32f664')
2025-04-30 11:58:33,800 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:33,806 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 11:58:33,808 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:33,810 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:58:33,810 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] ('6c858983-68aa-4f87-b96c-f66aa6b41b8f', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'fb6bd33a-f10b-4a73-a0aa-3b038a32f664', datetime.datetime(2025, 4, 30, 11, 58, 33, 808765), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 58, 33, 810777), datetime.datetime(2025, 4, 30, 11, 58, 33, 810777), 0)
2025-04-30 11:58:33,811 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:33,818 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:33,820 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:33,822 - sqlalchemy.engine.Engine - INFO - [generated in 0.00174s] ('6c858983-68aa-4f87-b96c-f66aa6b41b8f',)
2025-04-30 11:58:33,823 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 11:58:33,823 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 11:58:33,825 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:33,826 - sqlalchemy.engine.Engine - INFO - [generated in 0.00056s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 58, 33, 825336), '6c858983-68aa-4f87-b96c-f66aa6b41b8f')
2025-04-30 11:58:33,826 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:33,834 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 11:58:33,834 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 11:58:33,834 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 11:58:33,835 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:33,836 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:58:33,836 - sqlalchemy.engine.Engine - INFO - [cached since 0.02542s ago] ('35ff09a2-a017-44fb-9f31-ff56e87f36d6', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'fb6bd33a-f10b-4a73-a0aa-3b038a32f664', datetime.datetime(2025, 4, 30, 11, 58, 33, 835356), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 58, 33, 836353), datetime.datetime(2025, 4, 30, 11, 58, 33, 836353), 0)
2025-04-30 11:58:33,836 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:33,842 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 35ff09a2-a017-44fb-9f31-ff56e87f36d6
2025-04-30 11:58:33,842 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:33,843 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:33,843 - sqlalchemy.engine.Engine - INFO - [cached since 0.0231s ago] ('35ff09a2-a017-44fb-9f31-ff56e87f36d6',)
2025-04-30 11:58:33,844 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 11:58:33,844 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 11:58:33,844 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:33,844 - sqlalchemy.engine.Engine - INFO - [cached since 0.01929s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 58, 33, 844351), '35ff09a2-a017-44fb-9f31-ff56e87f36d6')
2025-04-30 11:58:33,845 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:33,851 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 11:58:33,851 - services.sync_service - INFO - 正在创建选择AMR任务: fb6bd33a-f10b-4a73-a0aa-3b038a32f664, 站点: TK01
2025-04-30 11:58:33,882 - services.sync_service - ERROR - 调用选择AMR接口失败: 401, message='Attempt to decode JSON with unexpected mimetype: text/html;charset=utf-8', url='http://192.168.189.101:8080/jeecg-boot/taskBlock'
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\sync_service.py", line 202, in create_choose_amr_task
    response_text = await response.json()
                    ^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiohttp\client_reqrep.py", line 1281, in json
    raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 401, message='Attempt to decode JSON with unexpected mimetype: text/html;charset=utf-8', url='http://192.168.189.101:8080/jeecg-boot/taskBlock'
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 759, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 309, in execute_children
    result = await handler.execute(child_block, parsed_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\robot_scheduling.py", line 627, in execute
    result = await create_choose_amr_task(
  File "D:\jsw_code\project\VWED_task\services\sync_service.py", line 215, in create_choose_amr_task
    logger.error(f"调用选择AMR接口失败: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:58:33,884 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:33,885 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:58:33,885 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] ('802bef4b-0b99-4c14-9145-5d254f079d55', 3, '{"success": false, "message": "选择执行机器人异常: \'NoneType\' object has no attribute \'get\'"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'fb6bd33a-f10b-4a73-a0aa-3b038a32f664', datetime.datetime(2025, 4, 30, 11, 58, 33, 885742), datetime.datetime(2025, 4, 30, 11, 58, 33, 885742), 0)
2025-04-30 11:58:33,886 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:33,894 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人异常: 'NoneType' object has no attribute 'get'
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 759, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:58:33,895 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:33,896 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:33,896 - sqlalchemy.engine.Engine - INFO - [cached since 0.07616s ago] ('35ff09a2-a017-44fb-9f31-ff56e87f36d6',)
2025-04-30 11:58:33,897 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 11:58:33,897 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 11:58:33,898 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:33,898 - sqlalchemy.engine.Engine - INFO - [generated in 0.00039s] (datetime.datetime(2025, 4, 30, 11, 58, 33, 897389), "选择执行机器人异常: 'NoneType' object has no attribute 'get'", <TaskBlockRecordStatus.FAILED: 2000>, "选择执行机器人异常: 'NoneType' object has no attribute 'get'", datetime.datetime(2025, 4, 30, 11, 58, 33, 898396), '35ff09a2-a017-44fb-9f31-ff56e87f36d6')
2025-04-30 11:58:33,899 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:33,905 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:33,906 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:58:33,906 - sqlalchemy.engine.Engine - INFO - [cached since 0.02075s ago] ('bbd33fc1-6754-47a4-9e6c-7437f33efcb9', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人异常: \'NoneType\' object has no attribute \'get\'", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', 'fb6bd33a-f10b-4a73-a0aa-3b038a32f664', datetime.datetime(2025, 4, 30, 11, 58, 33, 906420), datetime.datetime(2025, 4, 30, 11, 58, 33, 906420), 0)
2025-04-30 11:58:33,906 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:33,913 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:33,914 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:33,914 - sqlalchemy.engine.Engine - INFO - [cached since 0.0945s ago] ('6c858983-68aa-4f87-b96c-f66aa6b41b8f',)
2025-04-30 11:58:33,915 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 11:58:33,915 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 11:58:33,916 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:58:33,916 - sqlalchemy.engine.Engine - INFO - [cached since 0.0182s ago] (datetime.datetime(2025, 4, 30, 11, 58, 33, 915575), "子块 1 执行失败: 选择执行机器人异常: 'NoneType' object has no attribute 'get'", <TaskBlockRecordStatus.FAILED: 2000>, "子块 1 执行失败: 选择执行机器人异常: 'NoneType' object has no attribute 'get'", datetime.datetime(2025, 4, 30, 11, 58, 33, 915575), '6c858983-68aa-4f87-b96c-f66aa6b41b8f')
2025-04-30 11:58:33,917 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:33,923 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:33,924 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:58:33,924 - sqlalchemy.engine.Engine - INFO - [generated in 0.00059s] (datetime.datetime(2025, 4, 30, 11, 58, 33, 922900), "子块 1 执行失败: 选择执行机器人异常: 'NoneType' object has no attribute 'get'", <TaskStatus.FAILED: 2000>, 124, 1, datetime.datetime(2025, 4, 30, 11, 58, 33, 924886), 'fb6bd33a-f10b-4a73-a0aa-3b038a32f664')
2025-04-30 11:58:33,925 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:33,931 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: fb6bd33a-f10b-4a73-a0aa-3b038a32f664, 结果: False
2025-04-30 11:58:56,342 - app - INFO - 应用程序关闭中...
2025-04-30 11:58:56,343 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 11:58:56,343 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 11:58:56,343 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 11:58:56,343 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 11:58:56,343 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 11:58:56,344 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 11:58:56,344 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 11:58:56,344 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 11:58:56,344 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 11:58:56,345 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 11:58:56,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 11:58:56,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 11:58:56,346 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 11:58:56,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 11:58:56,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 11:58:56,346 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 11:58:56,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 11:58:56,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 11:58:56,346 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 11:58:56,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 11:58:56,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 11:58:56,346 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 11:58:56,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 11:58:56,346 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 11:58:56,346 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 11:58:56,348 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 11:58:56,348 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 11:58:56,348 - app - INFO - 增强版任务调度器已停止
2025-04-30 11:58:56,348 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 11:58:56,348 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 11:58:56,349 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 11:58:56,349 - data.session - INFO - 数据库连接已关闭
2025-04-30 11:58:58,557 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:58:58,621 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:58:58,623 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:58:59,334 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:58:59,402 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:58:59,404 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:58:59,472 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 11:58:59,522 - data.session - INFO - 正在初始化数据库...
2025-04-30 11:58:59,558 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 11:58:59,562 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:58:59,562 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:59,563 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:58:59,563 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:59,563 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:58:59,564 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:59,565 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:59,565 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 11:58:59,565 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:59,567 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 11:58:59,567 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:59,568 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 11:58:59,568 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:59,569 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 11:58:59,569 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:59,571 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 11:58:59,571 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:59,572 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 11:58:59,573 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:59,573 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 11:58:59,573 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:59,574 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 11:58:59,574 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:59,575 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 11:58:59,576 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:59,576 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 11:58:59,577 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:59,577 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 11:58:59,578 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:58:59,579 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:59,579 - data.session - INFO - 数据库表初始化完成
2025-04-30 11:58:59,937 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 11:58:59,937 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 11:58:59,938 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 11:58:59,938 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 11:58:59,938 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 11:58:59,938 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 11:58:59,938 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 11:58:59,938 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 11:58:59,939 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 11:58:59,939 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 11:58:59,939 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 11:58:59,940 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 11:58:59,940 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 11:58:59,941 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 11:58:59,943 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 11:58:59,943 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 11:58:59,946 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 11:58:59,948 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 11:58:59,950 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 11:58:59,954 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 11:58:59,971 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:58:59,971 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:58:59,972 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:58:59,973 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:58:59,973 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:58:59,974 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:58:59,974 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:58:59,975 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:58:59,984 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 11:58:59,985 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 11:58:59,986 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 11:58:59,992 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:58:59,997 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 11:59:00,000 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 11:59:00,002 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 11:59:00,005 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:00,007 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 11:59:00,009 - sqlalchemy.engine.Engine - INFO - [generated in 0.00124s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 11:59:00,034 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:00,035 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 11:59:00,036 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 11:59:00,036 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 11:59:00,037 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 11:59:00,042 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:59:00,043 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:00,044 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 11:59:00,047 - sqlalchemy.engine.Engine - INFO - [generated in 0.00353s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 59, 0, 4583))
2025-04-30 11:59:00,056 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:04,099 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 11:59:04,101 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:04,102 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:59:04,102 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:59:04,103 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:04,104 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:04,105 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:59:04,105 - sqlalchemy.engine.Engine - INFO - [cached since 0.002856s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:59:04,105 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:04,106 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 11:59:04,106 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 11:59:04,106 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 11:59:04,107 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:04,108 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 11:59:04,108 - sqlalchemy.engine.Engine - INFO - [generated in 0.00030s] (None, datetime.datetime(2025, 4, 30, 11, 59, 4, 108889), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 11:59:04,109 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:04,124 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:04,124 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:59:04,126 - sqlalchemy.engine.Engine - INFO - [cached since 0.02301s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:59:04,128 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:59:04,128 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] ('5464dba3-922b-41e1-88f5-aa248d496208', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 11, 59, 4, 106889), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.4", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 11, 59, 4, 128151), datetime.datetime(2025, 4, 30, 11, 59, 4, 128151), 0)
2025-04-30 11:59:04,129 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:04,137 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:04,138 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:59:04,138 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] ('5464dba3-922b-41e1-88f5-aa248d496208',)
2025-04-30 11:59:04,140 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:04,140 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 5464dba3-922b-41e1-88f5-aa248d496208 (优先级 1) 添加到队列 0
2025-04-30 11:59:04,144 - services.sync_service - INFO - 正在同步创建任务到天风系统: 5464dba3-922b-41e1-88f5-aa248d496208
2025-04-30 11:59:04,144 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"5464dba3-922b-41e1-88f5-aa248d496208","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 11:59:04","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 11:59:04,161 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 5464dba3-922b-41e1-88f5-aa248d496208, 优先级: 1
2025-04-30 11:59:04,161 - services.execution.task_executor - DEBUG - 任务 5464dba3-922b-41e1-88f5-aa248d496208 设置超时时间: 3600秒
2025-04-30 11:59:04,162 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:04,162 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:59:04,163 - sqlalchemy.engine.Engine - INFO - [cached since 0.02525s ago] ('5464dba3-922b-41e1-88f5-aa248d496208',)
2025-04-30 11:59:04,164 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:59:04,164 - sqlalchemy.engine.Engine - INFO - [cached since 0.06207s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:59:04,164 - services.sync_service - WARNING - 同步任务到系统任务失败: Token失效，请重新登录!
2025-04-30 11:59:04,165 - services.enhanced_scheduler.task_scheduler - WARNING - 同步任务到主任务系统失败: 5464dba3-922b-41e1-88f5-aa248d496208
2025-04-30 11:59:04,165 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 5464dba3-922b-41e1-88f5-aa248d496208
2025-04-30 11:59:04,167 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:59:04,167 - sqlalchemy.engine.Engine - INFO - [generated in 0.00026s] (datetime.datetime(2025, 4, 30, 11, 59, 4, 166711), datetime.datetime(2025, 4, 30, 11, 59, 4, 166711), '5464dba3-922b-41e1-88f5-aa248d496208')
2025-04-30 11:59:04,167 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0688秒
2025-04-30 11:59:04,168 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:04,174 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:04,175 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:59:04,175 - sqlalchemy.engine.Engine - INFO - [generated in 0.00027s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 59, 4, 175524), '5464dba3-922b-41e1-88f5-aa248d496208')
2025-04-30 11:59:04,176 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:04,182 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 11:59:04,184 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:04,188 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:59:04,188 - sqlalchemy.engine.Engine - INFO - [generated in 0.00088s] ('24596e65-bd03-48fd-81be-4b59b7f4e803', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '5464dba3-922b-41e1-88f5-aa248d496208', datetime.datetime(2025, 4, 30, 11, 59, 4, 182848), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 59, 4, 188426), datetime.datetime(2025, 4, 30, 11, 59, 4, 188426), 0)
2025-04-30 11:59:04,190 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:04,196 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:04,197 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:59:04,197 - sqlalchemy.engine.Engine - INFO - [generated in 0.00043s] ('24596e65-bd03-48fd-81be-4b59b7f4e803',)
2025-04-30 11:59:04,198 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 11:59:04,198 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 11:59:04,203 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:59:04,203 - sqlalchemy.engine.Engine - INFO - [generated in 0.00097s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 59, 4, 203500), '24596e65-bd03-48fd-81be-4b59b7f4e803')
2025-04-30 11:59:04,205 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:04,211 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 11:59:04,211 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 11:59:04,212 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 11:59:04,214 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:04,215 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:59:04,215 - sqlalchemy.engine.Engine - INFO - [cached since 0.02788s ago] ('a7ee2ab0-ae11-4a28-90a1-63a1c03175d1', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '5464dba3-922b-41e1-88f5-aa248d496208', datetime.datetime(2025, 4, 30, 11, 59, 4, 213477), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 59, 4, 215481), datetime.datetime(2025, 4, 30, 11, 59, 4, 215481), 0)
2025-04-30 11:59:04,217 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:04,224 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: a7ee2ab0-ae11-4a28-90a1-63a1c03175d1
2025-04-30 11:59:04,224 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:04,224 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:59:04,225 - sqlalchemy.engine.Engine - INFO - [cached since 0.0278s ago] ('a7ee2ab0-ae11-4a28-90a1-63a1c03175d1',)
2025-04-30 11:59:04,225 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 11:59:04,227 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 11:59:04,227 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:59:04,227 - sqlalchemy.engine.Engine - INFO - [cached since 0.0245s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 59, 4, 227216), 'a7ee2ab0-ae11-4a28-90a1-63a1c03175d1')
2025-04-30 11:59:04,227 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:04,235 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 11:59:04,236 - services.sync_service - INFO - 正在创建选择AMR任务: 5464dba3-922b-41e1-88f5-aa248d496208, 站点: TK01
2025-04-30 11:59:04,257 - services.sync_service - ERROR - 调用选择AMR接口失败: 401, message='Attempt to decode JSON with unexpected mimetype: text/html;charset=utf-8', url='http://192.168.189.101:8080/jeecg-boot/taskBlock'
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\sync_service.py", line 202, in create_choose_amr_task
    response_text = await response.json()
                    ^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiohttp\client_reqrep.py", line 1281, in json
    raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 401, message='Attempt to decode JSON with unexpected mimetype: text/html;charset=utf-8', url='http://192.168.189.101:8080/jeecg-boot/taskBlock'
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 759, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 309, in execute_children
    result = await handler.execute(child_block, parsed_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\robot_scheduling.py", line 627, in execute
    result = await create_choose_amr_task(
  File "D:\jsw_code\project\VWED_task\services\sync_service.py", line 215, in create_choose_amr_task
    logger.error(f"调用选择AMR接口失败: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:59:04,261 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:04,267 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:59:04,268 - sqlalchemy.engine.Engine - INFO - [generated in 0.00133s] ('9f7f9a8c-2259-4d50-90e0-dde87bb33013', 3, '{"success": false, "message": "选择执行机器人异常: \'NoneType\' object has no attribute \'get\'"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '5464dba3-922b-41e1-88f5-aa248d496208', datetime.datetime(2025, 4, 30, 11, 59, 4, 267675), datetime.datetime(2025, 4, 30, 11, 59, 4, 267675), 0)
2025-04-30 11:59:04,269 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:04,279 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人异常: 'NoneType' object has no attribute 'get'
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 759, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:59:04,282 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:04,284 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:59:04,285 - sqlalchemy.engine.Engine - INFO - [cached since 0.08772s ago] ('a7ee2ab0-ae11-4a28-90a1-63a1c03175d1',)
2025-04-30 11:59:04,286 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 11:59:04,287 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 11:59:04,290 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:59:04,293 - sqlalchemy.engine.Engine - INFO - [generated in 0.00230s] (datetime.datetime(2025, 4, 30, 11, 59, 4, 289979), "选择执行机器人异常: 'NoneType' object has no attribute 'get'", <TaskBlockRecordStatus.FAILED: 2000>, "选择执行机器人异常: 'NoneType' object has no attribute 'get'", datetime.datetime(2025, 4, 30, 11, 59, 4, 290975), 'a7ee2ab0-ae11-4a28-90a1-63a1c03175d1')
2025-04-30 11:59:04,295 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:04,303 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:04,305 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:59:04,307 - sqlalchemy.engine.Engine - INFO - [cached since 0.04097s ago] ('e5a02ce2-98ee-4e4b-8e14-9d32118fc801', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人异常: \'NoneType\' object has no attribute \'get\'", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '5464dba3-922b-41e1-88f5-aa248d496208', datetime.datetime(2025, 4, 30, 11, 59, 4, 305877), datetime.datetime(2025, 4, 30, 11, 59, 4, 305877), 0)
2025-04-30 11:59:04,309 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:04,319 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:04,321 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:59:04,322 - sqlalchemy.engine.Engine - INFO - [cached since 0.1251s ago] ('24596e65-bd03-48fd-81be-4b59b7f4e803',)
2025-04-30 11:59:04,324 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 11:59:04,325 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 11:59:04,325 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:59:04,325 - sqlalchemy.engine.Engine - INFO - [cached since 0.03481s ago] (datetime.datetime(2025, 4, 30, 11, 59, 4, 325324), "子块 1 执行失败: 选择执行机器人异常: 'NoneType' object has no attribute 'get'", <TaskBlockRecordStatus.FAILED: 2000>, "子块 1 执行失败: 选择执行机器人异常: 'NoneType' object has no attribute 'get'", datetime.datetime(2025, 4, 30, 11, 59, 4, 325324), '24596e65-bd03-48fd-81be-4b59b7f4e803')
2025-04-30 11:59:04,327 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:04,337 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:04,340 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:59:04,341 - sqlalchemy.engine.Engine - INFO - [generated in 0.00089s] (datetime.datetime(2025, 4, 30, 11, 59, 4, 335327), "子块 1 执行失败: 选择执行机器人异常: 'NoneType' object has no attribute 'get'", <TaskStatus.FAILED: 2000>, 160, 1, datetime.datetime(2025, 4, 30, 11, 59, 4, 340324), '5464dba3-922b-41e1-88f5-aa248d496208')
2025-04-30 11:59:04,342 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:04,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 5464dba3-922b-41e1-88f5-aa248d496208, 结果: False
2025-04-30 11:59:42,841 - app - INFO - 应用程序关闭中...
2025-04-30 11:59:42,842 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 11:59:42,842 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 11:59:42,843 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 11:59:42,844 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 11:59:42,844 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 11:59:42,844 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 11:59:42,844 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 11:59:42,844 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 11:59:42,844 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 11:59:42,844 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 11:59:42,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 11:59:42,844 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 11:59:42,845 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 11:59:42,845 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 11:59:42,845 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 11:59:42,845 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 11:59:42,845 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 11:59:42,845 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 11:59:42,846 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 11:59:42,846 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 11:59:42,846 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 11:59:42,846 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 11:59:42,846 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 11:59:42,846 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 11:59:42,846 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 11:59:42,847 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 11:59:42,847 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 11:59:42,847 - app - INFO - 增强版任务调度器已停止
2025-04-30 11:59:42,847 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 11:59:42,848 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 11:59:42,848 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 11:59:42,848 - data.session - INFO - 数据库连接已关闭
2025-04-30 11:59:45,888 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:59:45,947 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:59:45,948 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:59:46,650 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 11:59:46,710 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:59:46,712 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 11:59:46,780 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 11:59:46,831 - data.session - INFO - 正在初始化数据库...
2025-04-30 11:59:46,866 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 11:59:46,886 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:59:46,887 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:59:46,887 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:59:46,887 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:59:46,888 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:59:46,888 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:59:46,889 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:46,889 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 11:59:46,889 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:59:46,890 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 11:59:46,890 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:59:46,891 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 11:59:46,892 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:59:46,893 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 11:59:46,893 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:59:46,894 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 11:59:46,894 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:59:46,895 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 11:59:46,895 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:59:46,896 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 11:59:46,896 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:59:46,897 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 11:59:46,897 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:59:46,898 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 11:59:46,899 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:59:46,899 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 11:59:46,900 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:59:46,901 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 11:59:46,901 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 11:59:46,903 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:46,903 - data.session - INFO - 数据库表初始化完成
2025-04-30 11:59:47,258 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 11:59:47,259 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 11:59:47,259 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 11:59:47,259 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 11:59:47,259 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 11:59:47,260 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 11:59:47,260 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 11:59:47,260 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 11:59:47,260 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 11:59:47,261 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 11:59:47,261 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 11:59:47,261 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 11:59:47,261 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 11:59:47,263 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 11:59:47,263 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 11:59:47,263 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 11:59:47,263 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 11:59:47,264 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 11:59:47,264 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 11:59:47,264 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 11:59:47,265 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:59:47,265 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 11:59:47,266 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:59:47,266 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 11:59:47,267 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:59:47,267 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 11:59:47,267 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 11:59:47,268 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:47,277 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 11:59:47,278 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 11:59:47,279 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 11:59:47,279 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:47,280 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 11:59:47,280 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 11:59:47,280 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 11:59:47,281 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:47,282 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 11:59:47,282 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 11:59:47,283 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:47,284 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 11:59:47,284 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 11:59:47,284 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 11:59:47,284 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 11:59:47,285 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 11:59:47,285 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:47,286 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 11:59:47,286 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 10, 59, 47, 280044))
2025-04-30 11:59:47,287 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:49,630 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 11:59:49,633 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:49,634 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:59:49,634 - sqlalchemy.engine.Engine - INFO - [generated in 0.00076s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:59:49,637 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:49,639 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:49,639 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:59:49,640 - sqlalchemy.engine.Engine - INFO - [cached since 0.00515s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:59:49,640 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:49,641 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 11:59:49,641 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 11:59:49,641 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 11:59:49,642 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:49,642 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 11:59:49,643 - sqlalchemy.engine.Engine - INFO - [generated in 0.00029s] (None, datetime.datetime(2025, 4, 30, 11, 59, 49, 642051), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 11:59:49,643 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:49,651 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:49,651 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:59:49,652 - sqlalchemy.engine.Engine - INFO - [cached since 0.0171s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:59:49,654 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:59:49,655 - sqlalchemy.engine.Engine - INFO - [generated in 0.00097s] ('65e7a378-294a-4e00-bd6d-ac4b896c9422', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 11, 59, 49, 641047), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"content-type": "application/json", "user-agent": "PostmanRuntime/7.43.4", "accept": "*/*", "post ... (95 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 11, 59, 49, 654055), datetime.datetime(2025, 4, 30, 11, 59, 49, 654055), 0)
2025-04-30 11:59:49,657 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:49,664 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:49,665 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:59:49,667 - sqlalchemy.engine.Engine - INFO - [generated in 0.00155s] ('65e7a378-294a-4e00-bd6d-ac4b896c9422',)
2025-04-30 11:59:49,669 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:49,671 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 65e7a378-294a-4e00-bd6d-ac4b896c9422 (优先级 1) 添加到队列 0
2025-04-30 11:59:49,676 - services.sync_service - INFO - 正在同步创建任务到天风系统: 65e7a378-294a-4e00-bd6d-ac4b896c9422
2025-04-30 11:59:49,677 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"65e7a378-294a-4e00-bd6d-ac4b896c9422","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 11:59:49","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 11:59:49,710 - services.sync_service - WARNING - 同步任务到系统任务失败: Token失效，请重新登录!
2025-04-30 11:59:49,712 - services.enhanced_scheduler.task_scheduler - WARNING - 同步任务到主任务系统失败: 65e7a378-294a-4e00-bd6d-ac4b896c9422
2025-04-30 11:59:49,713 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 65e7a378-294a-4e00-bd6d-ac4b896c9422
2025-04-30 11:59:49,714 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.0841秒
2025-04-30 11:59:49,761 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 获取到任务: 65e7a378-294a-4e00-bd6d-ac4b896c9422, 优先级: 1
2025-04-30 11:59:49,765 - services.execution.task_executor - DEBUG - 任务 65e7a378-294a-4e00-bd6d-ac4b896c9422 设置超时时间: 3600秒
2025-04-30 11:59:49,765 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:49,767 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 11:59:49,768 - sqlalchemy.engine.Engine - INFO - [cached since 0.1021s ago] ('65e7a378-294a-4e00-bd6d-ac4b896c9422',)
2025-04-30 11:59:49,771 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 11:59:49,774 - sqlalchemy.engine.Engine - INFO - [cached since 0.1403s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 11:59:49,777 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:59:49,778 - sqlalchemy.engine.Engine - INFO - [generated in 0.00063s] (datetime.datetime(2025, 4, 30, 11, 59, 49, 776024), datetime.datetime(2025, 4, 30, 11, 59, 49, 777027), '65e7a378-294a-4e00-bd6d-ac4b896c9422')
2025-04-30 11:59:49,789 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:49,799 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:49,800 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:59:49,801 - sqlalchemy.engine.Engine - INFO - [generated in 0.00056s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 59, 49, 800422), '65e7a378-294a-4e00-bd6d-ac4b896c9422')
2025-04-30 11:59:49,802 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:49,811 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 11:59:49,812 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:49,814 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:59:49,814 - sqlalchemy.engine.Engine - INFO - [generated in 0.00061s] ('5c40e002-24a5-4bbf-9162-01877ec546c3', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '65e7a378-294a-4e00-bd6d-ac4b896c9422', datetime.datetime(2025, 4, 30, 11, 59, 49, 811048), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 59, 49, 813048), datetime.datetime(2025, 4, 30, 11, 59, 49, 813048), 0)
2025-04-30 11:59:49,815 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:49,822 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:49,824 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:59:49,825 - sqlalchemy.engine.Engine - INFO - [generated in 0.00074s] ('5c40e002-24a5-4bbf-9162-01877ec546c3',)
2025-04-30 11:59:49,826 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 11:59:49,826 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 11:59:49,827 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:59:49,828 - sqlalchemy.engine.Engine - INFO - [generated in 0.00078s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 59, 49, 827800), '5c40e002-24a5-4bbf-9162-01877ec546c3')
2025-04-30 11:59:49,829 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:49,836 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 11:59:49,836 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 11:59:49,837 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 11:59:49,838 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:49,838 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:59:49,839 - sqlalchemy.engine.Engine - INFO - [cached since 0.02611s ago] ('85f5b5de-013f-4301-a89e-b279238098e4', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '65e7a378-294a-4e00-bd6d-ac4b896c9422', datetime.datetime(2025, 4, 30, 11, 59, 49, 837192), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 11, 59, 49, 838199), datetime.datetime(2025, 4, 30, 11, 59, 49, 838199), 0)
2025-04-30 11:59:49,841 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:49,845 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 85f5b5de-013f-4301-a89e-b279238098e4
2025-04-30 11:59:49,846 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:49,846 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:59:49,847 - sqlalchemy.engine.Engine - INFO - [cached since 0.0241s ago] ('85f5b5de-013f-4301-a89e-b279238098e4',)
2025-04-30 11:59:49,848 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 11:59:49,849 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 11:59:49,849 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:59:49,849 - sqlalchemy.engine.Engine - INFO - [cached since 0.02272s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 11, 59, 49, 849815), '85f5b5de-013f-4301-a89e-b279238098e4')
2025-04-30 11:59:49,851 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:49,858 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 11:59:49,858 - services.sync_service - INFO - 正在创建选择AMR任务: 65e7a378-294a-4e00-bd6d-ac4b896c9422, 站点: TK01
2025-04-30 11:59:49,910 - services.sync_service - ERROR - 调用选择AMR接口失败: 401, message='Attempt to decode JSON with unexpected mimetype: text/html;charset=utf-8', url='http://192.168.189.101:8080/jeecg-boot/taskBlock'
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\services\sync_service.py", line 202, in create_choose_amr_task
    response_text = await response.json()
                    ^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\aiohttp\client_reqrep.py", line 1281, in json
    raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 401, message='Attempt to decode JSON with unexpected mimetype: text/html;charset=utf-8', url='http://192.168.189.101:8080/jeecg-boot/taskBlock'
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 759, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 309, in execute_children
    result = await handler.execute(child_block, parsed_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\robot_scheduling.py", line 627, in execute
    result = await create_choose_amr_task(
  File "D:\jsw_code\project\VWED_task\services\sync_service.py", line 215, in create_choose_amr_task
    logger.error(f"调用选择AMR接口失败: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:59:49,912 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:49,913 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:59:49,914 - sqlalchemy.engine.Engine - INFO - [generated in 0.00056s] ('e4b129b1-3ad2-4137-96b1-0bb6485d2e5e', 3, '{"success": false, "message": "选择执行机器人异常: \'NoneType\' object has no attribute \'get\'"}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '65e7a378-294a-4e00-bd6d-ac4b896c9422', datetime.datetime(2025, 4, 30, 11, 59, 49, 913748), datetime.datetime(2025, 4, 30, 11, 59, 49, 913748), 0)
2025-04-30 11:59:49,915 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:49,923 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人异常: 'NoneType' object has no attribute 'get'
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 759, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 11:59:49,924 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:49,924 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:59:49,925 - sqlalchemy.engine.Engine - INFO - [cached since 0.1019s ago] ('85f5b5de-013f-4301-a89e-b279238098e4',)
2025-04-30 11:59:49,927 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 11:59:49,928 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 11:59:49,928 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:59:49,929 - sqlalchemy.engine.Engine - INFO - [generated in 0.00059s] (datetime.datetime(2025, 4, 30, 11, 59, 49, 928416), "选择执行机器人异常: 'NoneType' object has no attribute 'get'", <TaskBlockRecordStatus.FAILED: 2000>, "选择执行机器人异常: 'NoneType' object has no attribute 'get'", datetime.datetime(2025, 4, 30, 11, 59, 49, 928416), '85f5b5de-013f-4301-a89e-b279238098e4')
2025-04-30 11:59:49,930 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:49,938 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:49,939 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 11:59:49,939 - sqlalchemy.engine.Engine - INFO - [cached since 0.02575s ago] ('4a0e476f-4bda-40ad-a449-8ac8c0380544', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人异常: \'NoneType\' object has no attribute \'get\'", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '65e7a378-294a-4e00-bd6d-ac4b896c9422', datetime.datetime(2025, 4, 30, 11, 59, 49, 939282), datetime.datetime(2025, 4, 30, 11, 59, 49, 939282), 0)
2025-04-30 11:59:49,941 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:49,946 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:49,946 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 11:59:49,946 - sqlalchemy.engine.Engine - INFO - [cached since 0.1231s ago] ('5c40e002-24a5-4bbf-9162-01877ec546c3',)
2025-04-30 11:59:49,947 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 11:59:49,948 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 11:59:49,948 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 11:59:49,948 - sqlalchemy.engine.Engine - INFO - [cached since 0.0204s ago] (datetime.datetime(2025, 4, 30, 11, 59, 49, 948664), "子块 1 执行失败: 选择执行机器人异常: 'NoneType' object has no attribute 'get'", <TaskBlockRecordStatus.FAILED: 2000>, "子块 1 执行失败: 选择执行机器人异常: 'NoneType' object has no attribute 'get'", datetime.datetime(2025, 4, 30, 11, 59, 49, 948664), '5c40e002-24a5-4bbf-9162-01877ec546c3')
2025-04-30 11:59:49,950 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:49,956 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 11:59:49,957 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 11:59:49,957 - sqlalchemy.engine.Engine - INFO - [generated in 0.00036s] (datetime.datetime(2025, 4, 30, 11, 59, 49, 956173), "子块 1 执行失败: 选择执行机器人异常: 'NoneType' object has no attribute 'get'", <TaskStatus.FAILED: 2000>, 156, 1, datetime.datetime(2025, 4, 30, 11, 59, 49, 957167), '65e7a378-294a-4e00-bd6d-ac4b896c9422')
2025-04-30 11:59:49,958 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 11:59:49,965 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 完成任务: 65e7a378-294a-4e00-bd6d-ac4b896c9422, 结果: False
2025-04-30 12:00:47,282 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:00:47,287 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:00:47,288 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:00:47,290 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:00:47,291 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:00:47,292 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:00:47,296 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:00:47,297 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:00:47,297 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:00:47,297 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:00:47,298 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:00:47,300 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:00:47,304 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:00:47,308 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:00:47,310 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 0, 47, 286230))
2025-04-30 12:00:47,313 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:00:47,314 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:00:47,314 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:00:47,315 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:00:47,317 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:00:47,319 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:00:47,320 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:00:47,321 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:00:47,323 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:00:47,325 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:00:47,329 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:00:47,329 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:00:47,335 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:01:02,356 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:01:02,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:01:02,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:01:02,364 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:01:02,366 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:01:02,368 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:01:47,349 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:01:47,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:01:47,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:01:47,351 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:01:47,352 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:01:47,353 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:01:47,353 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:01:47,357 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:01:47,359 - sqlalchemy.engine.Engine - INFO - [cached since 120.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 1, 47, 349140))
2025-04-30 12:01:47,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:01:47,361 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:01:47,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:01:47,363 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:01:47,365 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:01:47,365 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:01:47,366 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:01:47,368 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:01:47,369 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:01:47,372 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:01:47,373 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:01:47,375 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:01:47,379 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:01:47,380 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:01:47,380 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:01:47,383 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:01:47,385 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:01:47,387 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:01:47,393 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:02:02,414 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:02:02,414 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:02:02,415 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:02:02,415 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:02:02,415 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:02:02,415 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:02:47,412 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:02:47,413 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:02:47,413 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 2, 47, 412507))
2025-04-30 12:02:47,414 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:02:47,458 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:02:47,459 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:02:47,459 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:02:47,459 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:02:47,460 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:02:47,460 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:02:47,460 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:02:47,461 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:02:47,461 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:02:47,461 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:02:47,461 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:02:47,461 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:02:47,461 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:02:47,461 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:02:47,461 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:02:47,461 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:02:47,461 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:02:47,462 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:02:47,462 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:02:47,462 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:02:47,462 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:02:47,462 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:02:47,462 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:02:47,469 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:03:02,462 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:03:02,463 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:03:02,463 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:03:02,463 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:03:02,463 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:03:02,464 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:03:47,436 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:03:47,438 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:03:47,438 - sqlalchemy.engine.Engine - INFO - [cached since 240.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 3, 47, 436524))
2025-04-30 12:03:47,440 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:03:47,485 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:03:47,485 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:03:47,485 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:03:47,486 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:03:47,486 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:03:47,486 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:03:47,487 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:03:47,487 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:03:47,487 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:03:47,487 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:03:47,487 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:03:47,487 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:03:47,488 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:03:47,488 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:03:47,488 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:03:47,488 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:03:47,488 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:03:47,488 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:03:47,488 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:03:47,488 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:03:47,489 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:03:47,489 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:03:47,489 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:03:47,494 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:04:02,487 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:04:02,487 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:04:02,487 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:04:02,487 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:04:02,488 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:04:02,488 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:04:47,465 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:04:47,466 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:04:47,467 - sqlalchemy.engine.Engine - INFO - [cached since 300.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 4, 47, 465233))
2025-04-30 12:04:47,468 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:04:47,543 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:04:47,543 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:04:47,543 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:04:47,543 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:04:47,544 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:04:47,544 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:04:47,544 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:04:47,544 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:04:47,547 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:04:47,547 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:04:47,549 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:04:47,551 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:04:47,557 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:04:47,557 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:04:47,559 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:04:47,559 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:04:47,559 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:04:47,559 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:04:47,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:04:47,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:04:47,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:04:47,561 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:04:47,561 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:04:47,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:05:02,581 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:05:02,582 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:05:02,582 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:05:02,582 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:05:02,582 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:05:02,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:05:47,482 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:05:47,482 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:05:47,483 - sqlalchemy.engine.Engine - INFO - [cached since 360.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 5, 47, 481469))
2025-04-30 12:05:47,485 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:05:47,591 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:05:47,594 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:05:47,594 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:05:47,595 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:05:47,595 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:05:47,595 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:05:47,600 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:05:47,602 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:05:47,603 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:05:47,604 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:05:47,606 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:05:47,607 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:05:47,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:05:47,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:05:47,608 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:05:47,610 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:05:47,610 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:05:47,610 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:05:47,610 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:05:47,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:05:47,611 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:05:47,611 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:05:47,611 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:05:47,617 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:06:02,597 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:06:02,600 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:06:02,602 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:06:02,603 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:06:02,603 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:06:02,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:06:47,501 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:06:47,502 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:06:47,503 - sqlalchemy.engine.Engine - INFO - [cached since 420.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 6, 47, 501852))
2025-04-30 12:06:47,504 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:06:47,613 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:06:47,614 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:06:47,614 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:06:47,614 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:06:47,614 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:06:47,614 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:06:47,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:06:47,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:06:47,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:06:47,615 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:06:47,615 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:06:47,616 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:06:47,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:06:47,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:06:47,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:06:47,616 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:06:47,616 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:06:47,616 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:06:47,617 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:06:47,617 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:06:47,617 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:06:47,617 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:06:47,619 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:06:47,623 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:07:02,624 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:07:02,625 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:07:02,625 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:07:02,626 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:07:02,626 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:07:02,627 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:07:47,508 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:07:47,510 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:07:47,511 - sqlalchemy.engine.Engine - INFO - [cached since 480.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 7, 47, 508183))
2025-04-30 12:07:47,517 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:07:47,664 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:07:47,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:07:47,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:07:47,665 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:07:47,665 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:07:47,665 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:07:47,666 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:07:47,667 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:07:47,667 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:07:47,667 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:07:47,667 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:07:47,668 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:07:47,668 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:07:47,668 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:07:47,668 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:07:47,668 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:07:47,669 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:07:47,669 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:07:47,669 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:07:47,670 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:07:47,670 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:07:47,670 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:07:47,670 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:07:47,675 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:08:02,698 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:08:02,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:08:02,700 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:08:02,701 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:08:02,701 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:08:02,702 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:08:47,526 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:08:47,526 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:08:47,526 - sqlalchemy.engine.Engine - INFO - [cached since 540.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 8, 47, 525720))
2025-04-30 12:08:47,527 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:08:47,712 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:08:47,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:08:47,712 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:08:47,713 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:08:47,713 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:08:47,713 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:08:47,714 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:08:47,714 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:08:47,714 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:08:47,714 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:08:47,714 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:08:47,714 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:08:47,715 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:08:47,715 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:08:47,715 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:08:47,715 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:08:47,715 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:08:47,715 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:08:47,715 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:08:47,715 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:08:47,717 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:08:47,717 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:08:47,717 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:08:47,722 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:09:02,740 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:09:02,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:09:02,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:09:02,742 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:09:02,743 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:09:02,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:09:47,536 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:09:47,537 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:09:47,537 - sqlalchemy.engine.Engine - INFO - [cached since 600.3s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 9, 47, 536452))
2025-04-30 12:09:47,538 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:09:47,774 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:09:47,776 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:09:47,776 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:09:47,777 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:09:47,777 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:09:47,780 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:09:47,780 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:09:47,782 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:09:47,784 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:09:47,784 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:09:47,785 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:09:47,786 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:09:47,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:09:47,789 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:09:47,789 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:09:47,789 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:09:47,789 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:09:47,789 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:09:47,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:09:47,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:09:47,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:09:47,790 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:09:47,791 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:09:47,797 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:10:02,772 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:10:02,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:10:02,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:10:02,773 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:10:02,773 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:10:02,773 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:10:47,540 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:10:47,541 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:10:47,545 - sqlalchemy.engine.Engine - INFO - [cached since 660.3s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 10, 47, 540058))
2025-04-30 12:10:47,550 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:10:47,804 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:10:47,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:10:47,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:10:47,805 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:10:47,805 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:10:47,805 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:10:47,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:10:47,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:10:47,805 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:10:47,805 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:10:47,805 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:10:47,807 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:10:47,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:10:47,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:10:47,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:10:47,807 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:10:47,808 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:10:47,808 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:10:47,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:10:47,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:10:47,808 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:10:47,808 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:10:47,808 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:10:47,813 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:11:02,800 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:11:02,800 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:11:02,801 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:11:02,802 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:11:02,802 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:11:02,802 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:11:47,577 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:11:47,578 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:11:47,578 - sqlalchemy.engine.Engine - INFO - [cached since 720.3s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 11, 47, 577516))
2025-04-30 12:11:47,581 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:11:47,856 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:11:47,858 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:11:47,860 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:11:47,861 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:11:47,861 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:11:47,862 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:11:47,866 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:11:47,868 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:11:47,870 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:11:47,870 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:11:47,871 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:11:47,871 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:11:47,872 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:11:47,872 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:11:47,872 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:11:47,873 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:11:47,873 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:11:47,873 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:11:47,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:11:47,873 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:11:47,875 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:11:47,876 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:11:47,876 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:11:47,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:12:02,892 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:12:02,902 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:12:02,902 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:12:02,903 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:12:02,903 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:12:02,903 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:12:47,593 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:12:47,594 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:12:47,595 - sqlalchemy.engine.Engine - INFO - [cached since 780.3s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 12, 47, 593962))
2025-04-30 12:12:47,596 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:12:47,923 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:12:47,923 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:12:47,923 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:12:47,924 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:12:47,924 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:12:47,924 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:12:47,924 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:12:47,924 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:12:47,925 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:12:47,925 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:12:47,925 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:12:47,925 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:12:47,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:12:47,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:12:47,927 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:12:47,927 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:12:47,928 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:12:47,928 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:12:47,929 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:12:47,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:12:47,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:12:47,930 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:12:47,930 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:12:47,937 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:13:02,932 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:13:02,935 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:13:02,937 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:13:02,939 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:13:02,940 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:13:02,940 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:13:47,623 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:13:47,624 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:13:47,625 - sqlalchemy.engine.Engine - INFO - [cached since 840.3s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 13, 47, 623608))
2025-04-30 12:13:47,626 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:13:47,995 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:13:47,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:13:47,996 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:13:47,997 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:13:47,997 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:13:47,997 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:13:47,999 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:13:47,999 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:13:47,999 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:13:47,999 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:13:47,999 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:13:47,999 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:13:47,999 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:13:47,999 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:13:47,999 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:13:47,999 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:13:47,999 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:13:48,000 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:13:48,000 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:13:48,000 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:13:48,000 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:13:48,000 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:13:48,000 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:13:48,005 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:14:03,021 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:14:03,021 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:14:03,021 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:14:03,021 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:14:03,022 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:14:03,022 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:14:47,652 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:14:47,653 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:14:47,654 - sqlalchemy.engine.Engine - INFO - [cached since 900.4s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 14, 47, 651536))
2025-04-30 12:14:47,655 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:14:48,026 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:14:48,026 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:14:48,026 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:14:48,027 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:14:48,027 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:14:48,027 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:14:48,028 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:14:48,028 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:14:48,028 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:14:48,028 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:14:48,028 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:14:48,028 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:14:48,028 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:14:48,028 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:14:48,028 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:14:48,029 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:14:48,029 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:14:48,029 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:14:48,029 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:14:48,029 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:14:48,029 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:14:48,029 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:14:48,029 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:14:48,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:15:03,045 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:15:03,045 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:15:03,045 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:15:03,046 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:15:03,046 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:15:03,046 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:15:47,653 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:15:47,653 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:15:47,654 - sqlalchemy.engine.Engine - INFO - [cached since 960.4s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 15, 47, 652397))
2025-04-30 12:15:47,655 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:15:48,055 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:15:48,055 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:15:48,055 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:15:48,055 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:15:48,056 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:15:48,056 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:15:48,056 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:15:48,056 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:15:48,056 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:15:48,056 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:15:48,056 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:15:48,056 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:15:48,056 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:15:48,056 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:15:48,056 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:15:48,056 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:15:48,056 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:15:48,058 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:15:48,058 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:15:48,058 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:15:48,058 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:15:48,058 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:15:48,058 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:15:48,064 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:16:03,076 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:16:03,076 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:16:03,076 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:16:03,076 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:16:03,076 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:16:03,076 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:16:47,660 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:16:47,661 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:16:47,661 - sqlalchemy.engine.Engine - INFO - [cached since 1020s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 16, 47, 660656))
2025-04-30 12:16:47,663 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:16:48,081 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:16:48,082 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:16:48,082 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:16:48,082 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:16:48,082 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:16:48,082 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:16:48,083 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:16:48,083 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:16:48,083 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:16:48,083 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:16:48,084 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:16:48,084 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:16:48,085 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:16:48,085 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:16:48,085 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:16:48,085 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:16:48,085 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:16:48,086 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:16:48,086 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:16:48,086 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:16:48,086 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:16:48,086 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:16:48,086 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:16:48,092 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:17:03,096 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:17:03,099 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:17:03,099 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:17:03,100 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:17:03,102 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:17:03,104 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:17:47,666 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:17:47,668 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:17:47,668 - sqlalchemy.engine.Engine - INFO - [cached since 1080s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 17, 47, 666316))
2025-04-30 12:17:47,670 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:17:48,098 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:17:48,098 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:17:48,099 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:17:48,099 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:17:48,099 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:17:48,100 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:17:48,100 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:17:48,101 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:17:48,101 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:17:48,101 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:17:48,101 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:17:48,102 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:17:48,102 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:17:48,102 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:17:48,102 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:17:48,103 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:17:48,103 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:17:48,103 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:17:48,103 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:17:48,103 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:17:48,103 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:17:48,103 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:17:48,104 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:17:48,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:18:18,112 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:18:18,113 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:18:18,113 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:18:18,114 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:18:18,115 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:18:18,115 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:18:47,684 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:18:47,687 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:18:47,687 - sqlalchemy.engine.Engine - INFO - [cached since 1140s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 18, 47, 683310))
2025-04-30 12:18:47,689 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:18:48,104 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:18:48,106 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:18:48,107 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:18:48,108 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:18:48,109 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:18:48,109 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:18:48,110 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:18:48,112 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:18:48,114 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:18:48,116 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:18:48,118 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:18:48,125 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:19:03,137 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:19:03,138 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:19:03,138 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:19:03,138 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:19:03,139 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:19:03,139 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:19:03,140 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:19:03,140 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:19:03,140 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:19:03,140 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:19:03,141 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:19:03,141 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:19:18,149 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:19:18,150 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:19:18,150 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:19:18,151 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:19:18,151 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:19:18,152 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:19:47,721 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:19:47,723 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:19:47,725 - sqlalchemy.engine.Engine - INFO - [cached since 1201s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 19, 47, 719193))
2025-04-30 12:19:47,729 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:19:48,172 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:19:48,173 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:19:48,174 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:19:48,174 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:19:48,175 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:19:48,175 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:19:48,176 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:19:48,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:19:48,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:19:48,178 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:19:48,179 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:19:48,188 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:20:03,193 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:20:03,194 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:20:03,194 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:20:03,194 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:20:03,195 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:20:03,195 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:20:03,195 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:20:03,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:20:03,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:20:03,196 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:20:03,196 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:20:03,196 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:20:18,210 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:20:18,212 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:20:18,213 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:20:18,214 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:20:18,215 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:20:18,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:20:47,737 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:20:47,739 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:20:47,740 - sqlalchemy.engine.Engine - INFO - [cached since 1261s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 20, 47, 735283))
2025-04-30 12:20:47,742 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:20:48,239 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:20:48,240 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:20:48,240 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:20:48,240 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:20:48,240 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:20:48,241 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:20:48,242 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:20:48,242 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:20:48,243 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:20:48,243 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:20:48,243 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:20:48,249 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:21:03,228 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:21:03,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:21:03,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:21:03,232 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:21:03,232 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:21:03,232 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:21:03,232 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:21:03,232 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:21:03,232 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:21:03,232 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:21:03,232 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:21:03,232 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:21:18,248 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:21:18,254 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:21:18,256 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:21:18,258 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:21:18,260 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:21:18,260 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:21:47,754 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:21:47,755 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:21:47,757 - sqlalchemy.engine.Engine - INFO - [cached since 1321s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 21, 47, 752472))
2025-04-30 12:21:47,764 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:21:48,285 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:21:48,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:21:48,286 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:21:48,286 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:21:48,287 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:21:48,290 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:21:48,292 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:21:48,292 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:21:48,292 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:21:48,292 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:21:48,292 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:21:48,298 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:22:03,300 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:22:03,300 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:22:03,300 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:22:03,301 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:22:03,301 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:22:03,301 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:22:03,301 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:22:03,301 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:22:03,301 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:22:03,302 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:22:03,302 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:22:03,302 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:22:18,318 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:22:18,324 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:22:18,326 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:22:18,328 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:22:18,330 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:22:18,331 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:22:47,785 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:22:47,786 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:22:47,787 - sqlalchemy.engine.Engine - INFO - [cached since 1381s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 22, 47, 783118))
2025-04-30 12:22:47,791 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:22:48,349 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:22:48,350 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:22:48,354 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:22:48,356 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:22:48,357 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:22:48,358 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:22:48,363 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:22:48,365 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:22:48,365 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:22:48,365 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:22:48,366 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:22:48,372 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:23:03,369 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:23:03,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:23:03,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:23:03,371 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:23:03,371 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:23:03,371 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:23:03,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:23:03,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:23:03,371 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:23:03,372 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:23:03,372 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:23:03,372 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:23:18,393 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:23:18,393 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:23:18,394 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:23:18,394 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:23:18,394 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:23:18,394 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:23:47,777 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:23:47,779 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:23:47,781 - sqlalchemy.engine.Engine - INFO - [cached since 1441s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 23, 47, 776673))
2025-04-30 12:23:47,784 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:23:48,410 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:23:48,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:23:48,411 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:23:48,413 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:23:48,413 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:23:48,415 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:23:48,415 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:23:48,415 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:23:48,416 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:23:48,416 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:23:48,416 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:23:48,421 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:24:03,410 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:24:03,413 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:24:03,414 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:24:03,415 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:24:03,415 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:24:03,415 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:24:03,415 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:24:03,415 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:24:03,415 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:24:03,415 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:24:03,415 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:24:03,416 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:24:18,432 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:24:18,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:24:18,433 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:24:18,433 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:24:18,433 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:24:18,434 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:24:47,777 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:24:47,781 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:24:47,786 - sqlalchemy.engine.Engine - INFO - [cached since 1501s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 24, 47, 776803))
2025-04-30 12:24:47,791 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:24:48,467 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:24:48,468 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:24:48,468 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:24:48,469 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:24:48,469 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:24:48,472 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:24:48,472 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:24:48,472 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:24:48,472 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:24:48,473 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:24:48,473 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:24:48,480 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:25:03,491 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:25:03,492 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:25:03,492 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:25:03,493 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:25:03,495 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:25:03,496 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:25:03,499 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:25:03,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:25:03,503 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:25:03,504 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:25:03,504 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:25:03,504 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:25:18,518 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:25:18,518 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:25:18,519 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:25:18,519 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:25:18,520 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:25:18,520 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:25:47,806 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:25:47,809 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:25:47,810 - sqlalchemy.engine.Engine - INFO - [cached since 1561s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 25, 47, 805303))
2025-04-30 12:25:47,816 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:25:48,538 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:25:48,539 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:25:48,541 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:25:48,543 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:25:48,545 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:25:48,547 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:25:48,551 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:25:48,553 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:25:48,554 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:25:48,554 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:25:48,555 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:25:48,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:26:03,564 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:26:03,568 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:26:03,568 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:26:03,568 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:26:03,569 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:26:03,569 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:26:03,570 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:26:03,570 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:26:03,570 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:26:03,572 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:26:03,572 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:26:03,572 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:26:18,578 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:26:18,580 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:26:18,580 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:26:18,581 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:26:18,582 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:26:18,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:26:47,833 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:26:47,835 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:26:47,835 - sqlalchemy.engine.Engine - INFO - [cached since 1621s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 26, 47, 832487))
2025-04-30 12:26:47,839 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:26:48,610 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:26:48,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:26:48,612 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:26:48,612 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:26:48,614 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:26:48,614 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:26:48,614 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:26:48,614 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:26:48,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:26:48,615 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:26:48,615 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:26:48,620 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:27:03,621 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:27:03,623 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:27:03,623 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:27:03,624 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:27:03,625 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:27:03,625 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:27:03,626 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:27:03,627 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:27:03,627 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:27:03,628 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:27:03,628 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:27:03,629 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:27:18,649 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:27:18,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:27:18,652 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:27:18,654 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:27:18,656 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:27:18,658 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:27:47,846 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:27:47,846 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:27:47,847 - sqlalchemy.engine.Engine - INFO - [cached since 1681s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 27, 47, 845857))
2025-04-30 12:27:47,848 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:27:48,691 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:27:48,692 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:27:48,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:27:48,696 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:27:48,698 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:27:48,700 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:27:48,704 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:27:48,704 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:27:48,705 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:27:48,705 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:27:48,705 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:27:48,711 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:28:03,732 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:28:03,734 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:28:03,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:28:03,737 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:28:03,738 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:28:03,739 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:28:03,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:28:03,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:28:03,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:28:03,741 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:28:03,742 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:28:03,743 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:28:18,755 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:28:18,756 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:28:18,756 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:28:18,756 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:28:18,757 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:28:18,758 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:28:47,870 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:28:47,872 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:28:47,873 - sqlalchemy.engine.Engine - INFO - [cached since 1741s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 28, 47, 869527))
2025-04-30 12:28:47,876 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:28:48,783 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:28:48,784 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:28:48,785 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:28:48,785 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:28:48,785 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:28:48,786 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:28:48,786 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:28:48,786 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:28:48,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:28:48,787 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:28:48,787 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:28:48,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:29:03,784 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:29:03,785 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:29:03,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:29:03,787 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:29:03,788 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:29:03,789 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:29:03,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:29:03,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:29:03,791 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:29:03,792 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:29:03,793 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:29:03,793 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 12:39:06,561 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 12:39:06,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 12:39:06,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 12:39:06,562 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 12:39:06,562 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 12:39:06,564 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 12:39:06,564 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 12:39:06,564 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 12:39:06,564 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 12:39:06,564 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 12:39:06,564 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 12:39:06,565 - sqlalchemy.engine.Engine - INFO - [cached since 2360s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 11, 39, 6, 561903))
2025-04-30 12:39:06,565 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 12:39:06,565 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 12:39:06,565 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 12:39:06,565 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 12:39:06,565 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 12:39:06,566 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 12:39:06,566 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 12:39:06,566 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 12:39:06,566 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 12:39:06,566 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 12:39:06,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 12:39:06,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 12:39:06,567 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 12:39:06,568 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 12:39:06,568 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 12:39:06,568 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 12:39:06,568 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 12:39:06,568 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 12:39:06,568 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 12:39:06,568 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 12:39:06,569 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 12:39:06,573 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 13:38:22,607 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 13:38:22,898 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 13:38:22,969 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 13:38:22,993 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 13:38:23,010 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 13:38:23,018 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 13:38:23,030 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 13:38:23,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 13:38:23,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 13:38:23,037 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 13:38:23,040 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 13:38:23,042 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 13:38:23,043 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 13:38:23,044 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 13:38:23,044 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 13:38:23,046 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 13:38:23,047 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 13:38:23,047 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 13:38:23,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 13:38:23,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 13:38:23,048 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 13:38:23,048 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 13:38:23,049 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 13:38:23,049 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 13:38:23,051 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 13:38:23,052 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 13:38:23,052 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 13:38:23,053 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 13:38:23,053 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 13:38:23,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 13:38:23,088 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 13:38:23,089 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:38:23,090 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 13:38:23,090 - sqlalchemy.engine.Engine - INFO - [cached since 5918s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 12, 38, 22, 897503))
2025-04-30 13:38:23,091 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:39:23,086 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 13:39:23,086 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 13:39:23,086 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 13:39:23,087 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 13:39:23,087 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 13:39:23,088 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 13:39:23,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 13:39:23,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 13:39:23,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 13:39:23,089 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 13:39:23,089 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 13:39:23,089 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 13:39:23,090 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 13:39:23,090 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 13:39:23,090 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 13:39:23,090 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 13:39:23,090 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 13:39:23,090 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 13:39:23,090 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 13:39:23,091 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 13:39:23,091 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 13:39:23,091 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 13:39:23,091 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 13:39:23,091 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 13:39:23,091 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 13:39:23,091 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 13:39:23,091 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 13:39:23,092 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 13:39:23,092 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 13:39:23,099 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 13:39:23,099 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 13:39:23,100 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:39:23,101 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 13:39:23,101 - sqlalchemy.engine.Engine - INFO - [cached since 5978s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 12, 39, 23, 83402))
2025-04-30 13:39:23,103 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:39:44,551 - app - INFO - 应用程序关闭中...
2025-04-30 13:39:44,552 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 13:39:44,552 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 13:39:44,553 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 13:39:44,553 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 13:39:44,553 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 13:39:44,554 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 13:39:44,554 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 13:39:44,554 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 13:39:44,554 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 13:39:44,554 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 13:39:44,554 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 13:39:44,555 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 13:39:44,555 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 13:39:44,555 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 13:39:44,555 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 13:39:44,555 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 13:39:44,555 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 13:39:44,555 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 13:39:44,556 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 13:39:44,556 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 13:39:44,556 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 13:39:44,556 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 13:39:44,556 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 13:39:44,556 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 13:39:44,556 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 13:39:44,556 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 13:39:44,556 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 13:39:44,556 - app - INFO - 增强版任务调度器已停止
2025-04-30 13:39:44,556 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 13:39:44,557 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 13:39:44,557 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 13:39:44,558 - data.session - INFO - 数据库连接已关闭
2025-04-30 13:43:37,222 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 13:43:37,289 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 13:43:37,290 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 13:43:38,047 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 13:43:38,117 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 13:43:38,119 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 13:43:38,185 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 13:43:38,258 - data.session - INFO - 正在初始化数据库...
2025-04-30 13:43:38,272 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 13:43:38,297 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 13:43:38,297 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:43:38,298 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 13:43:38,298 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:43:38,299 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 13:43:38,299 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:43:38,299 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:43:38,300 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 13:43:38,300 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:43:38,303 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 13:43:38,303 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:43:38,304 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 13:43:38,305 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:43:38,306 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 13:43:38,306 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:43:38,308 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 13:43:38,308 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:43:38,309 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 13:43:38,309 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:43:38,310 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 13:43:38,311 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:43:38,312 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 13:43:38,312 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:43:38,314 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 13:43:38,314 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:43:38,315 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 13:43:38,315 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:43:38,316 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 13:43:38,316 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:43:38,317 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:43:38,318 - data.session - INFO - 数据库表初始化完成
2025-04-30 13:43:38,752 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 13:43:38,752 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 13:43:38,752 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 13:43:38,753 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 13:43:38,753 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 13:43:38,753 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 13:43:38,753 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 13:43:38,753 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 13:43:38,753 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 13:43:38,753 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 13:43:38,754 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 13:43:38,754 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 13:43:38,754 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 13:43:38,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 13:43:38,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 13:43:38,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 13:43:38,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 13:43:38,755 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 13:43:38,755 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 13:43:38,756 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 13:43:38,758 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 13:43:38,758 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 13:43:38,758 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 13:43:38,759 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 13:43:38,759 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 13:43:38,759 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 13:43:38,760 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:43:38,769 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 13:43:38,770 - sqlalchemy.engine.Engine - INFO - [generated in 0.00145s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 13:43:38,771 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 13:43:38,771 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:43:38,772 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 13:43:38,772 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 13:43:38,773 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 13:43:38,773 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:43:38,775 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 13:43:38,775 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 13:43:38,793 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:43:38,794 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 13:43:38,795 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 13:43:38,795 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 13:43:38,795 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 13:43:38,795 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 13:43:38,796 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:43:38,797 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 13:43:38,797 - sqlalchemy.engine.Engine - INFO - [generated in 0.00033s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 12, 43, 38, 773294))
2025-04-30 13:43:38,798 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:44:38,824 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:44:38,826 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 13:44:38,829 - sqlalchemy.engine.Engine - INFO - [cached since 60.03s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 12, 44, 38, 823182))
2025-04-30 13:44:38,833 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:45:09,776 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 13:45:09,779 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:45:09,780 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 13:45:09,780 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 13:45:09,782 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:45:09,783 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:45:09,783 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 13:45:09,783 - sqlalchemy.engine.Engine - INFO - [cached since 0.003406s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 13:45:09,784 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:45:09,785 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 13:45:09,785 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 13:45:09,785 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 13:45:09,785 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:45:09,786 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 13:45:09,787 - sqlalchemy.engine.Engine - INFO - [generated in 0.00032s] ('eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NDYyOTQyNTMsInVzZXJuYW1lIjoiYWRtaW4ifQ.Vf50cTlRpfdT800zH-s1-MtJi8KnALByKWxpsp-YyFQ', datetime.datetime(2025, 4, 30, 13, 45, 9, 786840), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 13:45:09,787 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:45:09,796 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:45:09,796 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 13:45:09,796 - sqlalchemy.engine.Engine - INFO - [cached since 0.01631s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 13:45:09,798 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 13:45:09,799 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] ('6bfcef89-a09a-41b0-9060-c04586e1a740', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 13, 45, 9, 785718), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"x-access-token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NDYyOTQyNTMsInVzZXJuYW1lIjoiY ... (248 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 13, 45, 9, 798731), datetime.datetime(2025, 4, 30, 13, 45, 9, 798731), 0)
2025-04-30 13:45:09,799 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:45:09,806 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:45:09,807 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 13:45:09,807 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] ('6bfcef89-a09a-41b0-9060-c04586e1a740',)
2025-04-30 13:45:09,808 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:45:09,809 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 6bfcef89-a09a-41b0-9060-c04586e1a740 (优先级 1) 添加到队列 0
2025-04-30 13:45:09,813 - services.sync_service - DEBUG - 使用认证令牌调用接口，令牌头: X-Access-Token
2025-04-30 13:45:09,813 - services.sync_service - INFO - 正在同步创建任务到天风系统: 6bfcef89-a09a-41b0-9060-c04586e1a740
2025-04-30 13:45:09,813 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"6bfcef89-a09a-41b0-9060-c04586e1a740","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 13:45:09","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 13:45:09,852 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 获取到任务: 6bfcef89-a09a-41b0-9060-c04586e1a740, 优先级: 1
2025-04-30 13:45:09,853 - services.execution.task_executor - DEBUG - 任务 6bfcef89-a09a-41b0-9060-c04586e1a740 设置超时时间: 3600秒
2025-04-30 13:45:09,853 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:45:09,854 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 13:45:09,854 - sqlalchemy.engine.Engine - INFO - [cached since 0.04711s ago] ('6bfcef89-a09a-41b0-9060-c04586e1a740',)
2025-04-30 13:45:09,855 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 13:45:09,856 - sqlalchemy.engine.Engine - INFO - [cached since 0.07548s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 13:45:09,857 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 13:45:09,857 - sqlalchemy.engine.Engine - INFO - [generated in 0.00063s] (datetime.datetime(2025, 4, 30, 13, 45, 9, 857012), datetime.datetime(2025, 4, 30, 13, 45, 9, 857629), '6bfcef89-a09a-41b0-9060-c04586e1a740')
2025-04-30 13:45:09,859 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:45:09,867 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:45:09,868 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 13:45:09,868 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 45, 9, 868678), '6bfcef89-a09a-41b0-9060-c04586e1a740')
2025-04-30 13:45:09,869 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:45:09,879 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 13:45:09,880 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:45:09,884 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 13:45:09,886 - sqlalchemy.engine.Engine - INFO - [generated in 0.00461s] ('16916f4c-8701-413d-8ac2-f34a743a58f6', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6bfcef89-a09a-41b0-9060-c04586e1a740', datetime.datetime(2025, 4, 30, 13, 45, 9, 879878), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 13, 45, 9, 882787), datetime.datetime(2025, 4, 30, 13, 45, 9, 882787), 0)
2025-04-30 13:45:09,891 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:45:09,899 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:45:09,902 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 13:45:09,906 - sqlalchemy.engine.Engine - INFO - [generated in 0.00423s] ('16916f4c-8701-413d-8ac2-f34a743a58f6',)
2025-04-30 13:45:09,909 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 13:45:09,910 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 13:45:09,913 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 13:45:09,916 - sqlalchemy.engine.Engine - INFO - [generated in 0.00365s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 13, 45, 9, 913802), '16916f4c-8701-413d-8ac2-f34a743a58f6')
2025-04-30 13:45:09,920 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:45:09,930 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 13:45:09,930 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 13:45:09,931 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 13:45:09,931 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:45:09,932 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 13:45:09,932 - sqlalchemy.engine.Engine - INFO - [cached since 0.05064s ago] ('997bfc10-a7f4-4d2f-a9d1-90f15b01522a', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6bfcef89-a09a-41b0-9060-c04586e1a740', datetime.datetime(2025, 4, 30, 13, 45, 9, 931794), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 13, 45, 9, 932787), datetime.datetime(2025, 4, 30, 13, 45, 9, 932787), 0)
2025-04-30 13:45:09,934 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:45:09,939 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 997bfc10-a7f4-4d2f-a9d1-90f15b01522a
2025-04-30 13:45:09,940 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:45:09,941 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 13:45:09,941 - sqlalchemy.engine.Engine - INFO - [cached since 0.03943s ago] ('997bfc10-a7f4-4d2f-a9d1-90f15b01522a',)
2025-04-30 13:45:09,944 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 13:45:09,944 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 13:45:09,945 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 13:45:09,945 - sqlalchemy.engine.Engine - INFO - [cached since 0.03253s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 13, 45, 9, 945839), '997bfc10-a7f4-4d2f-a9d1-90f15b01522a')
2025-04-30 13:45:09,946 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:45:09,953 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 13:45:09,953 - services.sync_service - INFO - 正在创建选择AMR任务: 6bfcef89-a09a-41b0-9060-c04586e1a740, 站点: TK01
2025-04-30 13:45:10,013 - services.sync_service - WARNING - 为任务选择AMR失败: 6bfcef89-a09a-41b0-9060-c04586e1a740此天风任务id不存在
2025-04-30 13:45:10,014 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:45:10,015 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 13:45:10,016 - sqlalchemy.engine.Engine - INFO - [generated in 0.00101s] ('53a37643-8823-4ade-a4c0-5b9b62d0fe56', 3, '{"success": false, "message": "选择执行机器人失败: 6bfcef89-a09a-41b0-9060-c04586e1a740此天风任务id不存在", "code": 400, "result": null, "timestamp": 1745991909403}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6bfcef89-a09a-41b0-9060-c04586e1a740', datetime.datetime(2025, 4, 30, 13, 45, 10, 15715), datetime.datetime(2025, 4, 30, 13, 45, 10, 15715), 0)
2025-04-30 13:45:10,017 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:45:10,025 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人失败: 6bfcef89-a09a-41b0-9060-c04586e1a740此天风任务id不存在
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 759, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 13:45:10,026 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:45:10,030 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 13:45:10,031 - sqlalchemy.engine.Engine - INFO - [cached since 0.1289s ago] ('997bfc10-a7f4-4d2f-a9d1-90f15b01522a',)
2025-04-30 13:45:10,032 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 13:45:10,032 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 13:45:10,033 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 13:45:10,034 - sqlalchemy.engine.Engine - INFO - [generated in 0.00155s] (datetime.datetime(2025, 4, 30, 13, 45, 10, 32255), '选择执行机器人失败: 6bfcef89-a09a-41b0-9060-c04586e1a740此天风任务id不存在', <TaskBlockRecordStatus.FAILED: 2000>, '选择执行机器人失败: 6bfcef89-a09a-41b0-9060-c04586e1a740此天风任务id不存在', datetime.datetime(2025, 4, 30, 13, 45, 10, 33253), '997bfc10-a7f4-4d2f-a9d1-90f15b01522a')
2025-04-30 13:45:10,035 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:45:10,042 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:45:10,044 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 13:45:10,046 - sqlalchemy.engine.Engine - INFO - [cached since 0.03114s ago] ('b3c11268-5a8e-4260-8064-44a075a95b26', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人失败: 6bfcef89-a09a-41b0-9060-c04586e1a740此天风任务id不存在", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '6bfcef89-a09a-41b0-9060-c04586e1a740', datetime.datetime(2025, 4, 30, 13, 45, 10, 44360), datetime.datetime(2025, 4, 30, 13, 45, 10, 44360), 0)
2025-04-30 13:45:10,047 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:45:10,053 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:45:10,054 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 13:45:10,054 - sqlalchemy.engine.Engine - INFO - [cached since 0.1522s ago] ('16916f4c-8701-413d-8ac2-f34a743a58f6',)
2025-04-30 13:45:10,055 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 13:45:10,055 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 13:45:10,056 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 13:45:10,056 - sqlalchemy.engine.Engine - INFO - [cached since 0.02333s ago] (datetime.datetime(2025, 4, 30, 13, 45, 10, 55350), '子块 1 执行失败: 选择执行机器人失败: 6bfcef89-a09a-41b0-9060-c04586e1a740此天风任务id不存在', <TaskBlockRecordStatus.FAILED: 2000>, '子块 1 执行失败: 选择执行机器人失败: 6bfcef89-a09a-41b0-9060-c04586e1a740此天风任务id不存在', datetime.datetime(2025, 4, 30, 13, 45, 10, 56351), '16916f4c-8701-413d-8ac2-f34a743a58f6')
2025-04-30 13:45:10,057 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:45:10,064 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:45:10,068 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 13:45:10,073 - sqlalchemy.engine.Engine - INFO - [generated in 0.00552s] (datetime.datetime(2025, 4, 30, 13, 45, 10, 63252), '子块 1 执行失败: 选择执行机器人失败: 6bfcef89-a09a-41b0-9060-c04586e1a740此天风任务id不存在', <TaskStatus.FAILED: 2000>, 196, 1, datetime.datetime(2025, 4, 30, 13, 45, 10, 68551), '6bfcef89-a09a-41b0-9060-c04586e1a740')
2025-04-30 13:45:10,074 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:45:10,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 完成任务: 6bfcef89-a09a-41b0-9060-c04586e1a740, 结果: False
2025-04-30 13:45:10,091 - services.sync_service - INFO - 成功同步任务到系统任务: 6bfcef89-a09a-41b0-9060-c04586e1a740
2025-04-30 13:45:10,091 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 6bfcef89-a09a-41b0-9060-c04586e1a740
2025-04-30 13:45:10,091 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 6bfcef89-a09a-41b0-9060-c04586e1a740
2025-04-30 13:45:10,091 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.3147秒
2025-04-30 13:45:38,841 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:45:38,845 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 13:45:38,849 - sqlalchemy.engine.Engine - INFO - [cached since 120.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 12, 45, 38, 840145))
2025-04-30 13:45:38,854 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:46:38,874 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:46:38,875 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 13:46:38,875 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 12, 46, 38, 872636))
2025-04-30 13:46:38,876 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:47:38,881 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:47:38,881 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 13:47:38,881 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 12, 47, 38, 880598))
2025-04-30 13:47:38,883 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:48:38,884 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:48:38,884 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 13:48:38,884 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 12, 48, 38, 884079))
2025-04-30 13:48:38,888 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:48:59,027 - app - INFO - 应用程序关闭中...
2025-04-30 13:48:59,028 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 13:48:59,028 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 13:48:59,029 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 13:48:59,029 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 13:48:59,029 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 13:48:59,029 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 13:48:59,029 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 13:48:59,031 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 13:48:59,031 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 13:48:59,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 13:48:59,032 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 13:48:59,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 13:48:59,032 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 13:48:59,033 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 13:48:59,033 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 13:48:59,033 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 13:48:59,033 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 13:48:59,033 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 13:48:59,033 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 13:48:59,034 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 13:48:59,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 13:48:59,036 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 13:48:59,037 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 13:48:59,037 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 13:48:59,037 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 13:48:59,038 - app - INFO - 增强版任务调度器已停止
2025-04-30 13:48:59,038 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 13:48:59,038 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 13:48:59,039 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 13:48:59,040 - data.session - INFO - 数据库连接已关闭
2025-04-30 13:49:00,829 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 13:49:00,908 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 13:49:00,910 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 13:49:01,610 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 13:49:01,669 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 13:49:01,672 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 13:49:01,731 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 13:49:01,780 - data.session - INFO - 正在初始化数据库...
2025-04-30 13:49:01,810 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 13:49:01,830 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 13:49:01,830 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:49:01,831 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 13:49:01,831 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:49:01,831 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 13:49:01,831 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:49:01,832 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:49:01,832 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 13:49:01,832 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:49:01,833 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 13:49:01,834 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:49:01,835 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 13:49:01,835 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:49:01,836 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 13:49:01,836 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:49:01,837 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 13:49:01,837 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:49:01,838 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 13:49:01,838 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:49:01,839 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 13:49:01,840 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:49:01,840 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 13:49:01,841 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:49:01,841 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 13:49:01,842 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:49:01,842 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 13:49:01,843 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:49:01,844 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 13:49:01,844 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:49:01,845 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:49:01,845 - data.session - INFO - 数据库表初始化完成
2025-04-30 13:49:02,218 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 13:49:02,223 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 13:49:02,223 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 13:49:02,224 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 13:49:02,224 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 13:49:02,225 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 13:49:02,225 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 13:49:02,225 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 13:49:02,226 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 13:49:02,231 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 13:49:02,232 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 13:49:02,233 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 13:49:02,233 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 13:49:02,234 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 13:49:02,234 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 13:49:02,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 13:49:02,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 13:49:02,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 13:49:02,236 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 13:49:02,250 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 13:49:02,251 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 13:49:02,251 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 13:49:02,253 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 13:49:02,256 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 13:49:02,259 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 13:49:02,259 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 13:49:02,260 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:49:02,273 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 13:49:02,273 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 13:49:02,274 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 13:49:02,275 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:49:02,275 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 13:49:02,276 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 13:49:02,276 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 13:49:02,277 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:49:02,279 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 13:49:02,279 - sqlalchemy.engine.Engine - INFO - [generated in 0.00037s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 13:49:02,280 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:49:02,281 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 13:49:02,281 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 13:49:02,282 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 13:49:02,282 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 13:49:02,282 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 13:49:02,283 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:49:02,283 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 13:49:02,283 - sqlalchemy.engine.Engine - INFO - [generated in 0.00054s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 12, 49, 2, 277107))
2025-04-30 13:49:02,284 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:49:07,986 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 13:49:07,988 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:49:07,989 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 13:49:07,990 - sqlalchemy.engine.Engine - INFO - [generated in 0.00067s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 13:49:07,991 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:49:07,992 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:49:07,993 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 13:49:07,993 - sqlalchemy.engine.Engine - INFO - [cached since 0.003592s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 13:49:07,993 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:49:07,994 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 13:49:07,994 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 13:49:07,994 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 13:49:07,995 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:49:07,996 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 13:49:07,996 - sqlalchemy.engine.Engine - INFO - [generated in 0.00028s] ('eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NDYyOTQyNTMsInVzZXJuYW1lIjoiYWRtaW4ifQ.Vf50cTlRpfdT800zH-s1-MtJi8KnALByKWxpsp-YyFQ', datetime.datetime(2025, 4, 30, 13, 49, 7, 995309), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 13:49:07,997 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:49:08,003 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:49:08,003 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 13:49:08,003 - sqlalchemy.engine.Engine - INFO - [cached since 0.0146s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 13:49:08,005 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 13:49:08,006 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] ('7d36cb9e-a22d-4962-b3db-1603890eb6a6', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 13, 49, 7, 994336), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"x-access-token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NDYyOTQyNTMsInVzZXJuYW1lIjoiY ... (248 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 13, 49, 8, 5763), datetime.datetime(2025, 4, 30, 13, 49, 8, 5763), 0)
2025-04-30 13:49:08,007 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:49:08,014 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:49:08,015 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 13:49:08,015 - sqlalchemy.engine.Engine - INFO - [generated in 0.00041s] ('7d36cb9e-a22d-4962-b3db-1603890eb6a6',)
2025-04-30 13:49:08,017 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:49:08,017 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 7d36cb9e-a22d-4962-b3db-1603890eb6a6 (优先级 1) 添加到队列 0
2025-04-30 13:49:08,020 - services.sync_service - DEBUG - 使用认证令牌调用接口，令牌头: X-Access-Token
2025-04-30 13:49:08,020 - services.sync_service - INFO - 正在同步创建任务到天风系统: 7d36cb9e-a22d-4962-b3db-1603890eb6a6
2025-04-30 13:49:08,020 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"7d36cb9e-a22d-4962-b3db-1603890eb6a6","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 13:49:08","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 13:49:08,038 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 获取到任务: 7d36cb9e-a22d-4962-b3db-1603890eb6a6, 优先级: 1
2025-04-30 13:49:08,039 - services.execution.task_executor - DEBUG - 任务 7d36cb9e-a22d-4962-b3db-1603890eb6a6 设置超时时间: 3600秒
2025-04-30 13:49:08,039 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:49:08,040 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 13:49:08,040 - sqlalchemy.engine.Engine - INFO - [cached since 0.02554s ago] ('7d36cb9e-a22d-4962-b3db-1603890eb6a6',)
2025-04-30 13:49:08,041 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 13:49:08,042 - sqlalchemy.engine.Engine - INFO - [cached since 0.0529s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 13:49:08,043 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 13:49:08,044 - sqlalchemy.engine.Engine - INFO - [generated in 0.00051s] (datetime.datetime(2025, 4, 30, 13, 49, 8, 43700), datetime.datetime(2025, 4, 30, 13, 49, 8, 43700), '7d36cb9e-a22d-4962-b3db-1603890eb6a6')
2025-04-30 13:49:08,045 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:49:08,052 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:49:08,053 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 13:49:08,053 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 49, 8, 52859), '7d36cb9e-a22d-4962-b3db-1603890eb6a6')
2025-04-30 13:49:08,054 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:49:08,060 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 13:49:08,062 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:49:08,064 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 13:49:08,064 - sqlalchemy.engine.Engine - INFO - [generated in 0.00044s] ('23f524b1-bfa9-4fb2-bc28-760b14acbe69', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '7d36cb9e-a22d-4962-b3db-1603890eb6a6', datetime.datetime(2025, 4, 30, 13, 49, 8, 61861), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 13, 49, 8, 63857), datetime.datetime(2025, 4, 30, 13, 49, 8, 63857), 0)
2025-04-30 13:49:08,065 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:49:08,071 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:49:08,077 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 13:49:08,078 - sqlalchemy.engine.Engine - INFO - [generated in 0.00135s] ('23f524b1-bfa9-4fb2-bc28-760b14acbe69',)
2025-04-30 13:49:08,080 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 13:49:08,083 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 13:49:08,085 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 13:49:08,086 - sqlalchemy.engine.Engine - INFO - [generated in 0.00173s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 13, 49, 8, 85093), '23f524b1-bfa9-4fb2-bc28-760b14acbe69')
2025-04-30 13:49:08,088 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:49:08,097 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 13:49:08,098 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 13:49:08,100 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 13:49:08,101 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:49:08,102 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 13:49:08,103 - sqlalchemy.engine.Engine - INFO - [cached since 0.03842s ago] ('08f6c32f-f4b1-4704-92be-23aa1cff2595', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '7d36cb9e-a22d-4962-b3db-1603890eb6a6', datetime.datetime(2025, 4, 30, 13, 49, 8, 100040), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 13, 49, 8, 102091), datetime.datetime(2025, 4, 30, 13, 49, 8, 102091), 0)
2025-04-30 13:49:08,105 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:49:08,114 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: 08f6c32f-f4b1-4704-92be-23aa1cff2595
2025-04-30 13:49:08,114 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:49:08,115 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 13:49:08,116 - sqlalchemy.engine.Engine - INFO - [cached since 0.03908s ago] ('08f6c32f-f4b1-4704-92be-23aa1cff2595',)
2025-04-30 13:49:08,120 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 13:49:08,121 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 13:49:08,122 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 13:49:08,123 - sqlalchemy.engine.Engine - INFO - [cached since 0.03846s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 13, 49, 8, 122421), '08f6c32f-f4b1-4704-92be-23aa1cff2595')
2025-04-30 13:49:08,126 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:49:08,132 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 13:49:08,132 - services.sync_service - INFO - 正在创建选择AMR任务: 7d36cb9e-a22d-4962-b3db-1603890eb6a6, 站点: TK01
2025-04-30 13:49:08,219 - services.sync_service - INFO - 成功同步任务到系统任务: 7d36cb9e-a22d-4962-b3db-1603890eb6a6
2025-04-30 13:49:08,219 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 7d36cb9e-a22d-4962-b3db-1603890eb6a6
2025-04-30 13:49:08,220 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 7d36cb9e-a22d-4962-b3db-1603890eb6a6
2025-04-30 13:49:08,221 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.2361秒
2025-04-30 13:49:08,336 - services.sync_service - WARNING - 为任务选择AMR失败: 
### Error updating database.  Cause: java.sql.SQLSyntaxErrorException: Unknown column 'amr_name' in 'field list'
### The error may exist in org/jeecg/modules/robotcs/task/mapper/TaskBlockMapper.java (best guess)
### The error may involve org.jeecg.modules.robotcs.task.mapper.TaskBlockMapper.insert-Inline
### The error occurred while setting parameters
### SQL: INSERT INTO vwed_task_block (id, task_id, tenant_id, station_id, appoint_amr_id, appoint_amr_group_id, amr_id, amr_name, priority, closure, create_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
### Cause: java.sql.SQLSyntaxErrorException: Unknown column 'amr_name' in 'field list'
; bad SQL grammar []
2025-04-30 13:49:08,339 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:49:08,340 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 13:49:08,341 - sqlalchemy.engine.Engine - INFO - [generated in 0.00046s] ('ba4e4ef7-af2d-422b-8d3d-0aabc79dc4fe', 3, '{"success": false, "message": "选择执行机器人失败: \\n### Error updating database.  Cause: java.sql.SQLSyntaxErrorException: Unknown column \'amr_name\' in \' ... (490 characters truncated) ... SyntaxErrorException: Unknown column \'amr_name\' in \'field list\'\\n; bad SQL grammar []", "code": 500, "result": null, "timestamp": 1745992147729}', 1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '7d36cb9e-a22d-4962-b3db-1603890eb6a6', datetime.datetime(2025, 4, 30, 13, 49, 8, 340025), datetime.datetime(2025, 4, 30, 13, 49, 8, 340025), 0)
2025-04-30 13:49:08,342 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:49:08,352 - services.execution.block_executor - ERROR - 子块 1 执行失败: 选择执行机器人失败: 
### Error updating database.  Cause: java.sql.SQLSyntaxErrorException: Unknown column 'amr_name' in 'field list'
### The error may exist in org/jeecg/modules/robotcs/task/mapper/TaskBlockMapper.java (best guess)
### The error may involve org.jeecg.modules.robotcs.task.mapper.TaskBlockMapper.insert-Inline
### The error occurred while setting parameters
### SQL: INSERT INTO vwed_task_block (id, task_id, tenant_id, station_id, appoint_amr_id, appoint_amr_group_id, amr_id, amr_name, priority, closure, create_time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
### Cause: java.sql.SQLSyntaxErrorException: Unknown column 'amr_name' in 'field list'
; bad SQL grammar []
NoneType: None
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\site-packages\uvicorn\server.py", line 66, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 195, in run
    return runner.run(main)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 678, in run_until_complete
    self.run_forever()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 645, in run_forever
    self._run_once()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\base_events.py", line 1999, in _run_once
    handle._run()
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jsw_code\project\VWED_task\services\enhanced_scheduler\task_scheduler.py", line 759, in _worker
    result = await executor.execute()
  File "D:\jsw_code\project\VWED_task\services\execution\task_executor.py", line 154, in execute
    result = await asyncio.wait_for(
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\asyncio\tasks.py", line 520, in wait_for
    return await fut
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 103, in execute_block
    result = await handler.execute(block, input_params, self.task_context)
  File "D:\jsw_code\project\VWED_task\services\execution\handlers\core.py", line 37, in execute
    result = await executor.execute_children(block)
  File "D:\jsw_code\project\VWED_task\services\execution\block_executor.py", line 329, in execute_children
    logger.error(f"子块 {child_id} 执行失败: {result.get('message', '未知错误')}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 13:49:08,352 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:49:08,353 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 13:49:08,353 - sqlalchemy.engine.Engine - INFO - [cached since 0.2762s ago] ('08f6c32f-f4b1-4704-92be-23aa1cff2595',)
2025-04-30 13:49:08,354 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 13:49:08,354 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 13:49:08,354 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 13:49:08,355 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] (datetime.datetime(2025, 4, 30, 13, 49, 8, 354022), "选择执行机器人失败: \n### Error updating database.  Cause: java.sql.SQLSyntaxErrorException: Unknown column 'amr_name' in 'field list'\n### The error may exis ... (385 characters truncated) ... ALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\n### Cause: java.sql.SQLSyntaxErrorException: Unknown column 'amr_name' in 'field list'\n; bad SQL grammar []", <TaskBlockRecordStatus.FAILED: 2000>, "选择执行机器人失败: \n### Error updating database.  Cause: java.sql.SQLSyntaxErrorException: Unknown column 'amr_name' in 'field list'\n### The error may exis ... (385 characters truncated) ... ALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\n### Cause: java.sql.SQLSyntaxErrorException: Unknown column 'amr_name' in 'field list'\n; bad SQL grammar []", datetime.datetime(2025, 4, 30, 13, 49, 8, 354022), '08f6c32f-f4b1-4704-92be-23aa1cff2595')
2025-04-30 13:49:08,356 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:49:08,362 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:49:08,362 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_tasklog (id, level, message, task_block_id, task_id, task_record_id, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 13:49:08,362 - sqlalchemy.engine.Engine - INFO - [cached since 0.02269s ago] ('151ab9cf-e811-49c8-a18f-b6064a027a2a', 3, '{"success": false, "message": "子块 1 执行失败: 选择执行机器人失败: \\n### Error updating database.  Cause: java.sql.SQLSyntaxErrorException: Unknown column \'amr_n ... (473 characters truncated) ... ?)\\n### Cause: java.sql.SQLSyntaxErrorException: Unknown column \'amr_name\' in \'field list\'\\n; bad SQL grammar []", "block_id": 1, "output": {}}', -1, '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '7d36cb9e-a22d-4962-b3db-1603890eb6a6', datetime.datetime(2025, 4, 30, 13, 49, 8, 362099), datetime.datetime(2025, 4, 30, 13, 49, 8, 362099), 0)
2025-04-30 13:49:08,363 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:49:08,370 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:49:08,370 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 13:49:08,370 - sqlalchemy.engine.Engine - INFO - [cached since 0.2942s ago] ('23f524b1-bfa9-4fb2-bc28-760b14acbe69',)
2025-04-30 13:49:08,370 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 13:49:08,372 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 13:49:08,372 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET ended_on=%s, ended_reason=%s, status=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 13:49:08,372 - sqlalchemy.engine.Engine - INFO - [cached since 0.01829s ago] (datetime.datetime(2025, 4, 30, 13, 49, 8, 372081), "子块 1 执行失败: 选择执行机器人失败: \n### Error updating database.  Cause: java.sql.SQLSyntaxErrorException: Unknown column 'amr_name' in 'field list'\n### The err ... (396 characters truncated) ... ALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\n### Cause: java.sql.SQLSyntaxErrorException: Unknown column 'amr_name' in 'field list'\n; bad SQL grammar []", <TaskBlockRecordStatus.FAILED: 2000>, "子块 1 执行失败: 选择执行机器人失败: \n### Error updating database.  Cause: java.sql.SQLSyntaxErrorException: Unknown column 'amr_name' in 'field list'\n### The err ... (396 characters truncated) ... ALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\n### Cause: java.sql.SQLSyntaxErrorException: Unknown column 'amr_name' in 'field list'\n; bad SQL grammar []", datetime.datetime(2025, 4, 30, 13, 49, 8, 372081), '23f524b1-bfa9-4fb2-bc28-760b14acbe69')
2025-04-30 13:49:08,373 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:49:08,380 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:49:08,381 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_on=%s, ended_reason=%s, status=%s, executor_time=%s, allow_restart_same_location=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 13:49:08,382 - sqlalchemy.engine.Engine - INFO - [generated in 0.00070s] (datetime.datetime(2025, 4, 30, 13, 49, 8, 380098), "子块 1 执行失败: 选择执行机器人失败: \n### Error updating database.  Cause: java.sql.SQLSyntaxErrorException: Unknown column 'amr_name' in 'field list'\n### The err ... (396 characters truncated) ... ALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\n### Cause: java.sql.SQLSyntaxErrorException: Unknown column 'amr_name' in 'field list'\n; bad SQL grammar []", <TaskStatus.FAILED: 2000>, 328, 1, datetime.datetime(2025, 4, 30, 13, 49, 8, 381109), '7d36cb9e-a22d-4962-b3db-1603890eb6a6')
2025-04-30 13:49:08,383 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:49:08,389 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 完成任务: 7d36cb9e-a22d-4962-b3db-1603890eb6a6, 结果: False
2025-04-30 13:50:02,300 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:50:02,302 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 13:50:02,303 - sqlalchemy.engine.Engine - INFO - [cached since 60.02s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 12, 50, 2, 299171))
2025-04-30 13:50:02,304 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:51:02,318 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:51:02,321 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 13:51:02,323 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 12, 51, 2, 318630))
2025-04-30 13:51:02,329 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:52:02,341 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:52:02,341 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 13:52:02,341 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 12, 52, 2, 341339))
2025-04-30 13:52:02,341 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:53:02,340 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:53:02,340 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 13:53:02,340 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 12, 53, 2, 340178))
2025-04-30 13:53:02,340 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:54:02,354 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:54:02,354 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 13:54:02,354 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 12, 54, 2, 354273))
2025-04-30 13:54:02,354 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:55:02,350 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:55:02,350 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 13:55:02,351 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 12, 55, 2, 348978))
2025-04-30 13:55:02,354 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:56:02,353 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:56:02,354 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 13:56:02,354 - sqlalchemy.engine.Engine - INFO - [cached since 420.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 12, 56, 2, 353434))
2025-04-30 13:56:02,354 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:57:02,360 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:57:02,360 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 13:57:02,360 - sqlalchemy.engine.Engine - INFO - [cached since 480.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 12, 57, 2, 360936))
2025-04-30 13:57:02,360 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:57:02,555 - app - INFO - 应用程序关闭中...
2025-04-30 13:57:02,555 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 13:57:02,555 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 13:57:02,555 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 13:57:02,555 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 13:57:02,555 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 13:57:02,571 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 13:57:02,571 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 13:57:02,571 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 13:57:02,571 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 13:57:02,571 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 13:57:02,571 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 13:57:02,571 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 13:57:02,571 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 13:57:02,571 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 3
2025-04-30 13:57:02,571 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 13:57:02,571 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 13:57:02,571 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 2
2025-04-30 13:57:02,571 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 13:57:02,571 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 13:57:02,571 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 1
2025-04-30 13:57:02,571 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 13:57:02,571 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 13:57:02,571 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 0
2025-04-30 13:57:02,571 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 13:57:02,571 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 13:57:02,571 - app - INFO - 增强版任务调度器已停止
2025-04-30 13:57:02,571 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 13:57:02,571 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 13:57:02,571 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 13:57:02,571 - data.session - INFO - 数据库连接已关闭
2025-04-30 13:57:03,779 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 13:57:03,822 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 13:57:03,838 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 13:57:03,886 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 13:57:03,940 - data.session - INFO - 正在初始化数据库...
2025-04-30 13:57:03,984 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 13:57:04,006 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 13:57:04,006 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:57:04,006 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 13:57:04,006 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:57:04,006 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 13:57:04,006 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:57:04,006 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:57:04,006 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 13:57:04,006 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:57:04,006 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 13:57:04,006 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:57:04,006 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 13:57:04,006 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:57:04,006 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 13:57:04,006 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:57:04,006 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 13:57:04,006 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:57:04,006 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 13:57:04,006 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:57:04,006 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 13:57:04,006 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:57:04,006 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 13:57:04,006 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:57:04,022 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 13:57:04,022 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:57:04,022 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 13:57:04,022 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:57:04,022 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 13:57:04,022 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 13:57:04,022 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:57:04,022 - data.session - INFO - 数据库表初始化完成
2025-04-30 13:57:04,356 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 13:57:04,356 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 13:57:04,356 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 13:57:04,356 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 13:57:04,356 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 13:57:04,356 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 13:57:04,356 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 13:57:04,356 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 13:57:04,356 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 13:57:04,356 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 13:57:04,368 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 13:57:04,371 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 13:57:04,373 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 13:57:04,373 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 13:57:04,373 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 13:57:04,376 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 13:57:04,376 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 13:57:04,376 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 13:57:04,380 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务启动
2025-04-30 13:57:04,380 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 13:57:04,403 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 13:57:04,405 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 13:57:04,405 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 13:57:04,407 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 13:57:04,407 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 13:57:04,416 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 13:57:04,419 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 13:57:04,420 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:57:04,420 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 13:57:04,429 - sqlalchemy.engine.Engine - INFO - [generated in 0.00067s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 13:57:04,429 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 13:57:04,429 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:57:04,435 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 13:57:04,435 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 13:57:04,435 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 13:57:04,435 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:57:04,440 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 13:57:04,440 - sqlalchemy.engine.Engine - INFO - [generated in 0.00038s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 13:57:04,452 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:57:04,452 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 13:57:04,452 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 13:57:04,459 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 13:57:04,459 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 13:57:04,459 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 13:57:04,459 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:57:04,459 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 13:57:04,459 - sqlalchemy.engine.Engine - INFO - [generated in 0.00196s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 12, 57, 4, 435726))
2025-04-30 13:57:04,464 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:58:04,396 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 13:58:04,397 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 13:58:04,397 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 13:58:04,397 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 13:58:04,397 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 13:58:04,398 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 13:58:04,398 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 13:58:04,398 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 13:58:04,399 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 13:58:04,399 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 13:58:04,399 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 13:58:04,399 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 13:58:04,399 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 13:58:04,401 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 13:58:04,401 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 13:58:04,401 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 13:58:04,401 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 13:58:04,401 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 13:58:04,402 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 13:58:04,402 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 13:58:04,402 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 13:58:04,402 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 13:58:04,402 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 13:58:04,403 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 13:58:04,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 13:58:04,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 13:58:04,403 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 13:58:04,403 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 13:58:04,403 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 13:58:04,408 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 13:58:04,458 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:58:04,459 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 13:58:04,459 - sqlalchemy.engine.Engine - INFO - [cached since 60s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 12, 58, 4, 457785))
2025-04-30 13:58:04,460 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:59:04,449 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 13:59:04,450 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 13:59:04,450 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 13:59:04,451 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 13:59:04,451 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 13:59:04,451 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 13:59:04,452 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 13:59:04,454 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 13:59:04,463 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 12, 59, 4, 449157))
2025-04-30 13:59:04,471 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 13:59:04,475 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 13:59:04,479 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 13:59:04,479 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 13:59:04,479 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 13:59:04,480 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 13:59:04,480 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 13:59:04,480 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 13:59:04,480 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 13:59:04,480 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 13:59:04,481 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 13:59:04,481 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 13:59:04,483 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 13:59:04,485 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 13:59:04,489 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 13:59:04,492 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 13:59:04,494 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 13:59:04,494 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 13:59:04,494 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 13:59:04,494 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 13:59:04,495 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 13:59:04,495 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 13:59:04,495 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 13:59:04,495 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 13:59:04,502 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:00:04,520 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:00:04,520 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:00:04,521 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:00:04,521 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:00:04,521 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:00:04,521 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:00:04,521 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:00:04,521 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:00:04,521 - sqlalchemy.engine.Engine - INFO - [cached since 180.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 0, 4, 519456))
2025-04-30 14:00:04,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:00:04,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:00:04,523 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:00:04,523 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:00:04,523 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:00:04,523 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:00:04,524 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:00:04,524 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:00:04,524 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:00:04,524 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:00:04,524 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:00:04,525 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:00:04,525 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:00:04,525 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:00:04,525 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:00:04,525 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:00:04,525 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:00:04,525 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:00:04,525 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:00:04,525 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:00:04,525 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:00:04,525 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:00:04,525 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:00:04,525 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:00:04,531 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:01:04,529 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:01:04,530 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:01:04,531 - sqlalchemy.engine.Engine - INFO - [cached since 240.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 1, 4, 526952))
2025-04-30 14:01:04,534 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:01:04,557 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:01:04,557 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:01:04,557 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:01:04,558 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:01:04,558 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:01:04,558 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:01:04,559 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:01:04,559 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:01:04,559 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:01:04,559 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:01:04,559 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:01:04,560 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:01:04,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:01:04,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:01:04,560 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:01:04,561 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:01:04,561 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:01:04,562 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:01:04,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:01:04,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:01:04,562 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:01:04,562 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:01:04,562 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:01:04,562 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:01:04,563 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:01:04,563 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:01:04,563 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:01:04,563 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:01:04,563 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:01:04,569 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:02:04,544 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:02:04,544 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:02:04,544 - sqlalchemy.engine.Engine - INFO - [cached since 300.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 2, 4, 543431))
2025-04-30 14:02:04,544 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:02:04,578 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:02:04,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:02:04,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:02:04,578 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:02:04,578 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:02:04,578 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:02:04,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:02:04,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:02:04,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:02:04,578 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:02:04,578 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:02:04,578 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:02:04,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:02:04,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:02:04,578 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:02:04,578 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:02:04,578 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:02:04,584 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:02:04,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:02:04,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:02:04,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:02:04,584 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:02:04,584 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:02:04,584 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:02:04,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:02:04,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:02:04,584 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:02:04,584 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:02:04,584 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:02:04,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:03:04,550 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:03:04,550 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:03:04,550 - sqlalchemy.engine.Engine - INFO - [cached since 360.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 3, 4, 550559))
2025-04-30 14:03:04,550 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:03:04,600 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:03:04,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:03:04,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:03:04,601 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:03:04,601 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:03:04,601 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:03:04,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:03:04,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:03:04,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:03:04,601 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:03:04,601 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:03:04,601 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:03:04,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:03:04,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:03:04,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:03:04,601 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:03:04,601 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:03:04,601 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:03:04,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:03:04,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:03:04,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:03:04,601 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:03:04,601 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:03:04,601 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:03:04,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:03:04,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:03:04,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:03:04,601 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:03:04,601 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:03:04,616 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:04:04,569 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:04:04,570 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:04:04,570 - sqlalchemy.engine.Engine - INFO - [cached since 420.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 4, 4, 569647))
2025-04-30 14:04:04,572 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:04:04,653 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:04:04,653 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:04:04,653 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:04:04,653 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:04:04,653 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:04:04,654 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:04:04,654 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:04:04,654 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:04:04,654 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:04:04,654 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:04:04,654 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:04:04,654 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:04:04,654 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:04:04,654 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:04:04,654 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:04:04,654 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:04:04,654 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:04:04,654 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:04:04,654 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:04:04,654 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:04:04,654 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:04:04,654 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:04:04,654 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:04:04,654 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:04:04,654 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:04:04,654 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:04:04,654 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:04:04,654 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:04:04,654 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:04:04,654 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:05:04,572 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:05:04,572 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:05:04,573 - sqlalchemy.engine.Engine - INFO - [cached since 480.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 5, 4, 571920))
2025-04-30 14:05:04,573 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:05:04,656 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:05:04,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:05:04,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:05:04,657 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:05:04,657 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:05:04,657 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:05:04,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:05:04,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:05:04,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:05:04,657 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:05:04,657 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:05:04,657 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:05:04,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:05:04,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:05:04,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:05:04,657 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:05:04,657 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:05:04,657 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:05:04,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:05:04,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:05:04,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:05:04,657 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:05:04,657 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:05:04,657 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:05:04,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:05:04,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:05:04,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:05:04,657 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:05:04,657 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:05:04,657 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:06:04,565 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:06:04,565 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:06:04,565 - sqlalchemy.engine.Engine - INFO - [cached since 540.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 6, 4, 565031))
2025-04-30 14:06:04,565 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:06:04,663 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:06:04,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:06:04,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:06:04,664 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:06:04,664 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:06:04,664 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:06:04,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:06:04,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:06:04,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:06:04,664 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:06:04,664 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:06:04,664 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:06:04,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:06:04,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:06:04,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:06:04,664 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:06:04,664 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:06:04,664 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:06:04,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:06:04,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:06:04,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:06:04,664 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:06:04,664 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:06:04,664 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:06:04,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:06:04,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:06:04,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:06:04,664 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:06:04,664 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:06:04,664 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:07:04,566 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:07:04,567 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:07:04,567 - sqlalchemy.engine.Engine - INFO - [cached since 600.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 7, 4, 566726))
2025-04-30 14:07:04,568 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:07:04,665 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:07:04,668 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:07:04,668 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:07:04,668 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:07:04,668 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:07:04,668 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:07:04,681 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:07:04,681 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:07:04,681 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:07:04,681 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:07:04,681 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:07:04,681 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:07:04,681 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:07:04,681 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:07:04,697 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:07:04,697 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:07:04,697 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:07:04,699 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:07:04,700 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:07:04,700 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:07:04,700 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:07:04,700 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:07:04,700 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:07:04,700 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:07:04,700 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:07:04,700 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:07:04,700 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:07:04,700 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:07:04,716 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:07:04,719 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:08:04,567 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:08:04,567 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:08:04,567 - sqlalchemy.engine.Engine - INFO - [cached since 660.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 8, 4, 567175))
2025-04-30 14:08:04,567 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:08:04,729 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:08:04,729 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:08:04,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:08:04,730 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:08:04,730 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:08:04,730 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:08:04,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:08:04,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:08:04,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:08:04,730 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:08:04,730 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:08:04,730 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:08:04,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:08:04,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:08:04,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:08:04,730 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:08:04,730 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:08:04,730 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:08:04,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:08:04,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:08:04,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:08:04,730 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:08:04,730 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:08:04,730 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:08:04,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:08:04,730 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:08:04,736 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:08:04,736 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:08:04,736 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:08:04,736 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:09:04,578 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:09:04,580 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:09:04,580 - sqlalchemy.engine.Engine - INFO - [cached since 720.1s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 9, 4, 578425))
2025-04-30 14:09:04,580 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:09:19,733 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:09:19,734 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:09:19,735 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:09:19,735 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:09:19,735 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:09:19,736 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:09:19,736 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:09:19,736 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:09:19,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:09:19,737 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:09:19,737 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:09:19,737 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:09:19,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:09:19,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:09:19,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:09:19,738 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:09:19,738 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:09:19,738 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:09:19,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:09:19,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:09:19,738 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:09:19,739 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:09:19,739 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:09:19,739 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:09:19,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:09:19,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:09:19,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:09:19,739 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:09:19,739 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:09:19,745 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:10:04,614 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:10:04,615 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:10:04,618 - sqlalchemy.engine.Engine - INFO - [cached since 780.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 10, 4, 613338))
2025-04-30 14:10:04,621 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:10:19,737 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:10:19,737 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:10:19,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:10:19,739 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:10:19,739 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:10:19,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:10:34,748 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:10:34,748 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:10:34,748 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:10:34,748 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:10:34,758 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:10:34,758 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:10:34,763 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:10:34,763 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:10:34,763 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:10:34,763 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:10:34,763 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:10:34,763 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:10:34,763 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:10:34,763 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:10:34,763 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:10:34,763 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:10:34,763 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:10:34,779 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:10:34,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:10:34,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:10:34,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:10:34,779 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:10:34,779 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:10:34,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:11:04,623 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:11:04,624 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:11:04,625 - sqlalchemy.engine.Engine - INFO - [cached since 840.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 11, 4, 621699))
2025-04-30 14:11:04,627 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:11:19,798 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:11:19,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:11:19,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:11:19,800 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:11:19,800 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:11:19,807 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:11:34,828 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:11:34,829 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:11:34,829 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:11:34,831 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:11:34,832 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:11:34,833 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:11:34,833 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:11:34,833 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:11:34,833 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:11:34,833 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:11:34,833 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:11:34,834 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:11:34,835 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:11:34,835 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:11:34,835 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:11:34,835 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:11:34,836 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:11:34,836 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:11:34,836 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:11:34,836 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:11:34,836 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:11:34,836 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:11:34,837 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:11:34,837 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:12:04,628 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:12:04,632 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:12:04,636 - sqlalchemy.engine.Engine - INFO - [cached since 900.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 12, 4, 627949))
2025-04-30 14:12:04,639 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:12:19,850 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:12:19,852 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:12:19,853 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:12:19,855 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:12:19,856 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:12:19,867 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:12:34,869 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:12:34,870 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:12:34,870 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:12:34,870 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:12:34,876 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:12:34,876 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:12:34,877 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:12:34,877 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:12:34,877 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:12:34,877 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:12:34,878 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:12:34,878 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:12:34,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:12:34,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:12:34,878 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:12:34,879 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:12:34,879 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:12:34,879 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:12:34,879 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:12:34,881 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:12:34,885 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:12:34,886 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:12:34,886 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:12:34,886 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:13:04,651 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:13:04,652 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:13:04,653 - sqlalchemy.engine.Engine - INFO - [cached since 960.2s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 13, 4, 649640))
2025-04-30 14:13:04,655 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:13:19,899 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:13:19,900 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:13:19,900 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:13:19,900 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:13:19,900 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:13:19,907 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:13:34,918 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:13:34,922 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:13:34,924 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:13:34,925 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:13:34,925 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:13:34,927 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:13:34,930 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:13:34,932 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:13:34,934 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:13:34,935 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:13:34,935 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:13:34,936 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:13:34,936 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:13:34,937 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:13:34,937 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:13:34,938 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:13:34,939 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:13:34,940 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:13:34,944 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:13:34,946 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:13:34,947 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:13:34,949 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:13:34,950 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:13:34,952 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:14:04,670 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:14:04,673 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:14:04,674 - sqlalchemy.engine.Engine - INFO - [cached since 1020s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 14, 4, 668399))
2025-04-30 14:14:04,678 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:14:19,967 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:14:19,968 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:14:19,968 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:14:19,968 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:14:19,968 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:14:19,975 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:14:34,998 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:14:34,998 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:14:34,998 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:14:34,999 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:14:34,999 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:14:34,999 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:14:34,999 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:14:35,000 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:14:35,000 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:14:35,000 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:14:35,001 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:14:35,001 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:14:35,001 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:14:35,002 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:14:35,003 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:14:35,003 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:14:35,004 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:14:35,004 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:14:35,004 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:14:35,004 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:14:35,004 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:14:35,005 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:14:35,005 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:14:35,005 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:15:04,689 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:15:04,691 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:15:04,692 - sqlalchemy.engine.Engine - INFO - [cached since 1080s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 15, 4, 688631))
2025-04-30 14:15:04,694 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:15:20,021 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:15:20,025 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:15:20,027 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:15:20,029 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:15:20,030 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:15:20,040 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:15:35,027 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:15:35,028 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:15:35,028 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:15:35,029 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:15:35,029 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:15:35,029 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:15:35,030 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:15:35,030 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:15:35,030 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:15:35,030 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:15:35,030 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:15:35,031 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:15:35,031 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:15:35,031 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:15:35,031 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:15:35,033 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:15:35,034 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:15:35,034 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:15:35,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:15:35,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:15:35,034 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:15:35,034 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:15:35,035 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:15:35,035 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:16:04,712 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:16:04,713 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:16:04,714 - sqlalchemy.engine.Engine - INFO - [cached since 1140s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 16, 4, 712559))
2025-04-30 14:16:04,715 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:16:20,044 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:16:20,044 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:16:20,045 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:16:20,046 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:16:20,048 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:16:20,053 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:16:35,078 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:16:35,079 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:16:35,080 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:16:35,081 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:16:35,081 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:16:35,081 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:16:35,082 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:16:35,083 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:16:35,083 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:16:35,083 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:16:35,083 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:16:35,083 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:16:35,084 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:16:35,084 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:16:35,085 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:16:35,085 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:16:35,086 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:16:35,086 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:16:35,087 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:16:35,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:16:35,088 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:16:35,088 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:16:35,089 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:16:35,089 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:17:04,713 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:17:04,714 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:17:04,715 - sqlalchemy.engine.Engine - INFO - [cached since 1200s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 17, 4, 713470))
2025-04-30 14:17:04,716 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:17:20,102 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:17:20,102 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:17:20,102 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:17:20,103 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:17:20,103 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:17:20,108 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:17:35,119 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:17:35,121 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:17:35,121 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:17:35,121 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:17:35,121 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:17:35,121 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:17:35,121 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:17:35,121 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:17:35,122 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:17:35,122 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:17:35,122 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:17:35,122 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:17:35,122 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:17:35,122 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:17:35,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:17:35,123 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:17:35,123 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:17:35,123 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:17:35,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:17:35,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:17:35,123 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:17:35,123 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:17:35,123 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:17:35,124 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:18:04,722 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:18:04,724 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:18:04,725 - sqlalchemy.engine.Engine - INFO - [cached since 1260s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 18, 4, 721905))
2025-04-30 14:18:04,726 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:18:20,137 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:18:20,138 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:18:20,138 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:18:20,138 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:18:20,138 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:18:20,143 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:18:35,172 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:18:35,175 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:18:35,176 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:18:35,176 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:18:35,176 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:18:35,176 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:18:35,176 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:18:35,176 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:18:35,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:18:35,177 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:18:35,177 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:18:35,177 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:18:35,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:18:35,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:18:35,177 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:18:35,177 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:18:35,178 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:18:35,178 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:18:35,178 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:18:35,179 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:18:35,179 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:18:35,179 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:18:35,179 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:18:35,179 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:19:04,736 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:19:04,738 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:19:04,739 - sqlalchemy.engine.Engine - INFO - [cached since 1320s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 19, 4, 736819))
2025-04-30 14:19:04,740 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:19:20,215 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:19:20,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:19:20,215 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:19:20,215 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:19:20,215 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:19:20,231 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:19:35,234 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:19:35,235 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:19:35,235 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:19:35,235 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:19:35,235 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:19:35,236 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:19:35,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:19:35,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:19:35,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:19:35,236 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:19:35,236 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:19:35,236 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:19:35,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:19:35,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:19:35,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:19:35,239 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:19:35,239 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:19:35,239 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:19:35,239 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:19:35,239 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:19:35,239 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:19:35,239 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:19:35,239 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:19:35,239 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:20:04,751 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:20:04,752 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:20:04,752 - sqlalchemy.engine.Engine - INFO - [cached since 1380s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 20, 4, 749091))
2025-04-30 14:20:04,752 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:20:20,229 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:20:20,229 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:20:20,230 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:20:20,231 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:20:20,231 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:20:20,236 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:20:35,246 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:20:35,246 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:20:35,246 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:20:35,246 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:20:35,246 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:20:35,246 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:20:35,246 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:20:35,246 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:20:35,246 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:20:35,250 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:20:35,250 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:20:35,250 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:20:35,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:20:35,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:20:35,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:20:35,250 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:20:35,250 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:20:35,250 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:20:35,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:20:35,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:20:35,250 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:20:35,250 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:20:35,250 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:20:35,255 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:21:04,759 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:21:04,763 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:21:04,763 - sqlalchemy.engine.Engine - INFO - [cached since 1440s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 21, 4, 759965))
2025-04-30 14:21:04,763 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:21:20,270 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:21:20,271 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:21:20,272 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:21:20,273 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:21:20,277 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:21:20,283 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:21:35,292 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:21:35,295 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:21:35,295 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:21:35,295 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:21:35,297 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:21:35,299 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:21:35,299 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:21:35,299 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:21:35,299 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:21:35,310 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:21:35,310 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:21:35,310 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:21:35,310 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:21:35,310 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:21:35,310 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:21:35,310 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:21:35,310 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:21:35,310 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:21:35,310 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:21:35,326 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:21:35,326 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:21:35,326 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:21:35,326 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:21:35,326 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:22:04,769 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:22:04,769 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:22:04,769 - sqlalchemy.engine.Engine - INFO - [cached since 1500s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 22, 4, 765599))
2025-04-30 14:22:04,769 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:22:20,325 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:22:20,325 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:22:20,325 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:22:20,325 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:22:20,328 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:22:20,330 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:22:35,328 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:22:35,328 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:22:35,328 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:22:35,328 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:22:35,328 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:22:35,328 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:22:35,328 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:22:35,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:22:35,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:22:35,344 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:22:35,344 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:22:35,344 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:22:35,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:22:35,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:22:35,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:22:35,344 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:22:35,344 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:22:35,344 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:22:35,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:22:35,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:22:35,344 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:22:35,344 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:22:35,360 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:22:35,360 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:23:04,786 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:23:04,786 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:23:04,786 - sqlalchemy.engine.Engine - INFO - [cached since 1560s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 23, 4, 786715))
2025-04-30 14:23:04,786 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:23:20,370 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:23:20,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:23:20,370 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:23:20,370 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:23:20,370 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:23:20,380 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:23:35,390 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:23:35,390 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:23:35,390 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:23:35,390 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:23:35,390 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:23:35,390 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:23:35,390 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:23:35,390 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:23:35,390 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:23:35,390 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:23:35,390 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:23:35,390 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:23:35,390 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:23:35,390 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:23:35,390 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:23:35,390 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:23:35,390 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:23:35,390 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:23:35,390 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:23:35,390 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:23:35,390 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:23:35,390 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:23:35,390 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:23:35,390 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:24:04,817 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:24:04,819 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:24:04,820 - sqlalchemy.engine.Engine - INFO - [cached since 1620s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 24, 4, 817889))
2025-04-30 14:24:04,822 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:24:20,419 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:24:20,419 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:24:20,419 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:24:20,419 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:24:20,419 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:24:20,429 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:24:35,428 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:24:35,428 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:24:35,428 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:24:35,428 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:24:35,428 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:24:35,443 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:24:35,443 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:24:35,448 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:24:35,448 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:24:35,448 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:24:35,448 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:24:35,456 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:24:35,459 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:24:35,459 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:24:35,459 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:24:35,459 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:24:35,459 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:24:35,459 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:24:35,459 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:24:35,465 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:24:35,465 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:24:35,465 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:24:35,465 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:24:35,465 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:25:04,818 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:25:04,819 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:25:04,821 - sqlalchemy.engine.Engine - INFO - [cached since 1680s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 25, 4, 816961))
2025-04-30 14:25:04,825 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:25:20,478 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:25:20,479 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:25:20,479 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:25:20,479 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:25:20,479 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:25:20,484 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:25:35,490 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:25:35,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:25:35,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:25:35,491 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:25:35,491 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:25:35,491 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:25:35,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:25:35,491 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:25:35,492 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:25:35,492 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:25:35,492 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:25:35,492 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:25:35,492 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:25:35,492 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:25:35,492 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:25:35,492 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:25:35,493 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:25:35,493 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:25:35,493 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:25:35,493 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:25:35,493 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:25:35,493 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:25:35,493 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:25:35,494 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:26:04,833 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:26:04,834 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:26:04,835 - sqlalchemy.engine.Engine - INFO - [cached since 1740s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 26, 4, 832208))
2025-04-30 14:26:04,836 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:26:20,545 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:26:20,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:26:20,546 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:26:20,546 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:26:20,546 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:26:20,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:26:35,575 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:26:35,576 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:26:35,577 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:26:35,578 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:26:35,579 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:26:35,581 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:26:35,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:26:35,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:26:35,583 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:26:35,585 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:26:35,585 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:26:35,586 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:26:35,587 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:26:35,588 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:26:35,588 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:26:35,588 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:26:35,589 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:26:35,589 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:26:35,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:26:35,590 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:26:35,591 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:26:35,591 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:26:35,592 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:26:35,592 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:27:04,830 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:27:04,832 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:27:04,837 - sqlalchemy.engine.Engine - INFO - [cached since 1800s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 27, 4, 829242))
2025-04-30 14:27:04,842 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:27:20,615 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:27:20,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:27:20,615 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:27:20,615 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:27:20,615 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:27:20,620 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:27:35,600 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:27:35,601 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:27:35,602 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:27:35,603 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:27:35,603 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:27:35,604 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:27:35,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:27:35,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:27:35,604 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:27:35,604 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:27:35,605 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:27:35,605 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:27:35,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:27:35,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:27:35,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:27:35,605 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:27:35,605 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:27:35,605 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:27:35,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:27:35,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:27:35,605 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:27:35,605 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:27:35,606 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:27:35,606 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:28:04,853 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:28:04,854 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:28:04,854 - sqlalchemy.engine.Engine - INFO - [cached since 1860s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 28, 4, 853857))
2025-04-30 14:28:04,854 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:28:20,631 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:28:20,631 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:28:20,631 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:28:20,631 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:28:20,631 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:28:20,635 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:28:35,642 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:28:35,643 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:28:35,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:28:35,646 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:28:35,647 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:28:35,647 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:28:35,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:28:35,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:28:35,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:28:35,648 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:28:35,648 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:28:35,648 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:28:35,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:28:35,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:28:35,648 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:28:35,648 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:28:35,649 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:28:35,649 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:28:35,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:28:35,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:28:35,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:28:35,649 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:28:35,649 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:28:35,649 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:29:04,855 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:29:04,855 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:29:04,855 - sqlalchemy.engine.Engine - INFO - [cached since 1920s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 29, 4, 855404))
2025-04-30 14:29:04,865 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:29:20,646 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:29:20,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:29:20,646 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:29:20,646 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:29:20,646 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:29:20,653 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:29:50,668 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:29:50,669 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:29:50,670 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:29:50,673 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:29:50,675 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:29:50,678 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:29:50,682 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:29:50,683 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:29:50,684 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:29:50,685 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:29:50,686 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:29:50,687 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:29:50,689 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:29:50,690 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:29:50,693 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:29:50,695 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:29:50,696 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:29:50,696 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:29:50,696 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:29:50,698 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:29:50,700 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:29:50,700 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:29:50,701 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:29:50,701 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:30:04,850 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:30:04,852 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:30:04,852 - sqlalchemy.engine.Engine - INFO - [cached since 1980s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 30, 4, 849064))
2025-04-30 14:30:04,853 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:30:20,706 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:30:20,707 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:30:20,707 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:30:20,707 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:30:20,707 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:30:20,713 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:30:50,706 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:30:50,706 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:30:50,706 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:30:50,707 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:30:50,707 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:30:50,707 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:30:50,707 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:30:50,707 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:30:50,707 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:30:50,707 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:30:50,707 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:30:50,707 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:30:50,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:30:50,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:30:50,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:30:50,708 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:30:50,708 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:30:50,708 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:30:50,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:30:50,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:30:50,708 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:30:50,708 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:30:50,709 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:30:50,709 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:31:04,846 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:31:04,847 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:31:04,850 - sqlalchemy.engine.Engine - INFO - [cached since 2040s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 31, 4, 846355))
2025-04-30 14:31:04,851 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:31:35,720 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:31:35,720 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:31:35,721 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:31:35,721 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:31:35,722 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:31:35,728 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:31:50,730 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:31:50,734 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:31:50,734 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:31:50,736 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:31:50,736 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:31:50,737 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:31:50,739 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:31:50,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:31:50,740 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:31:50,740 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:31:50,740 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:31:50,741 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:31:50,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:31:50,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:31:50,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:31:50,741 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:31:50,741 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:31:50,741 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:31:50,741 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:31:50,742 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:31:50,744 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:31:50,744 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:31:50,745 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:31:50,746 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:32:04,855 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:32:04,857 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:32:04,857 - sqlalchemy.engine.Engine - INFO - [cached since 2100s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 32, 4, 854844))
2025-04-30 14:32:04,859 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:32:35,774 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:32:35,775 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:32:35,775 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:32:35,775 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:32:35,775 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:32:35,782 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:32:50,773 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:32:50,776 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:32:50,778 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:32:50,780 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:32:50,782 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:32:50,783 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:32:50,786 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:32:50,786 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:32:50,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:32:50,788 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:32:50,789 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:32:50,790 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:32:50,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:32:50,790 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:32:50,791 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:32:50,791 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:32:50,791 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:32:50,791 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:32:50,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:32:50,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:32:50,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:32:50,792 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:32:50,792 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:32:50,793 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:33:04,854 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:33:04,855 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:33:04,858 - sqlalchemy.engine.Engine - INFO - [cached since 2160s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 33, 4, 853810))
2025-04-30 14:33:04,860 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:33:35,786 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:33:35,787 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:33:35,788 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:33:35,788 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:33:35,789 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:33:35,795 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:34:04,867 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:34:04,868 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:34:04,869 - sqlalchemy.engine.Engine - INFO - [cached since 2220s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 34, 4, 867652))
2025-04-30 14:34:04,870 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:34:05,779 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 1 心跳超时，重启中...
2025-04-30 14:34:05,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:34:05,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:34:05,779 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:34:05,779 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 5
2025-04-30 14:34:05,779 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 2 心跳超时，重启中...
2025-04-30 14:34:05,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:34:05,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:34:05,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:34:05,779 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 4
2025-04-30 14:34:05,779 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 5
2025-04-30 14:34:05,779 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 3 心跳超时，重启中...
2025-04-30 14:34:05,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:34:05,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:34:05,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:34:05,779 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 4
2025-04-30 14:34:05,779 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 5
2025-04-30 14:34:05,779 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 4 心跳超时，重启中...
2025-04-30 14:34:05,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:34:05,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:34:05,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:34:05,779 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 4
2025-04-30 14:34:05,779 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:34:05,779 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:34:35,792 - services.enhanced_scheduler.worker_manager - WARNING - 工作线程 0 心跳超时，重启中...
2025-04-30 14:34:35,792 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:34:35,794 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:34:35,794 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 4
2025-04-30 14:34:35,794 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 5
2025-04-30 14:34:35,799 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:34:48,549 - app - INFO - 应用程序关闭中...
2025-04-30 14:34:48,550 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控被取消
2025-04-30 14:34:48,550 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控结束
2025-04-30 14:34:48,551 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器被取消
2025-04-30 14:34:48,551 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器结束
2025-04-30 14:34:48,551 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器已停止
2025-04-30 14:34:48,551 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程被取消
2025-04-30 14:34:48,551 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程结束
2025-04-30 14:34:48,552 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器已停止
2025-04-30 14:34:48,552 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务被取消
2025-04-30 14:34:48,552 - services.enhanced_scheduler.worker_manager - INFO - 工作线程监控任务结束
2025-04-30 14:34:48,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 被取消
2025-04-30 14:34:48,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 结束
2025-04-30 14:34:48,552 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 1, 当前工作线程数: 4
2025-04-30 14:34:48,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 被取消
2025-04-30 14:34:48,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 结束
2025-04-30 14:34:48,552 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 2, 当前工作线程数: 3
2025-04-30 14:34:48,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 被取消
2025-04-30 14:34:48,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 结束
2025-04-30 14:34:48,552 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 3, 当前工作线程数: 2
2025-04-30 14:34:48,552 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 被取消
2025-04-30 14:34:48,553 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 结束
2025-04-30 14:34:48,553 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 4, 当前工作线程数: 1
2025-04-30 14:34:48,553 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 被取消
2025-04-30 14:34:48,553 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 结束
2025-04-30 14:34:48,553 - services.enhanced_scheduler.worker_manager - INFO - 移除工作线程 0, 当前工作线程数: 0
2025-04-30 14:34:48,553 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器已停止
2025-04-30 14:34:48,553 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器已停止
2025-04-30 14:34:48,553 - app - INFO - 增强版任务调度器已停止
2025-04-30 14:34:48,553 - data.session - INFO - 正在关闭异步数据库连接...
2025-04-30 14:34:48,554 - data.session - INFO - 异步数据库连接已关闭
2025-04-30 14:34:48,554 - data.session - INFO - 正在关闭数据库连接...
2025-04-30 14:34:48,554 - data.session - INFO - 数据库连接已关闭
2025-04-30 14:36:15,523 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 14:36:15,586 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 14:36:15,587 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 14:36:16,257 - data.cache - INFO - Redis连接已建立：localhost:6379/0
2025-04-30 14:36:16,315 - utils.component_manager - ERROR - 加载组件配置文件失败: D:\jsw_code\project\VWED_task\config\components\test.json, 错误: Extra data: line 70 column 1 (char 2237)
Traceback (most recent call last):
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 46, in _load_all_components
    component_data = json.load(f)
                     ^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\json\decoder.py", line 341, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 70 column 1 (char 2237)
Stack (most recent call last):
  File "<string>", line 1, in <module>
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 131, in _main
    prepare(preparation_data)
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 246, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "d:\Users\j2538\miniconda3\envs\pytf\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path
    main_content = runpy.run_path(main_path,
  File "<frozen runpy>", line 287, in run_path
  File "<frozen runpy>", line 98, in _run_module_code
  File "<frozen runpy>", line 88, in _run_code
  File "D:\jsw_code\project\VWED_task\app.py", line 24, in <module>
    from routes.task_edit_api import router as task_edit_router
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\routes\task_edit_api.py", line 19, in <module>
    from services.task_edit_service import TaskEditService
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\services\task_edit_service.py", line 21, in <module>
    from utils.component_manager import component_manager
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 87, in <module>
    component_manager = ComponentManager()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 30, in __init__
    self._load_all_components()
  File "D:\jsw_code\project\VWED_task\utils\component_manager.py", line 54, in _load_all_components
    logger.error(f"加载组件配置文件失败: {file_path}, 错误: {str(e)}")
  File "D:\jsw_code\project\VWED_task\utils\logger.py", line 139, in error
    self.logger.error(message, *args, exc_info=exc_info, stack_info=stack_info, **kwargs)
2025-04-30 14:36:16,316 - utils.component_manager - INFO - 已加载 8 个组件分类，共 52 个组件类型
2025-04-30 14:36:16,378 - asyncio - DEBUG - Using selector: SelectSelector
2025-04-30 14:36:16,427 - data.session - INFO - 正在初始化数据库...
2025-04-30 14:36:16,630 - data.session - INFO - 数据库 vwed_task 已创建或已存在
2025-04-30 14:36:16,646 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 14:36:16,646 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 14:36:16,647 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 14:36:16,648 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 14:36:16,648 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 14:36:16,649 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 14:36:16,649 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:16,649 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskdef`
2025-04-30 14:36:16,649 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 14:36:16,652 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_taskrecord`
2025-04-30 14:36:16,653 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 14:36:16,654 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasklog`
2025-04-30 14:36:16,654 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 14:36:16,655 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_blockrecord`
2025-04-30 14:36:16,656 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 14:36:16,657 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_tasktemplate`
2025-04-30 14:36:16,657 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 14:36:16,659 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacache`
2025-04-30 14:36:16,660 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 14:36:16,660 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_datacachesplit`
2025-04-30 14:36:16,661 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 14:36:16,662 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script`
2025-04-30 14:36:16,662 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 14:36:16,663 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_version`
2025-04-30 14:36:16,663 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 14:36:16,664 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`vwed_script_log`
2025-04-30 14:36:16,664 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 14:36:16,666 - sqlalchemy.engine.Engine - INFO - DESCRIBE `vwed_task`.`modbus_config`
2025-04-30 14:36:16,667 - sqlalchemy.engine.Engine - INFO - [raw sql] {}
2025-04-30 14:36:16,668 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:16,669 - data.session - INFO - 数据库表初始化完成
2025-04-30 14:36:17,012 - services.enhanced_scheduler.task_scheduler - INFO - 加载任务调度器配置: 工作线程数=5-20, 队列数=3, 任务超时=3600秒
2025-04-30 14:36:17,013 - services.enhanced_scheduler.priority_queue_manager - INFO - 初始化优先级队列管理器: 队列数=3, 阈值百分比=[0.1, 0.3, 1.0], 工作线程比例=[0.6, 0.3, 0.1]
2025-04-30 14:36:17,014 - services.enhanced_scheduler.worker_manager - INFO - 初始化工作线程管理器: min=5, max=20, 心跳间隔=30秒, 自动扩缩容间隔=60秒
2025-04-30 14:36:17,015 - services.enhanced_scheduler.task_persistence - INFO - 初始化任务持久化管理器: 间隔=300秒, 目录=D:\jsw_code\project\VWED_task\data\task_backups, 最大备份数=5
2025-04-30 14:36:17,015 - services.enhanced_scheduler.periodic_task_manager - INFO - 初始化定时任务管理器: 检查间隔=5秒
2025-04-30 14:36:17,016 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器初始化完成
2025-04-30 14:36:17,016 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 0, 当前工作线程数: 1
2025-04-30 14:36:17,016 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 1, 当前工作线程数: 2
2025-04-30 14:36:17,017 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 2, 当前工作线程数: 3
2025-04-30 14:36:17,017 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 3, 当前工作线程数: 4
2025-04-30 14:36:17,018 - services.enhanced_scheduler.worker_manager - INFO - 添加工作线程 4, 当前工作线程数: 5
2025-04-30 14:36:17,018 - services.enhanced_scheduler.worker_manager - INFO - 工作线程管理器启动成功，初始工作线程数: 5
2025-04-30 14:36:17,019 - services.enhanced_scheduler.task_persistence - INFO - 任务持久化管理器启动成功
2025-04-30 14:36:17,020 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 0 启动
2025-04-30 14:36:17,021 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 1 启动
2025-04-30 14:36:17,021 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 2 启动
2025-04-30 14:36:17,022 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 启动
2025-04-30 14:36:17,023 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 4 启动
2025-04-30 14:36:17,025 - services.enhanced_scheduler.task_persistence - INFO - 备份工作线程启动
2025-04-30 14:36:17,052 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 14:36:17,053 - sqlalchemy.engine.Engine - INFO - SELECT DATABASE()
2025-04-30 14:36:17,054 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 14:36:17,055 - sqlalchemy.engine.Engine - INFO - SELECT @@sql_mode
2025-04-30 14:36:17,057 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 14:36:17,058 - sqlalchemy.engine.Engine - INFO - SELECT @@lower_case_table_names
2025-04-30 14:36:17,059 - sqlalchemy.engine.Engine - INFO - [raw sql] ()
2025-04-30 14:36:17,059 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:17,067 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.periodic_task = %s AND vwed_taskdef.if_enable = %s
2025-04-30 14:36:17,067 - sqlalchemy.engine.Engine - INFO - [generated in 0.00031s] (<PeriodicTaskStatus.PERIODIC: 1>, <EnableStatus.ENABLED: 1>)
2025-04-30 14:36:17,068 - services.enhanced_scheduler.periodic_task_manager - INFO - 已加载 0 个定时任务
2025-04-30 14:36:17,069 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:17,072 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务管理器启动成功
2025-04-30 14:36:17,073 - services.enhanced_scheduler.periodic_task_manager - INFO - 定时任务执行器启动
2025-04-30 14:36:17,074 - services.enhanced_scheduler.task_scheduler - INFO - 任务监控启动
2025-04-30 14:36:17,075 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:17,078 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE (vwed_taskrecord.status NOT IN (%s, %s, %s))
2025-04-30 14:36:17,078 - sqlalchemy.engine.Engine - INFO - [generated in 0.00060s] (<TaskStatus.COMPLETED: 1000>, <TaskStatus.FAILED: 2000>, <TaskStatus.CANCELED: 2001>)
2025-04-30 14:36:17,080 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:17,082 - services.enhanced_scheduler.task_persistence - INFO - 已加载 0 个待处理任务
2025-04-30 14:36:17,082 - services.enhanced_scheduler.task_scheduler - INFO - 无待恢复的任务
2025-04-30 14:36:17,083 - services.enhanced_scheduler.task_scheduler - INFO - 增强版任务调度器启动成功，工作线程数: 5
2025-04-30 14:36:17,083 - app - INFO - 增强版任务调度器已启动，最小工作线程数: 5，最大工作线程数: 20
2025-04-30 14:36:17,083 - aiomysql - DEBUG - caching sha2: succeeded by fast path.
2025-04-30 14:36:17,084 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:17,085 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:36:17,087 - sqlalchemy.engine.Engine - INFO - [generated in 0.00186s] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 36, 17, 75052))
2025-04-30 14:36:17,087 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:21,596 - app - INFO - 请求开始: POST /api/vwed-task-edit/run 来自 127.0.0.1
2025-04-30 14:36:21,599 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:21,600 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 14:36:21,600 - sqlalchemy.engine.Engine - INFO - [generated in 0.00035s] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 14:36:21,602 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:21,605 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:21,605 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 14:36:21,606 - sqlalchemy.engine.Engine - INFO - [cached since 0.005362s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 14:36:21,607 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:21,608 - services.task_edit_service - INFO - 准备启动任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 来源: SYSTEM, 设备: AB2223Ndsa1
2025-04-30 14:36:21,608 - services.task_edit_service - DEBUG - 任务参数: [{'name': 'a', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'a', 'required': False, 'defaultValue': '1', 'remark': ''}, {'name': 'b', 'type': <InputParamType.INTEGER: 'INTEGER'>, 'label': 'b', 'required': False, 'defaultValue': '1', 'remark': ''}]
2025-04-30 14:36:21,608 - services.task_edit_service - INFO - 启动普通任务: 3273c7cb-b4bb-47df-9d47-17f96bc401fc
2025-04-30 14:36:21,609 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:21,609 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskdef SET user_token=%s, updated_at=%s WHERE vwed_taskdef.id = %s
2025-04-30 14:36:21,610 - sqlalchemy.engine.Engine - INFO - [generated in 0.00025s] ('eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NDYyOTQyNTMsInVzZXJuYW1lIjoiYWRtaW4ifQ.Vf50cTlRpfdT800zH-s1-MtJi8KnALByKWxpsp-YyFQ', datetime.datetime(2025, 4, 30, 14, 36, 21, 609834), '3273c7cb-b4bb-47df-9d47-17f96bc401fc')
2025-04-30 14:36:21,610 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:21,625 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:21,625 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 14:36:21,628 - sqlalchemy.engine.Engine - INFO - [cached since 0.02738s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 14:36:21,632 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_taskrecord (id, def_id, def_label, def_version, ended_on, ended_reason, status, input_params, path, agv_id, parent_task_record_id, root_task_record_id, state_description, executor_time, first_executor_time, if_have_child_task, periodic_task, priority, root_block_state_id, work_stations, work_types, task_def_detail, variables, call_work_station, call_work_type, source_type, source_system, source_user, source_device, source_ip, source_time, source_client_info, source_remarks, allow_restart_same_location, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 14:36:21,634 - sqlalchemy.engine.Engine - INFO - [generated in 0.00240s] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '第二级子任务', 7, None, None, <TaskStatus.QUEUED: 1002>, '[{"name": "a", "type": "INTEGER", "label": "a", "required": false, "defaultValue": "1", "remark": ""}, {"name": "b", "type": "INTEGER", "label": "b", "required": false, "defaultValue": "1", "remark": ""}]', None, None, None, None, None, None, None, None, <PeriodicTaskStatus.NON_PERIODIC: 0>, 1, None, None, None, '{"inputParams": [{"name": "测试", "type": "Boolean", "label": "132", "remark": "", "defaultValue": "213", "required": false}], "outputParams": [], "roo ... (529 characters truncated) ... d": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}]}, "refTaskDefId": "", "selected": false, "expanded": true}}', None, None, None, 1, 'SYSTEM', None, 'AB2223Ndsa1', '127.0.0.1', datetime.datetime(2025, 4, 30, 14, 36, 21, 608815), '{"user_agent": "PostmanRuntime/7.43.4", "headers": {"x-access-token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NDYyOTQyNTMsInVzZXJuYW1lIjoiY ... (248 characters truncated) ... : "gzip, deflate, br", "connection": "keep-alive", "content-length": "270"}, "method": "POST", "url": "http://127.0.0.1:8000/api/vwed-task-edit/run"}', None, 0, datetime.datetime(2025, 4, 30, 14, 36, 21, 632067), datetime.datetime(2025, 4, 30, 14, 36, 21, 632067), 0)
2025-04-30 14:36:21,639 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:21,649 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:21,651 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:21,653 - sqlalchemy.engine.Engine - INFO - [generated in 0.00212s] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:21,657 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:21,660 - services.enhanced_scheduler.priority_queue_manager - DEBUG - 任务 578a4ef8-5b03-4bd1-899f-5c804bbb5dcb (优先级 1) 添加到队列 0
2025-04-30 14:36:21,666 - services.sync_service - DEBUG - 使用认证令牌调用接口，令牌头: X-Access-Token
2025-04-30 14:36:21,666 - services.sync_service - INFO - 正在同步创建任务到天风系统: 578a4ef8-5b03-4bd1-899f-5c804bbb5dcb
2025-04-30 14:36:21,667 - services.sync_service - DEBUG - 创建任务请求参数: {"vwedTaskId":"578a4ef8-5b03-4bd1-899f-5c804bbb5dcb","vwedTaskParentId":"","name":"第二级子任务","isPeriodic":0,"priority":1,"createTime":"2025-04-30 14:36:21","sceneId":"1912043207186550785","needAmr":1}
2025-04-30 14:36:21,736 - services.enhanced_scheduler.task_scheduler - INFO - 工作线程 3 获取到任务: 578a4ef8-5b03-4bd1-899f-5c804bbb5dcb, 优先级: 1
2025-04-30 14:36:21,736 - services.execution.task_executor - DEBUG - 任务 578a4ef8-5b03-4bd1-899f-5c804bbb5dcb 设置超时时间: 3600秒
2025-04-30 14:36:21,737 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:21,739 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:21,744 - sqlalchemy.engine.Engine - INFO - [cached since 0.09326s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:21,748 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskdef.id, vwed_taskdef.label, vwed_taskdef.created_by, vwed_taskdef.version, vwed_taskdef.detail, vwed_taskdef.template_name, vwed_taskdef.period, vwed_taskdef.periodic_task, vwed_taskdef.status, vwed_taskdef.if_enable, vwed_taskdef.delay, vwed_taskdef.release_sites, vwed_taskdef.remark, vwed_taskdef.tenant_id, vwed_taskdef.map_id, vwed_taskdef.user_token, vwed_taskdef.created_at, vwed_taskdef.updated_at, vwed_taskdef.is_deleted 
FROM vwed_taskdef 
WHERE vwed_taskdef.id = %s
2025-04-30 14:36:21,750 - sqlalchemy.engine.Engine - INFO - [cached since 0.1489s ago] ('3273c7cb-b4bb-47df-9d47-17f96bc401fc',)
2025-04-30 14:36:21,752 - services.sync_service - INFO - 成功同步任务到系统任务: 578a4ef8-5b03-4bd1-899f-5c804bbb5dcb
2025-04-30 14:36:21,754 - services.enhanced_scheduler.task_scheduler - INFO - 成功同步任务到主任务系统: 578a4ef8-5b03-4bd1-899f-5c804bbb5dcb
2025-04-30 14:36:21,754 - services.task_edit_service - INFO - 普通任务启动成功: 3273c7cb-b4bb-47df-9d47-17f96bc401fc, 记录ID: 578a4ef8-5b03-4bd1-899f-5c804bbb5dcb
2025-04-30 14:36:21,758 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET first_executor_time=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:21,761 - sqlalchemy.engine.Engine - INFO - [generated in 0.00286s] (datetime.datetime(2025, 4, 30, 14, 36, 21, 757075), datetime.datetime(2025, 4, 30, 14, 36, 21, 758073), '578a4ef8-5b03-4bd1-899f-5c804bbb5dcb')
2025-04-30 14:36:21,765 - app - INFO - 请求完成: POST /api/vwed-task-edit/run 状态码: 200 耗时: 0.1691秒
2025-04-30 14:36:21,770 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:21,780 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:21,782 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET ended_reason=%s, status=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:21,782 - sqlalchemy.engine.Engine - INFO - [generated in 0.00045s] ('任务执行中', <TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 14, 36, 21, 782450), '578a4ef8-5b03-4bd1-899f-5c804bbb5dcb')
2025-04-30 14:36:21,783 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:21,791 - services.execution.block_executor - INFO - 开始执行任务块: -1, 类型: RootBp, ID: -1
2025-04-30 14:36:21,792 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:21,793 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 14:36:21,793 - sqlalchemy.engine.Engine - INFO - [generated in 0.00034s] ('2e6ee069-a8a4-4f36-b14d-57bea454c0be', '-1', '-1', '', '{}', '{}', '{}', 'RootBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '578a4ef8-5b03-4bd1-899f-5c804bbb5dcb', datetime.datetime(2025, 4, 30, 14, 36, 21, 791447), <TaskBlockRecordStatus.RUNNING: 1001>, '{}', '{}', 1, datetime.datetime(2025, 4, 30, 14, 36, 21, 793455), datetime.datetime(2025, 4, 30, 14, 36, 21, 793455), 0)
2025-04-30 14:36:21,794 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:21,800 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:21,802 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 14:36:21,805 - sqlalchemy.engine.Engine - INFO - [generated in 0.00231s] ('2e6ee069-a8a4-4f36-b14d-57bea454c0be',)
2025-04-30 14:36:21,806 - services.execution.block_executor - INFO - 块 -1 (ID: -1) 设置的变量: []
2025-04-30 14:36:21,807 - services.execution.block_executor - INFO - 为块 -1 存储输出: <class 'NoneType'>
2025-04-30 14:36:21,808 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 14:36:21,808 - sqlalchemy.engine.Engine - INFO - [generated in 0.00047s] ('null', '执行中', '{"blocks": {"-1": null}}', '执行中', datetime.datetime(2025, 4, 30, 14, 36, 21, 808458), '2e6ee069-a8a4-4f36-b14d-57bea454c0be')
2025-04-30 14:36:21,816 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:21,826 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: -1, 分支: default
2025-04-30 14:36:21,829 - services.execution.block_executor - INFO - 开始执行块 -1 的 default 分支下的 1 个子块
2025-04-30 14:36:21,831 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b1, ID: 1, 类型: CSelectAgvBp
2025-04-30 14:36:21,832 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:21,833 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 14:36:21,836 - sqlalchemy.engine.Engine - INFO - [cached since 0.04328s ago] ('f852104b-381f-438e-9eb6-25b6ab3c3f3d', 'b1', '1', '', '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{"keyRoute": "TK01"}', '{}', 'CSelectAgvBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '578a4ef8-5b03-4bd1-899f-5c804bbb5dcb', datetime.datetime(2025, 4, 30, 14, 36, 21, 831131), <TaskBlockRecordStatus.RUNNING: 1001>, '{"keyRoute": {"type": "Simple", "value": "TK01", "required": true}}', '{}', 1, datetime.datetime(2025, 4, 30, 14, 36, 21, 833139), datetime.datetime(2025, 4, 30, 14, 36, 21, 833139), 0)
2025-04-30 14:36:21,847 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:21,861 - services.execution.block_executor - DEBUG - 为子块 1 创建记录, 记录ID: f852104b-381f-438e-9eb6-25b6ab3c3f3d
2025-04-30 14:36:21,861 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:21,862 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 14:36:21,863 - sqlalchemy.engine.Engine - INFO - [cached since 0.06077s ago] ('f852104b-381f-438e-9eb6-25b6ab3c3f3d',)
2025-04-30 14:36:21,866 - services.execution.block_executor - INFO - 块 b1 (ID: 1) 设置的变量: []
2025-04-30 14:36:21,867 - services.execution.block_executor - INFO - 为块 b1 存储输出: <class 'NoneType'>
2025-04-30 14:36:21,867 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 14:36:21,868 - sqlalchemy.engine.Engine - INFO - [cached since 0.05954s ago] ('null', '执行中', '{"blocks": {"b1": null}}', '执行中', datetime.datetime(2025, 4, 30, 14, 36, 21, 867140), 'f852104b-381f-438e-9eb6-25b6ab3c3f3d')
2025-04-30 14:36:21,868 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:21,888 - services.execution.block_executor - INFO - 开始执行子块 1 的处理逻辑
2025-04-30 14:36:21,888 - services.sync_service - INFO - 正在创建选择AMR任务: 578a4ef8-5b03-4bd1-899f-5c804bbb5dcb, 站点: TK01
2025-04-30 14:36:21,922 - services.sync_service - INFO - 成功为任务选择AMR: 578a4ef8-5b03-4bd1-899f-5c804bbb5dcb, AMR: 
2025-04-30 14:36:21,923 - services.execution.handlers.robot_scheduling - INFO - 开始等待任务块 1917468044662341634 的AMR选择结果
2025-04-30 14:36:21,924 - services.sync_service - INFO - 开始等待任务块 1917468044662341634 的AMR选择结果
2025-04-30 14:36:21,925 - services.sync_service - INFO - 正在获取任务块详情: 1917468044662341634
2025-04-30 14:36:22,017 - services.sync_service - INFO - 成功获取任务块详情: 1917468044662341634 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468044662341634', 'taskId': '1917468043915755521', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'amrName': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 14:36:21', 'updateTime': None}, 'timestamp': 1745994981442}
2025-04-30 14:36:22,018 - services.sync_service - DEBUG - 任务块 1917468044662341634 AMR选择未完成，已尝试 1 次
2025-04-30 14:36:22,518 - services.sync_service - INFO - 正在获取任务块详情: 1917468044662341634
2025-04-30 14:36:22,616 - services.sync_service - INFO - 成功获取任务块详情: 1917468044662341634 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468044662341634', 'taskId': '1917468043915755521', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'amrName': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 14:36:21', 'updateTime': None}, 'timestamp': 1745994981971}
2025-04-30 14:36:22,617 - services.sync_service - DEBUG - 任务块 1917468044662341634 AMR选择未完成，已尝试 2 次
2025-04-30 14:36:22,725 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:22,726 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:22,727 - sqlalchemy.engine.Engine - INFO - [generated in 0.00075s] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:22,729 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:23,115 - services.sync_service - INFO - 正在获取任务块详情: 1917468044662341634
2025-04-30 14:36:23,229 - services.sync_service - INFO - 成功获取任务块详情: 1917468044662341634 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468044662341634', 'taskId': '1917468043915755521', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'amrName': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 14:36:21', 'updateTime': None}, 'timestamp': 1745994982656}
2025-04-30 14:36:23,232 - services.sync_service - DEBUG - 任务块 1917468044662341634 AMR选择未完成，已尝试 3 次
2025-04-30 14:36:23,722 - services.sync_service - INFO - 正在获取任务块详情: 1917468044662341634
2025-04-30 14:36:23,724 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:23,725 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:23,729 - sqlalchemy.engine.Engine - INFO - [cached since 1.001s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:23,740 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:23,748 - services.sync_service - INFO - 成功获取任务块详情: 1917468044662341634 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468044662341634', 'taskId': '1917468043915755521', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'amrName': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 14:36:21', 'updateTime': None}, 'timestamp': 1745994983175}
2025-04-30 14:36:23,749 - services.sync_service - DEBUG - 任务块 1917468044662341634 AMR选择未完成，已尝试 4 次
2025-04-30 14:36:24,261 - services.sync_service - INFO - 正在获取任务块详情: 1917468044662341634
2025-04-30 14:36:24,292 - services.sync_service - INFO - 成功获取任务块详情: 1917468044662341634 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468044662341634', 'taskId': '1917468043915755521', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '', 'amrName': '', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 14:36:21', 'updateTime': None}, 'timestamp': 1745994983718}
2025-04-30 14:36:24,296 - services.sync_service - DEBUG - 任务块 1917468044662341634 AMR选择未完成，已尝试 5 次
2025-04-30 14:36:24,745 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:24,749 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:24,751 - sqlalchemy.engine.Engine - INFO - [cached since 2.025s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:24,756 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:24,792 - services.sync_service - INFO - 正在获取任务块详情: 1917468044662341634
2025-04-30 14:36:24,852 - services.sync_service - INFO - 成功获取任务块详情: 1917468044662341634 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468044662341634', 'taskId': '1917468043915755521', 'tenantId': 1000, 'stationId': '1910169075557617665', 'appointAmrId': '', 'appointAmrGroupId': '', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'priority': 1, 'closure': 0, 'createTime': '2025-04-30 14:36:21', 'updateTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994984272}
2025-04-30 14:36:24,853 - services.sync_service - INFO - 任务块 1917468044662341634 已选择AMR: 1912328602264645634，共尝试 6 次
2025-04-30 14:36:24,853 - services.execution.handlers.robot_scheduling - INFO - 准备更新任务 578a4ef8-5b03-4bd1-899f-5c804bbb5dcb 的机器人ID: 1912328602264645634
2025-04-30 14:36:24,854 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:24,856 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.agv_id 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:24,856 - sqlalchemy.engine.Engine - INFO - [generated in 0.00076s] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:24,860 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_taskrecord SET agv_id=%s, updated_at=%s WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:24,860 - sqlalchemy.engine.Engine - INFO - [generated in 0.00018s] ('1912328602264645634', datetime.datetime(2025, 4, 30, 14, 36, 24, 860971), '578a4ef8-5b03-4bd1-899f-5c804bbb5dcb')
2025-04-30 14:36:24,861 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:24,869 - services.execution.handlers.robot_scheduling - INFO - 成功更新任务记录 578a4ef8-5b03-4bd1-899f-5c804bbb5dcb 的agv_id字段: 1912328602264645634
2025-04-30 14:36:24,869 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 14:36:24,869 - services.execution.handlers.robot_scheduling - INFO - 块 b1(ID:1) 有 1 个子块
2025-04-30 14:36:24,869 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1 影响的块ID: [2]
2025-04-30 14:36:24,869 - services.execution.handlers.robot_scheduling - INFO - 选择机器人块 b1(ID:1) 选择的机器人: 1912328602264645634
2025-04-30 14:36:24,870 - services.execution.handlers.robot_scheduling - INFO - 影响的块: 1 个
2025-04-30 14:36:24,870 - services.execution.handlers.robot_scheduling - INFO - 1. b2(ID:2, 类型:CAgvOperationBp, 关系:direct_child)
2025-04-30 14:36:24,871 - services.execution.handlers.robot_scheduling - INFO - 开始执行选择机器人块 b1 的子块
2025-04-30 14:36:24,871 - services.execution.block_executor - INFO - 开始执行 execute_children 方法 - 块ID: 1, 分支: default
2025-04-30 14:36:24,871 - services.execution.block_executor - INFO - 开始执行块 1 的 default 分支下的 1 个子块
2025-04-30 14:36:24,871 - services.execution.block_executor - INFO - 执行子块 [1/1] - 名称: b2, ID: 2, 类型: CAgvOperationBp
2025-04-30 14:36:24,872 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:24,872 - sqlalchemy.engine.Engine - INFO - INSERT INTO vwed_blockrecord (id, block_name, block_id, block_config_id, block_input_params, block_input_params_value, block_internal_variables, block_execute_name, task_id, task_record_id, started_on, status, input_params, internal_variables, version, created_at, updated_at, is_deleted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2025-04-30 14:36:24,872 - sqlalchemy.engine.Engine - INFO - [cached since 3.079s ago] ('93d37f97-b38f-462d-9df7-743fea3359ba', 'b2', '2', '', '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"targetSiteLabel": "PT02", "scriptName": "JackUnload"}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917468044662341634"}', 'CAgvOperationBp', '3273c7cb-b4bb-47df-9d47-17f96bc401fc', '578a4ef8-5b03-4bd1-899f-5c804bbb5dcb', datetime.datetime(2025, 4, 30, 14, 36, 24, 871288), <TaskBlockRecordStatus.RUNNING: 1001>, '{"targetSiteLabel": {"type": "Simple", "value": "PT02", "required": true}, "scriptName": {"type": "Simple", "value": "JackUnload", "required": null}}', '{"agv_for_block_2": "1912328602264645634", "agv_for_b2": "1912328602264645634", "agv_task_id_2": "1917468044662341634"}', 1, datetime.datetime(2025, 4, 30, 14, 36, 24, 872336), datetime.datetime(2025, 4, 30, 14, 36, 24, 872336), 0)
2025-04-30 14:36:24,873 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:24,881 - services.execution.block_executor - DEBUG - 为子块 2 创建记录, 记录ID: 93d37f97-b38f-462d-9df7-743fea3359ba
2025-04-30 14:36:24,881 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:24,881 - sqlalchemy.engine.Engine - INFO - SELECT vwed_blockrecord.id, vwed_blockrecord.block_name, vwed_blockrecord.block_id, vwed_blockrecord.block_config_id, vwed_blockrecord.block_input_params, vwed_blockrecord.block_input_params_value, vwed_blockrecord.block_out_params_value, vwed_blockrecord.block_internal_variables, vwed_blockrecord.block_execute_name, vwed_blockrecord.task_id, vwed_blockrecord.task_record_id, vwed_blockrecord.started_on, vwed_blockrecord.ended_on, vwed_blockrecord.ended_reason, vwed_blockrecord.status, vwed_blockrecord.ctrl_status, vwed_blockrecord.input_params, vwed_blockrecord.internal_variables, vwed_blockrecord.output_params, vwed_blockrecord.version, vwed_blockrecord.remark, vwed_blockrecord.created_at, vwed_blockrecord.updated_at, vwed_blockrecord.is_deleted 
FROM vwed_blockrecord 
WHERE vwed_blockrecord.id = %s
2025-04-30 14:36:24,881 - sqlalchemy.engine.Engine - INFO - [cached since 3.079s ago] ('93d37f97-b38f-462d-9df7-743fea3359ba',)
2025-04-30 14:36:24,882 - services.execution.block_executor - INFO - 块 b2 (ID: 2) 设置的变量: []
2025-04-30 14:36:24,885 - services.execution.block_executor - INFO - 为块 b2 存储输出: ['selectedAgvId']
2025-04-30 14:36:24,885 - sqlalchemy.engine.Engine - INFO - UPDATE vwed_blockrecord SET block_out_params_value=%s, ended_reason=%s, internal_variables=%s, output_params=%s, remark=%s, updated_at=%s WHERE vwed_blockrecord.id = %s
2025-04-30 14:36:24,886 - sqlalchemy.engine.Engine - INFO - [generated in 0.00073s] ('{"selectedAgvId": "1912328602264645634"}', '执行中', "{'agv_for_block_2': '1912328602264645634', 'agv_for_b2': '1912328602264645634', 'agv_task_id_2': '1917468044662341634'}", '{"blocks": {"b2": {"selectedAgvId": "1912328602264645634"}}}', '执行中', datetime.datetime(2025, 4, 30, 14, 36, 24, 885745), '93d37f97-b38f-462d-9df7-743fea3359ba')
2025-04-30 14:36:24,887 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:24,897 - services.execution.block_executor - INFO - 开始执行子块 2 的处理逻辑
2025-04-30 14:36:24,897 - services.execution.handlers.robot_scheduling - INFO - 找到块 b2(ID:2) 专用的机器人ID: 1912328602264645634
2025-04-30 14:36:24,897 - services.execution.handlers.robot_scheduling - INFO - 执行机器人通用动作，块 b2(ID:2) 使用机器人: 1912328602264645634, 目标站点: PT02
2025-04-30 14:36:24,897 - services.sync_service - INFO - 正在为任务添加动作: 1917468044662341634, 站点: PT02, 动作: JackUnload
2025-04-30 14:36:24,977 - services.sync_service - INFO - 成功为任务添加动作: 1917468044662341634, 站点: PT02, 动作: JackUnload
2025-04-30 14:36:24,978 - services.sync_service - INFO - 开始等待任务块 1917468057480134658 的动作完成
2025-04-30 14:36:24,979 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:25,093 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994984452}
2025-04-30 14:36:25,095 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 1 次
2025-04-30 14:36:25,615 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:25,682 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994985109}
2025-04-30 14:36:25,682 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 2 次
2025-04-30 14:36:25,756 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:25,756 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:25,756 - sqlalchemy.engine.Engine - INFO - [cached since 3.031s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:25,760 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:26,190 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:26,225 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994985650}
2025-04-30 14:36:26,227 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 3 次
2025-04-30 14:36:26,748 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:26,781 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:26,781 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:26,781 - sqlalchemy.engine.Engine - INFO - [cached since 4.055s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:26,782 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:26,796 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994986222}
2025-04-30 14:36:26,796 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 4 次
2025-04-30 14:36:27,307 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:27,327 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994986755}
2025-04-30 14:36:27,329 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 5 次
2025-04-30 14:36:27,794 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:27,795 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:27,795 - sqlalchemy.engine.Engine - INFO - [cached since 5.069s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:27,799 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:27,823 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:27,858 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994987284}
2025-04-30 14:36:27,859 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 6 次
2025-04-30 14:36:28,367 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:28,395 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994987814}
2025-04-30 14:36:28,396 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 7 次
2025-04-30 14:36:28,806 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:28,809 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:28,810 - sqlalchemy.engine.Engine - INFO - [cached since 6.083s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:28,811 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:28,913 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:28,983 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994988407}
2025-04-30 14:36:28,984 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 8 次
2025-04-30 14:36:29,485 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:29,518 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994988944}
2025-04-30 14:36:29,518 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 9 次
2025-04-30 14:36:29,825 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:29,828 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:29,828 - sqlalchemy.engine.Engine - INFO - [cached since 7.102s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:29,832 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:30,041 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:30,105 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994989531}
2025-04-30 14:36:30,105 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 10 次，继续等待...
2025-04-30 14:36:30,599 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:30,653 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994990074}
2025-04-30 14:36:30,654 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 11 次
2025-04-30 14:36:30,848 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:30,848 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:30,849 - sqlalchemy.engine.Engine - INFO - [cached since 8.123s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:30,851 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:31,156 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:31,194 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994990620}
2025-04-30 14:36:31,195 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 12 次
2025-04-30 14:36:31,718 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:31,838 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994991179}
2025-04-30 14:36:31,839 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 13 次
2025-04-30 14:36:31,859 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:31,860 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:31,860 - sqlalchemy.engine.Engine - INFO - [cached since 9.135s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:31,862 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:32,341 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:32,390 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994991803}
2025-04-30 14:36:32,391 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 14 次
2025-04-30 14:36:32,886 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:32,887 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:32,888 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:32,890 - sqlalchemy.engine.Engine - INFO - [cached since 10.16s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:32,891 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:32,911 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994992337}
2025-04-30 14:36:32,912 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 15 次
2025-04-30 14:36:33,411 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:33,441 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994992867}
2025-04-30 14:36:33,441 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 16 次
2025-04-30 14:36:33,909 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:33,913 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:33,917 - sqlalchemy.engine.Engine - INFO - [cached since 11.19s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:33,921 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:33,957 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:33,986 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994993412}
2025-04-30 14:36:33,987 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 17 次
2025-04-30 14:36:34,506 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:34,582 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994993957}
2025-04-30 14:36:34,582 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 18 次
2025-04-30 14:36:34,942 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:34,943 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:34,943 - sqlalchemy.engine.Engine - INFO - [cached since 12.22s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:34,944 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:35,098 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:35,167 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994994571}
2025-04-30 14:36:35,167 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 19 次
2025-04-30 14:36:35,671 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:35,716 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994995144}
2025-04-30 14:36:35,718 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 20 次，继续等待...
2025-04-30 14:36:35,966 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:35,966 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:35,967 - sqlalchemy.engine.Engine - INFO - [cached since 13.24s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:35,970 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:36,201 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:36,232 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994995658}
2025-04-30 14:36:36,232 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 21 次
2025-04-30 14:36:36,747 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:36,802 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994996221}
2025-04-30 14:36:36,802 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 22 次
2025-04-30 14:36:36,995 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:36,995 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:36,996 - sqlalchemy.engine.Engine - INFO - [cached since 14.27s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:36,997 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:37,306 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:37,352 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994996779}
2025-04-30 14:36:37,353 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 23 次
2025-04-30 14:36:37,865 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:37,894 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994997322}
2025-04-30 14:36:37,895 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 24 次
2025-04-30 14:36:37,991 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:37,995 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:37,999 - sqlalchemy.engine.Engine - INFO - [cached since 15.27s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:38,003 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:38,411 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:38,454 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994997879}
2025-04-30 14:36:38,455 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 25 次
2025-04-30 14:36:38,972 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:38,996 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994998420}
2025-04-30 14:36:38,996 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 26 次
2025-04-30 14:36:39,021 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:39,021 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:39,023 - sqlalchemy.engine.Engine - INFO - [cached since 16.3s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:39,023 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:39,501 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:39,521 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994998948}
2025-04-30 14:36:39,522 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 27 次
2025-04-30 14:36:40,045 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:40,046 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:40,047 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:40,048 - sqlalchemy.engine.Engine - INFO - [cached since 17.32s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:40,049 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:40,107 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745994999494}
2025-04-30 14:36:40,107 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 28 次
2025-04-30 14:36:40,605 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:40,639 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995000064}
2025-04-30 14:36:40,640 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 29 次
2025-04-30 14:36:41,073 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:41,075 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:41,075 - sqlalchemy.engine.Engine - INFO - [cached since 18.35s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:41,077 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:41,150 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:41,171 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995000596}
2025-04-30 14:36:41,173 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 30 次，继续等待...
2025-04-30 14:36:41,679 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:41,714 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995001128}
2025-04-30 14:36:41,716 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 31 次
2025-04-30 14:36:42,082 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:42,085 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:42,089 - sqlalchemy.engine.Engine - INFO - [cached since 19.36s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:42,094 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:42,206 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:42,266 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995001693}
2025-04-30 14:36:42,266 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 32 次
2025-04-30 14:36:42,764 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:42,786 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995002210}
2025-04-30 14:36:42,788 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 33 次
2025-04-30 14:36:43,121 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:43,123 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:43,126 - sqlalchemy.engine.Engine - INFO - [cached since 20.4s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:43,129 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:43,290 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:43,313 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995002738}
2025-04-30 14:36:43,313 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 34 次
2025-04-30 14:36:43,820 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:43,868 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995003296}
2025-04-30 14:36:43,871 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 35 次
2025-04-30 14:36:44,147 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:44,149 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:44,149 - sqlalchemy.engine.Engine - INFO - [cached since 21.42s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:44,151 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:44,362 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:44,386 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995003810}
2025-04-30 14:36:44,389 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 36 次
2025-04-30 14:36:44,895 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:44,920 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995004345}
2025-04-30 14:36:44,920 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 37 次
2025-04-30 14:36:45,163 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:45,164 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:45,164 - sqlalchemy.engine.Engine - INFO - [cached since 22.44s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:45,165 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:45,426 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:45,472 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995004899}
2025-04-30 14:36:45,475 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 38 次
2025-04-30 14:36:45,988 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:46,071 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995005497}
2025-04-30 14:36:46,071 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 39 次
2025-04-30 14:36:46,174 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:46,176 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:46,177 - sqlalchemy.engine.Engine - INFO - [cached since 23.45s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:46,178 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:46,591 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:46,624 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995006050}
2025-04-30 14:36:46,624 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 40 次，继续等待...
2025-04-30 14:36:47,150 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:47,185 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995006611}
2025-04-30 14:36:47,186 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 41 次
2025-04-30 14:36:47,186 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:47,189 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:47,190 - sqlalchemy.engine.Engine - INFO - [cached since 24.46s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:47,191 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:47,696 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:47,727 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995007153}
2025-04-30 14:36:47,727 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 42 次
2025-04-30 14:36:48,209 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:48,211 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:48,211 - sqlalchemy.engine.Engine - INFO - [cached since 25.48s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:48,212 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:48,240 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:48,288 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995007714}
2025-04-30 14:36:48,289 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 43 次
2025-04-30 14:36:48,786 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:48,834 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995008261}
2025-04-30 14:36:48,835 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 44 次
2025-04-30 14:36:49,221 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:49,222 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:49,222 - sqlalchemy.engine.Engine - INFO - [cached since 26.5s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:49,223 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:49,329 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:49,351 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995008776}
2025-04-30 14:36:49,353 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 45 次
2025-04-30 14:36:49,858 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:49,915 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995009336}
2025-04-30 14:36:49,916 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 46 次
2025-04-30 14:36:50,235 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:50,239 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:50,241 - sqlalchemy.engine.Engine - INFO - [cached since 27.52s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:50,244 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:50,405 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:50,454 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995009876}
2025-04-30 14:36:50,455 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 47 次
2025-04-30 14:36:50,965 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:50,984 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995010411}
2025-04-30 14:36:50,986 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 48 次
2025-04-30 14:36:51,247 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:51,248 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:51,249 - sqlalchemy.engine.Engine - INFO - [cached since 28.52s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:51,250 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:51,509 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:51,589 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995011015}
2025-04-30 14:36:51,590 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 49 次
2025-04-30 14:36:52,081 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:52,126 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995011554}
2025-04-30 14:36:52,128 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 50 次，继续等待...
2025-04-30 14:36:52,224 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:52,225 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:52,225 - sqlalchemy.engine.Engine - INFO - [cached since 29.5s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:52,229 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:52,644 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:52,682 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995012110}
2025-04-30 14:36:52,683 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 51 次
2025-04-30 14:36:53,189 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:53,237 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:53,237 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:53,238 - sqlalchemy.engine.Engine - INFO - [cached since 30.51s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:53,239 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:53,452 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995012721}
2025-04-30 14:36:53,453 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 52 次
2025-04-30 14:36:53,953 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:54,057 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995013429}
2025-04-30 14:36:54,057 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 53 次
2025-04-30 14:36:54,249 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:54,250 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:54,251 - sqlalchemy.engine.Engine - INFO - [cached since 31.52s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:54,252 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:54,576 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:54,605 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995014027}
2025-04-30 14:36:54,605 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 54 次
2025-04-30 14:36:55,119 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:55,258 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:55,261 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:55,261 - sqlalchemy.engine.Engine - INFO - [cached since 32.54s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:55,262 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:55,281 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995014638}
2025-04-30 14:36:55,282 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 55 次
2025-04-30 14:36:55,791 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:55,893 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995015255}
2025-04-30 14:36:55,894 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 56 次
2025-04-30 14:36:56,275 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:56,277 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:56,279 - sqlalchemy.engine.Engine - INFO - [cached since 33.55s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:56,280 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:56,399 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:56,433 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995015853}
2025-04-30 14:36:56,434 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 57 次
2025-04-30 14:36:56,931 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:56,983 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995016383}
2025-04-30 14:36:56,986 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 58 次
2025-04-30 14:36:57,274 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:57,278 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:57,282 - sqlalchemy.engine.Engine - INFO - [cached since 34.56s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:57,284 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:57,491 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:57,519 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995016946}
2025-04-30 14:36:57,519 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 59 次
2025-04-30 14:36:58,023 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:58,057 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995017473}
2025-04-30 14:36:58,057 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 60 次，继续等待...
2025-04-30 14:36:58,302 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:58,303 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:58,304 - sqlalchemy.engine.Engine - INFO - [cached since 35.58s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:58,308 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:58,564 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:58,640 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995018042}
2025-04-30 14:36:58,641 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 61 次
2025-04-30 14:36:59,154 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:59,296 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995018631}
2025-04-30 14:36:59,300 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 62 次
2025-04-30 14:36:59,301 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:36:59,303 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:36:59,307 - sqlalchemy.engine.Engine - INFO - [cached since 36.58s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:36:59,314 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:36:59,814 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:36:59,865 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995019292}
2025-04-30 14:36:59,866 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 63 次
2025-04-30 14:37:00,332 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:00,333 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:00,333 - sqlalchemy.engine.Engine - INFO - [cached since 37.61s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:00,334 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:00,377 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:00,399 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995019824}
2025-04-30 14:37:00,400 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 64 次
2025-04-30 14:37:00,906 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:00,973 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995020380}
2025-04-30 14:37:00,974 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 65 次
2025-04-30 14:37:01,346 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:01,348 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:01,348 - sqlalchemy.engine.Engine - INFO - [cached since 38.62s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:01,350 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:01,501 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:01,521 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995020948}
2025-04-30 14:37:01,521 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 66 次
2025-04-30 14:37:02,045 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:02,091 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995021501}
2025-04-30 14:37:02,092 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 67 次
2025-04-30 14:37:02,371 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:02,373 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:02,377 - sqlalchemy.engine.Engine - INFO - [cached since 39.65s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:02,381 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:02,587 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:02,612 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995022035}
2025-04-30 14:37:02,612 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 68 次
2025-04-30 14:37:03,114 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:03,163 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995022588}
2025-04-30 14:37:03,164 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 69 次
2025-04-30 14:37:03,397 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:03,398 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:03,398 - sqlalchemy.engine.Engine - INFO - [cached since 40.67s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:03,399 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:03,661 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:03,690 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995023117}
2025-04-30 14:37:03,690 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 70 次，继续等待...
2025-04-30 14:37:04,204 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:04,249 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995023665}
2025-04-30 14:37:04,251 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 71 次
2025-04-30 14:37:04,420 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:04,421 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:04,422 - sqlalchemy.engine.Engine - INFO - [cached since 41.7s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:04,424 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:04,764 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:04,787 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995024211}
2025-04-30 14:37:04,788 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 72 次
2025-04-30 14:37:05,277 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:05,305 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995024731}
2025-04-30 14:37:05,308 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 73 次
2025-04-30 14:37:05,449 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:05,449 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:05,451 - sqlalchemy.engine.Engine - INFO - [cached since 42.72s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:05,452 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:05,821 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:05,851 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995025278}
2025-04-30 14:37:05,852 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 74 次
2025-04-30 14:37:06,351 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:06,376 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995025799}
2025-04-30 14:37:06,376 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 75 次
2025-04-30 14:37:06,458 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:06,459 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:06,460 - sqlalchemy.engine.Engine - INFO - [cached since 43.73s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:06,460 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:06,880 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:06,926 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995026351}
2025-04-30 14:37:06,927 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 76 次
2025-04-30 14:37:07,423 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:07,440 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:07,444 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:07,450 - sqlalchemy.engine.Engine - INFO - [cached since 44.72s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:07,458 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995026881}
2025-04-30 14:37:07,461 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 77 次
2025-04-30 14:37:07,461 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:07,970 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:08,000 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995027426}
2025-04-30 14:37:08,004 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 78 次
2025-04-30 14:37:08,470 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:08,473 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:08,473 - sqlalchemy.engine.Engine - INFO - [cached since 45.75s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:08,475 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:08,530 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:08,559 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995027985}
2025-04-30 14:37:08,561 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 79 次
2025-04-30 14:37:09,073 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:09,109 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995028536}
2025-04-30 14:37:09,109 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 80 次，继续等待...
2025-04-30 14:37:09,481 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:09,483 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:09,483 - sqlalchemy.engine.Engine - INFO - [cached since 46.76s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:09,485 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:09,604 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:09,657 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995029077}
2025-04-30 14:37:09,658 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 81 次
2025-04-30 14:37:10,166 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:10,228 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995029655}
2025-04-30 14:37:10,228 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 82 次
2025-04-30 14:37:10,508 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:10,509 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:10,510 - sqlalchemy.engine.Engine - INFO - [cached since 47.78s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:10,512 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:10,741 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:10,773 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995030198}
2025-04-30 14:37:10,774 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 83 次
2025-04-30 14:37:11,286 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:11,311 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995030737}
2025-04-30 14:37:11,312 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 84 次
2025-04-30 14:37:11,518 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:11,519 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:11,519 - sqlalchemy.engine.Engine - INFO - [cached since 48.79s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:11,520 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:11,828 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:11,987 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995031402}
2025-04-30 14:37:11,988 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 85 次
2025-04-30 14:37:12,500 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:12,532 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:12,533 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:12,534 - sqlalchemy.engine.Engine - INFO - [cached since 49.81s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:12,535 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:12,710 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995032076}
2025-04-30 14:37:12,711 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 86 次
2025-04-30 14:37:13,198 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:13,528 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:13,529 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:13,529 - sqlalchemy.engine.Engine - INFO - [cached since 50.8s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:13,531 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:13,808 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995033233}
2025-04-30 14:37:13,809 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 87 次
2025-04-30 14:37:14,319 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:14,344 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995033769}
2025-04-30 14:37:14,345 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 88 次
2025-04-30 14:37:14,536 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:14,538 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:14,538 - sqlalchemy.engine.Engine - INFO - [cached since 51.81s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:14,540 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:14,864 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:14,945 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995034370}
2025-04-30 14:37:14,947 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 89 次
2025-04-30 14:37:15,457 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:15,491 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995034912}
2025-04-30 14:37:15,491 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 90 次，继续等待...
2025-04-30 14:37:15,552 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:15,553 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:15,555 - sqlalchemy.engine.Engine - INFO - [cached since 52.83s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:15,560 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:15,984 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:16,030 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995035429}
2025-04-30 14:37:16,033 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 91 次
2025-04-30 14:37:16,541 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:16,562 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995035989}
2025-04-30 14:37:16,563 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 92 次
2025-04-30 14:37:16,588 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:16,590 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:16,590 - sqlalchemy.engine.Engine - INFO - [cached since 53.86s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:16,593 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:17,054 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:17,095 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:17,095 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:37:17,096 - sqlalchemy.engine.Engine - INFO - [cached since 60.01s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 37, 17, 94282))
2025-04-30 14:37:17,098 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:17,110 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995036536}
2025-04-30 14:37:17,110 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 93 次
2025-04-30 14:37:17,586 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:17,587 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:17,587 - sqlalchemy.engine.Engine - INFO - [cached since 54.86s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:17,591 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:17,617 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:17,646 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995037061}
2025-04-30 14:37:17,647 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 94 次
2025-04-30 14:37:18,160 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:18,207 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995037633}
2025-04-30 14:37:18,208 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 95 次
2025-04-30 14:37:18,569 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:18,570 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:18,574 - sqlalchemy.engine.Engine - INFO - [cached since 55.85s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:18,576 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:18,692 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:18,712 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995038139}
2025-04-30 14:37:18,713 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 96 次
2025-04-30 14:37:19,224 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:19,255 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995038681}
2025-04-30 14:37:19,255 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 97 次
2025-04-30 14:37:19,582 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:19,582 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:19,583 - sqlalchemy.engine.Engine - INFO - [cached since 56.86s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:19,585 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:19,769 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:19,795 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995039213}
2025-04-30 14:37:19,797 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 98 次
2025-04-30 14:37:20,295 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:20,370 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995039794}
2025-04-30 14:37:20,371 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 99 次
2025-04-30 14:37:20,592 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:20,593 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:20,594 - sqlalchemy.engine.Engine - INFO - [cached since 57.87s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:20,595 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:20,857 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:20,876 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995040303}
2025-04-30 14:37:20,877 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 100 次，继续等待...
2025-04-30 14:37:21,385 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:21,402 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995040830}
2025-04-30 14:37:21,403 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 101 次
2025-04-30 14:37:21,603 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:21,603 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:21,604 - sqlalchemy.engine.Engine - INFO - [cached since 58.88s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:21,605 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:21,900 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:21,920 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995041346}
2025-04-30 14:37:21,921 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 102 次
2025-04-30 14:37:22,418 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:22,463 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995041890}
2025-04-30 14:37:22,464 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 103 次
2025-04-30 14:37:22,619 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:22,619 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:22,620 - sqlalchemy.engine.Engine - INFO - [cached since 59.89s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:22,622 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:22,975 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:23,029 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995042453}
2025-04-30 14:37:23,031 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 104 次
2025-04-30 14:37:23,531 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:23,560 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995042988}
2025-04-30 14:37:23,562 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 105 次
2025-04-30 14:37:23,627 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:23,630 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:23,631 - sqlalchemy.engine.Engine - INFO - [cached since 60.9s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:23,632 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:24,063 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:24,126 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995043511}
2025-04-30 14:37:24,129 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 106 次
2025-04-30 14:37:24,654 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:24,656 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:24,658 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:24,659 - sqlalchemy.engine.Engine - INFO - [cached since 61.93s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:24,660 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:24,678 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995044106}
2025-04-30 14:37:24,679 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 107 次
2025-04-30 14:37:25,199 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:25,294 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995044647}
2025-04-30 14:37:25,296 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 108 次
2025-04-30 14:37:25,652 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:25,652 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:25,656 - sqlalchemy.engine.Engine - INFO - [cached since 62.93s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:25,660 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:25,791 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:25,818 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995045238}
2025-04-30 14:37:25,819 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 109 次
2025-04-30 14:37:26,332 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:26,378 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995045805}
2025-04-30 14:37:26,380 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 110 次，继续等待...
2025-04-30 14:37:26,674 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:26,676 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:26,677 - sqlalchemy.engine.Engine - INFO - [cached since 63.95s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:26,678 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:26,891 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:26,917 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995046344}
2025-04-30 14:37:26,917 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 111 次
2025-04-30 14:37:27,432 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:27,477 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995046905}
2025-04-30 14:37:27,480 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 112 次
2025-04-30 14:37:27,695 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:27,696 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:27,697 - sqlalchemy.engine.Engine - INFO - [cached since 64.97s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:27,698 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:27,991 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:28,041 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995047469}
2025-04-30 14:37:28,043 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 113 次
2025-04-30 14:37:28,536 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:28,554 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995047981}
2025-04-30 14:37:28,554 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 114 次
2025-04-30 14:37:28,709 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:28,710 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:28,710 - sqlalchemy.engine.Engine - INFO - [cached since 65.98s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:28,711 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:29,068 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:29,146 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995048574}
2025-04-30 14:37:29,147 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 115 次
2025-04-30 14:37:29,665 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:29,698 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995049124}
2025-04-30 14:37:29,698 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 116 次
2025-04-30 14:37:29,699 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:29,699 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:29,699 - sqlalchemy.engine.Engine - INFO - [cached since 66.97s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:29,700 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:30,209 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:30,253 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995049665}
2025-04-30 14:37:30,254 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 117 次
2025-04-30 14:37:30,691 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:30,691 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:30,692 - sqlalchemy.engine.Engine - INFO - [cached since 67.97s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:30,692 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:30,769 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:30,791 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995050218}
2025-04-30 14:37:30,794 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 118 次
2025-04-30 14:37:31,298 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:31,320 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995050743}
2025-04-30 14:37:31,320 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 119 次
2025-04-30 14:37:31,705 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:31,707 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:31,708 - sqlalchemy.engine.Engine - INFO - [cached since 68.98s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:31,710 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:31,830 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:31,850 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995051276}
2025-04-30 14:37:31,851 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 120 次，继续等待...
2025-04-30 14:37:32,362 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:32,419 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995051807}
2025-04-30 14:37:32,420 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 121 次
2025-04-30 14:37:32,721 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:32,722 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:32,722 - sqlalchemy.engine.Engine - INFO - [cached since 70s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:32,724 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:32,938 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:32,958 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995052383}
2025-04-30 14:37:32,958 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 122 次
2025-04-30 14:37:33,481 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:33,517 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995052936}
2025-04-30 14:37:33,517 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 123 次
2025-04-30 14:37:33,728 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:33,728 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:33,731 - sqlalchemy.engine.Engine - INFO - [cached since 71.01s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:33,734 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:34,038 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:34,069 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995053494}
2025-04-30 14:37:34,073 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 124 次
2025-04-30 14:37:34,567 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:34,594 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995054023}
2025-04-30 14:37:34,594 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 125 次
2025-04-30 14:37:34,737 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:34,738 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:34,738 - sqlalchemy.engine.Engine - INFO - [cached since 72.01s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:34,738 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:35,083 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:35,125 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995054553}
2025-04-30 14:37:35,126 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 126 次
2025-04-30 14:37:35,644 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:35,679 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995055089}
2025-04-30 14:37:35,680 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 127 次
2025-04-30 14:37:35,752 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:35,752 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:35,753 - sqlalchemy.engine.Engine - INFO - [cached since 73.03s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:35,754 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:36,202 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:36,222 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995055651}
2025-04-30 14:37:36,222 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 128 次
2025-04-30 14:37:36,731 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:36,763 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:36,764 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:36,764 - sqlalchemy.engine.Engine - INFO - [cached since 74.04s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:36,767 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:36,776 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995056203}
2025-04-30 14:37:36,776 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 129 次
2025-04-30 14:37:37,278 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:37,324 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995056751}
2025-04-30 14:37:37,325 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 130 次，继续等待...
2025-04-30 14:37:37,787 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:37,788 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:37,789 - sqlalchemy.engine.Engine - INFO - [cached since 75.06s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:37,791 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:37,819 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:37,864 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995057290}
2025-04-30 14:37:37,866 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 131 次
2025-04-30 14:37:38,363 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:38,394 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995057823}
2025-04-30 14:37:38,394 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 132 次
2025-04-30 14:37:38,795 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:38,796 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:38,796 - sqlalchemy.engine.Engine - INFO - [cached since 76.07s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:38,798 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:38,918 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:39,010 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995058436}
2025-04-30 14:37:39,011 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 133 次
2025-04-30 14:37:39,508 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:39,552 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995058979}
2025-04-30 14:37:39,552 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 134 次
2025-04-30 14:37:39,820 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:39,821 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:39,822 - sqlalchemy.engine.Engine - INFO - [cached since 77.1s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:39,825 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:40,069 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:40,113 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995059539}
2025-04-30 14:37:40,116 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 135 次
2025-04-30 14:37:40,615 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:40,658 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995060085}
2025-04-30 14:37:40,659 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 136 次
2025-04-30 14:37:40,831 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:40,831 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:40,832 - sqlalchemy.engine.Engine - INFO - [cached since 78.11s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:40,834 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:41,157 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:41,347 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995060720}
2025-04-30 14:37:41,347 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 137 次
2025-04-30 14:37:41,857 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:41,858 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:41,860 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:41,862 - sqlalchemy.engine.Engine - INFO - [cached since 79.14s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:41,865 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:41,879 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995061305}
2025-04-30 14:37:41,880 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 138 次
2025-04-30 14:37:42,389 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:42,437 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995061864}
2025-04-30 14:37:42,438 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 139 次
2025-04-30 14:37:42,888 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:42,888 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:42,889 - sqlalchemy.engine.Engine - INFO - [cached since 80.16s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:42,891 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:42,933 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:42,973 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995062398}
2025-04-30 14:37:42,974 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 140 次，继续等待...
2025-04-30 14:37:43,477 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:43,501 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995062928}
2025-04-30 14:37:43,501 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 141 次
2025-04-30 14:37:43,896 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:43,896 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:43,897 - sqlalchemy.engine.Engine - INFO - [cached since 81.17s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:43,897 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:43,990 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:44,019 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995063447}
2025-04-30 14:37:44,019 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 142 次
2025-04-30 14:37:44,534 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:44,554 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995063980}
2025-04-30 14:37:44,554 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 143 次
2025-04-30 14:37:44,923 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:44,927 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:44,927 - sqlalchemy.engine.Engine - INFO - [cached since 82.2s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:44,927 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:45,077 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:45,148 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995064575}
2025-04-30 14:37:45,150 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 144 次
2025-04-30 14:37:45,670 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:45,688 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995065117}
2025-04-30 14:37:45,689 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 145 次
2025-04-30 14:37:45,938 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:45,943 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:45,944 - sqlalchemy.engine.Engine - INFO - [cached since 83.22s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:45,947 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:46,215 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:46,279 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995065707}
2025-04-30 14:37:46,279 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 146 次
2025-04-30 14:37:46,777 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:46,805 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995066232}
2025-04-30 14:37:46,805 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 147 次
2025-04-30 14:37:46,962 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:46,963 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:46,964 - sqlalchemy.engine.Engine - INFO - [cached since 84.24s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:46,965 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:47,321 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:47,364 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995066776}
2025-04-30 14:37:47,364 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 148 次
2025-04-30 14:37:47,861 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:47,889 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995067316}
2025-04-30 14:37:47,891 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 149 次
2025-04-30 14:37:47,971 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:47,971 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:47,972 - sqlalchemy.engine.Engine - INFO - [cached since 85.25s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:47,972 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:48,387 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:48,430 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995067858}
2025-04-30 14:37:48,431 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 150 次，继续等待...
2025-04-30 14:37:48,929 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:48,994 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:48,994 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:48,994 - sqlalchemy.engine.Engine - INFO - [cached since 86.27s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:48,995 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:49,001 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995068402}
2025-04-30 14:37:49,001 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 151 次
2025-04-30 14:37:49,506 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:49,525 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995068952}
2025-04-30 14:37:49,526 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 152 次
2025-04-30 14:37:49,999 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:50,000 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:50,001 - sqlalchemy.engine.Engine - INFO - [cached since 87.27s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:50,002 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:50,029 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:50,059 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995069486}
2025-04-30 14:37:50,059 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 153 次
2025-04-30 14:37:50,560 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:50,588 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995070017}
2025-04-30 14:37:50,590 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 154 次
2025-04-30 14:37:51,014 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:51,014 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:51,014 - sqlalchemy.engine.Engine - INFO - [cached since 88.29s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:51,015 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:51,089 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:51,113 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995070539}
2025-04-30 14:37:51,116 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 155 次
2025-04-30 14:37:51,633 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:51,661 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995071089}
2025-04-30 14:37:51,662 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 156 次
2025-04-30 14:37:52,008 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:52,009 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:52,009 - sqlalchemy.engine.Engine - INFO - [cached since 89.28s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:52,010 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:52,146 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:52,191 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995071619}
2025-04-30 14:37:52,193 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 157 次
2025-04-30 14:37:52,706 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:52,724 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995072152}
2025-04-30 14:37:52,724 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 158 次
2025-04-30 14:37:53,004 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:53,005 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:53,006 - sqlalchemy.engine.Engine - INFO - [cached since 90.28s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:53,010 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:53,236 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:53,255 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995072681}
2025-04-30 14:37:53,255 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 159 次
2025-04-30 14:37:53,766 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:53,831 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995073258}
2025-04-30 14:37:53,832 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 160 次，继续等待...
2025-04-30 14:37:54,003 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:54,005 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:54,007 - sqlalchemy.engine.Engine - INFO - [cached since 91.28s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:54,008 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:54,327 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:54,354 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995073777}
2025-04-30 14:37:54,355 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 161 次
2025-04-30 14:37:54,873 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:54,889 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995074317}
2025-04-30 14:37:54,890 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 162 次
2025-04-30 14:37:55,026 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:55,029 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:55,030 - sqlalchemy.engine.Engine - INFO - [cached since 92.3s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:55,033 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:55,384 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:55,485 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995074873}
2025-04-30 14:37:55,485 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 163 次
2025-04-30 14:37:55,973 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:56,019 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995075444}
2025-04-30 14:37:56,021 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 164 次
2025-04-30 14:37:56,021 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:56,021 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:56,021 - sqlalchemy.engine.Engine - INFO - [cached since 93.3s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:56,023 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:56,518 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:56,571 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995075998}
2025-04-30 14:37:56,573 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 165 次
2025-04-30 14:37:57,033 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:57,034 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:57,039 - sqlalchemy.engine.Engine - INFO - [cached since 94.31s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:57,044 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:57,079 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:57,127 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995076553}
2025-04-30 14:37:57,128 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 166 次
2025-04-30 14:37:57,643 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:57,659 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995077087}
2025-04-30 14:37:57,659 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 167 次
2025-04-30 14:37:58,081 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:58,084 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:58,088 - sqlalchemy.engine.Engine - INFO - [cached since 95.36s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:58,095 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:58,171 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:58,238 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995077617}
2025-04-30 14:37:58,239 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 168 次
2025-04-30 14:37:58,729 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:58,754 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995078182}
2025-04-30 14:37:58,755 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 169 次
2025-04-30 14:37:59,117 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:37:59,119 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:37:59,119 - sqlalchemy.engine.Engine - INFO - [cached since 96.39s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:37:59,121 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:37:59,258 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:59,276 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995078704}
2025-04-30 14:37:59,276 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 170 次，继续等待...
2025-04-30 14:37:59,777 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:37:59,821 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995079248}
2025-04-30 14:37:59,822 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 171 次
2025-04-30 14:38:00,118 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:00,119 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:00,120 - sqlalchemy.engine.Engine - INFO - [cached since 97.39s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:00,121 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:00,334 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:00,378 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995079806}
2025-04-30 14:38:00,379 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 172 次
2025-04-30 14:38:00,882 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:00,925 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995080353}
2025-04-30 14:38:00,926 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 173 次
2025-04-30 14:38:01,099 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:01,101 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:01,101 - sqlalchemy.engine.Engine - INFO - [cached since 98.37s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:01,102 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:01,426 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:01,521 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995080881}
2025-04-30 14:38:01,522 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 174 次
2025-04-30 14:38:02,033 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:02,052 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995081479}
2025-04-30 14:38:02,052 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 175 次
2025-04-30 14:38:02,111 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:02,111 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:02,111 - sqlalchemy.engine.Engine - INFO - [cached since 99.39s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:02,112 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:02,564 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:02,594 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995082021}
2025-04-30 14:38:02,595 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 176 次
2025-04-30 14:38:03,112 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:03,113 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:03,113 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:03,113 - sqlalchemy.engine.Engine - INFO - [cached since 100.4s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:03,115 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:03,157 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995082584}
2025-04-30 14:38:03,157 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 177 次
2025-04-30 14:38:03,670 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:03,687 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995083115}
2025-04-30 14:38:03,690 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 178 次
2025-04-30 14:38:04,121 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:04,127 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:04,129 - sqlalchemy.engine.Engine - INFO - [cached since 101.4s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:04,132 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:04,197 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:04,213 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995083640}
2025-04-30 14:38:04,213 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 179 次
2025-04-30 14:38:04,725 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:04,801 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995084229}
2025-04-30 14:38:04,804 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 180 次，继续等待...
2025-04-30 14:38:05,147 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:05,150 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:05,154 - sqlalchemy.engine.Engine - INFO - [cached since 102.4s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:05,158 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:05,319 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:05,335 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995084763}
2025-04-30 14:38:05,335 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 181 次
2025-04-30 14:38:05,860 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:05,882 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995085311}
2025-04-30 14:38:05,885 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 182 次
2025-04-30 14:38:06,170 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:06,171 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:06,171 - sqlalchemy.engine.Engine - INFO - [cached since 103.4s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:06,173 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:06,403 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:06,422 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995085849}
2025-04-30 14:38:06,422 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 183 次
2025-04-30 14:38:06,931 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:06,975 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995086403}
2025-04-30 14:38:06,977 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 184 次
2025-04-30 14:38:07,178 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:07,179 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:07,179 - sqlalchemy.engine.Engine - INFO - [cached since 104.5s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:07,180 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:07,471 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:07,494 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995086920}
2025-04-30 14:38:07,496 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 185 次
2025-04-30 14:38:08,000 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:08,068 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995087449}
2025-04-30 14:38:08,069 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 186 次
2025-04-30 14:38:08,202 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:08,202 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:08,203 - sqlalchemy.engine.Engine - INFO - [cached since 105.5s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:08,204 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:08,591 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:08,613 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995088041}
2025-04-30 14:38:08,613 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 187 次
2025-04-30 14:38:09,115 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:09,131 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995088559}
2025-04-30 14:38:09,132 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 188 次
2025-04-30 14:38:09,225 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:09,227 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:09,227 - sqlalchemy.engine.Engine - INFO - [cached since 106.5s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:09,228 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:09,644 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:09,673 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995089100}
2025-04-30 14:38:09,673 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 189 次
2025-04-30 14:38:10,185 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:10,247 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:10,251 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:10,253 - sqlalchemy.engine.Engine - INFO - [cached since 107.5s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:10,259 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:10,261 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995089690}
2025-04-30 14:38:10,262 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 190 次，继续等待...
2025-04-30 14:38:10,764 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:10,848 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995090232}
2025-04-30 14:38:10,848 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 191 次
2025-04-30 14:38:11,261 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:11,261 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:11,262 - sqlalchemy.engine.Engine - INFO - [cached since 108.5s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:11,263 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:11,371 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:11,418 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995090839}
2025-04-30 14:38:11,419 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 192 次
2025-04-30 14:38:11,915 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:11,941 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995091368}
2025-04-30 14:38:11,942 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 193 次
2025-04-30 14:38:12,271 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:12,273 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:12,275 - sqlalchemy.engine.Engine - INFO - [cached since 109.5s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:12,278 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:12,457 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:12,475 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995091901}
2025-04-30 14:38:12,476 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 194 次
2025-04-30 14:38:12,973 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:13,001 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995092429}
2025-04-30 14:38:13,002 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 195 次
2025-04-30 14:38:13,284 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:13,285 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:13,286 - sqlalchemy.engine.Engine - INFO - [cached since 110.6s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:13,288 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:13,518 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:13,552 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995092973}
2025-04-30 14:38:13,552 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 196 次
2025-04-30 14:38:14,061 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:14,137 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995093565}
2025-04-30 14:38:14,138 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 197 次
2025-04-30 14:38:14,279 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:14,283 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:14,286 - sqlalchemy.engine.Engine - INFO - [cached since 111.6s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:14,291 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:14,635 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:14,651 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995094079}
2025-04-30 14:38:14,652 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 198 次
2025-04-30 14:38:15,147 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:15,177 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995094603}
2025-04-30 14:38:15,178 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 199 次
2025-04-30 14:38:15,289 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:15,290 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:15,290 - sqlalchemy.engine.Engine - INFO - [cached since 112.6s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:15,292 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:15,692 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:15,737 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995095165}
2025-04-30 14:38:15,739 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 200 次，继续等待...
2025-04-30 14:38:16,238 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:16,257 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995095684}
2025-04-30 14:38:16,257 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 201 次
2025-04-30 14:38:16,302 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:16,303 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:16,303 - sqlalchemy.engine.Engine - INFO - [cached since 113.6s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:16,304 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:16,769 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:16,878 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995096262}
2025-04-30 14:38:16,879 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 202 次
2025-04-30 14:38:17,099 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:17,100 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:38:17,103 - sqlalchemy.engine.Engine - INFO - [cached since 120s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 38, 17, 98772))
2025-04-30 14:38:17,107 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:17,316 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:17,318 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:17,318 - sqlalchemy.engine.Engine - INFO - [cached since 114.6s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:17,319 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:17,394 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:17,454 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995096865}
2025-04-30 14:38:17,454 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 203 次
2025-04-30 14:38:17,954 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:18,013 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995097441}
2025-04-30 14:38:18,014 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 204 次
2025-04-30 14:38:18,324 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:18,324 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:18,325 - sqlalchemy.engine.Engine - INFO - [cached since 115.6s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:18,325 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:18,525 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:18,543 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995097971}
2025-04-30 14:38:18,544 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 205 次
2025-04-30 14:38:19,054 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:19,090 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995098516}
2025-04-30 14:38:19,091 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 206 次
2025-04-30 14:38:19,318 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:19,318 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:19,319 - sqlalchemy.engine.Engine - INFO - [cached since 116.6s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:19,321 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:19,597 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:19,867 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995099220}
2025-04-30 14:38:19,868 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 207 次
2025-04-30 14:38:20,344 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:20,344 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:20,345 - sqlalchemy.engine.Engine - INFO - [cached since 117.6s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:20,346 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:20,346 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:20,491 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995099888}
2025-04-30 14:38:20,492 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 208 次
2025-04-30 14:38:20,996 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:21,015 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995100443}
2025-04-30 14:38:21,015 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 209 次
2025-04-30 14:38:21,373 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:21,373 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:21,374 - sqlalchemy.engine.Engine - INFO - [cached since 118.6s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:21,376 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:21,525 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:21,674 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995101064}
2025-04-30 14:38:21,674 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 210 次，继续等待...
2025-04-30 14:38:22,174 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:22,200 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995101627}
2025-04-30 14:38:22,203 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 211 次
2025-04-30 14:38:22,392 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:22,393 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:22,393 - sqlalchemy.engine.Engine - INFO - [cached since 119.7s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:22,394 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:22,704 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:22,721 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995102148}
2025-04-30 14:38:22,721 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 212 次
2025-04-30 14:38:23,245 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:23,347 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995102705}
2025-04-30 14:38:23,348 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 213 次
2025-04-30 14:38:23,400 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:23,400 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:23,401 - sqlalchemy.engine.Engine - INFO - [cached since 120.7s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:23,402 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:23,869 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:23,919 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995103343}
2025-04-30 14:38:23,921 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 214 次
2025-04-30 14:38:24,404 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:24,405 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:24,407 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:24,410 - sqlalchemy.engine.Engine - INFO - [cached since 121.7s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:24,414 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:24,443 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995103870}
2025-04-30 14:38:24,445 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 215 次
2025-04-30 14:38:24,963 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:24,990 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995104420}
2025-04-30 14:38:24,992 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 216 次
2025-04-30 14:38:25,405 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:25,405 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:25,405 - sqlalchemy.engine.Engine - INFO - [cached since 122.7s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:25,406 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:25,513 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:25,532 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995104956}
2025-04-30 14:38:25,533 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 217 次
2025-04-30 14:38:26,042 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:26,107 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995105531}
2025-04-30 14:38:26,107 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 218 次
2025-04-30 14:38:26,402 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:26,408 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:26,411 - sqlalchemy.engine.Engine - INFO - [cached since 123.7s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:26,416 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:26,619 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:26,695 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995106093}
2025-04-30 14:38:26,696 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 219 次
2025-04-30 14:38:27,197 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:27,242 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995106670}
2025-04-30 14:38:27,244 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 220 次，继续等待...
2025-04-30 14:38:27,430 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:27,430 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:27,431 - sqlalchemy.engine.Engine - INFO - [cached since 124.7s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:27,432 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:27,740 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:27,825 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995107213}
2025-04-30 14:38:27,827 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 221 次
2025-04-30 14:38:28,329 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:28,375 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995107802}
2025-04-30 14:38:28,376 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 222 次
2025-04-30 14:38:28,438 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:28,442 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:28,443 - sqlalchemy.engine.Engine - INFO - [cached since 125.7s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:28,448 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:28,887 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:28,918 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995108336}
2025-04-30 14:38:28,919 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 223 次
2025-04-30 14:38:29,417 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:29,464 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:29,467 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:29,468 - sqlalchemy.engine.Engine - INFO - [cached since 126.7s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:29,469 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:29,565 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995108968}
2025-04-30 14:38:29,566 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 224 次
2025-04-30 14:38:30,070 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:30,094 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995109522}
2025-04-30 14:38:30,095 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 225 次
2025-04-30 14:38:30,488 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:30,490 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:30,490 - sqlalchemy.engine.Engine - INFO - [cached since 127.8s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:30,493 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:30,596 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:30,623 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995110052}
2025-04-30 14:38:30,624 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 226 次
2025-04-30 14:38:31,139 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:31,214 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995110589}
2025-04-30 14:38:31,215 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 227 次
2025-04-30 14:38:31,513 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:31,513 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:31,514 - sqlalchemy.engine.Engine - INFO - [cached since 128.8s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:31,517 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:31,729 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:31,748 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995111175}
2025-04-30 14:38:31,748 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 228 次
2025-04-30 14:38:32,259 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:32,323 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995111714}
2025-04-30 14:38:32,323 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 229 次
2025-04-30 14:38:32,543 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:32,546 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:32,547 - sqlalchemy.engine.Engine - INFO - [cached since 129.8s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:32,549 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:32,839 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:32,879 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995112308}
2025-04-30 14:38:32,880 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 230 次，继续等待...
2025-04-30 14:38:33,382 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:33,447 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995112857}
2025-04-30 14:38:33,447 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 231 次
2025-04-30 14:38:33,567 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:33,569 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:33,569 - sqlalchemy.engine.Engine - INFO - [cached since 130.8s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:33,570 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:33,956 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:34,015 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995113444}
2025-04-30 14:38:34,016 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 232 次
2025-04-30 14:38:34,505 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:34,525 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995113952}
2025-04-30 14:38:34,526 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 233 次
2025-04-30 14:38:34,583 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:34,584 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:34,585 - sqlalchemy.engine.Engine - INFO - [cached since 131.9s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:34,585 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:35,048 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:35,117 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995114545}
2025-04-30 14:38:35,118 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 234 次
2025-04-30 14:38:35,595 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:35,598 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:35,598 - sqlalchemy.engine.Engine - INFO - [cached since 132.9s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:35,600 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:35,605 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:35,634 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995115061}
2025-04-30 14:38:35,635 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 235 次
2025-04-30 14:38:36,134 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:36,205 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995115605}
2025-04-30 14:38:36,206 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 236 次
2025-04-30 14:38:36,612 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:36,614 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:36,614 - sqlalchemy.engine.Engine - INFO - [cached since 133.9s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:36,617 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:36,692 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:36,781 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995116208}
2025-04-30 14:38:36,782 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 237 次
2025-04-30 14:38:37,298 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:37,358 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995116785}
2025-04-30 14:38:37,360 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 238 次
2025-04-30 14:38:37,625 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:37,625 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:37,627 - sqlalchemy.engine.Engine - INFO - [cached since 134.9s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:37,627 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:37,871 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:37,887 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995117315}
2025-04-30 14:38:37,890 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 239 次
2025-04-30 14:38:38,395 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:38,426 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995117852}
2025-04-30 14:38:38,427 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 240 次，继续等待...
2025-04-30 14:38:38,647 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:38,647 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:38,647 - sqlalchemy.engine.Engine - INFO - [cached since 135.9s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:38,651 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:38,939 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:38,997 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995118425}
2025-04-30 14:38:38,997 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 241 次
2025-04-30 14:38:39,494 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:39,547 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995118972}
2025-04-30 14:38:39,549 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 242 次
2025-04-30 14:38:39,664 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:39,665 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:39,665 - sqlalchemy.engine.Engine - INFO - [cached since 136.9s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:39,666 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:40,050 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:40,086 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995119506}
2025-04-30 14:38:40,086 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 243 次
2025-04-30 14:38:40,591 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:40,610 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995120037}
2025-04-30 14:38:40,610 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 244 次
2025-04-30 14:38:40,652 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:40,654 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:40,655 - sqlalchemy.engine.Engine - INFO - [cached since 137.9s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:40,659 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:41,131 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:41,158 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995120585}
2025-04-30 14:38:41,159 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 245 次
2025-04-30 14:38:41,673 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:41,674 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:41,676 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:41,676 - sqlalchemy.engine.Engine - INFO - [cached since 139s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:41,677 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:41,917 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995121345}
2025-04-30 14:38:41,919 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 246 次
2025-04-30 14:38:42,406 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:42,450 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995121852}
2025-04-30 14:38:42,451 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 247 次
2025-04-30 14:38:42,701 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:42,703 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:42,704 - sqlalchemy.engine.Engine - INFO - [cached since 140s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:42,706 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:42,965 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:43,105 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995122466}
2025-04-30 14:38:43,106 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 248 次
2025-04-30 14:38:43,597 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:43,615 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995123042}
2025-04-30 14:38:43,616 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 249 次
2025-04-30 14:38:43,709 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:43,711 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:43,712 - sqlalchemy.engine.Engine - INFO - [cached since 141s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:43,714 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:44,112 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:44,157 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995123585}
2025-04-30 14:38:44,158 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 250 次，继续等待...
2025-04-30 14:38:44,659 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:44,723 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:44,724 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:44,724 - sqlalchemy.engine.Engine - INFO - [cached since 142s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:44,725 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:44,735 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995124163}
2025-04-30 14:38:44,736 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 251 次
2025-04-30 14:38:45,248 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:45,277 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995124705}
2025-04-30 14:38:45,278 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 252 次
2025-04-30 14:38:45,746 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:45,746 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:45,747 - sqlalchemy.engine.Engine - INFO - [cached since 143s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:45,747 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:45,791 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:45,836 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995125262}
2025-04-30 14:38:45,837 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 253 次
2025-04-30 14:38:46,336 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:46,375 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995125801}
2025-04-30 14:38:46,376 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 254 次
2025-04-30 14:38:46,755 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:46,756 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:46,756 - sqlalchemy.engine.Engine - INFO - [cached since 144s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:46,758 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:46,863 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:46,887 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995126315}
2025-04-30 14:38:46,887 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 255 次
2025-04-30 14:38:47,395 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:47,416 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995126841}
2025-04-30 14:38:47,419 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 256 次
2025-04-30 14:38:47,754 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:47,761 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:47,761 - sqlalchemy.engine.Engine - INFO - [cached since 145s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:47,763 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:47,908 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:47,938 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995127364}
2025-04-30 14:38:47,938 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 257 次
2025-04-30 14:38:48,454 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:48,497 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995127926}
2025-04-30 14:38:48,498 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 258 次
2025-04-30 14:38:48,779 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:48,780 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:48,786 - sqlalchemy.engine.Engine - INFO - [cached since 146.1s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:48,790 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:48,995 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:49,055 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995128483}
2025-04-30 14:38:49,056 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 259 次
2025-04-30 14:38:49,568 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:49,628 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995129014}
2025-04-30 14:38:49,630 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 260 次，继续等待...
2025-04-30 14:38:49,803 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:49,803 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:49,803 - sqlalchemy.engine.Engine - INFO - [cached since 147.1s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:49,808 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:50,144 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:50,190 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995129616}
2025-04-30 14:38:50,190 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 261 次
2025-04-30 14:38:50,705 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:50,747 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995130162}
2025-04-30 14:38:50,750 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 262 次
2025-04-30 14:38:50,814 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:50,815 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:50,817 - sqlalchemy.engine.Engine - INFO - [cached since 148.1s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:50,822 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:51,251 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:51,309 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995130738}
2025-04-30 14:38:51,310 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 263 次
2025-04-30 14:38:51,813 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:51,814 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:51,816 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:51,817 - sqlalchemy.engine.Engine - INFO - [cached since 149.1s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:51,818 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:51,829 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995131258}
2025-04-30 14:38:51,831 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 264 次
2025-04-30 14:38:52,329 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:52,354 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995131777}
2025-04-30 14:38:52,354 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 265 次
2025-04-30 14:38:52,840 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:52,843 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:52,844 - sqlalchemy.engine.Engine - INFO - [cached since 150.1s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:52,844 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:52,845 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:52,863 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995132291}
2025-04-30 14:38:52,863 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 266 次
2025-04-30 14:38:53,370 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:53,405 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995132833}
2025-04-30 14:38:53,407 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 267 次
2025-04-30 14:38:53,854 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:53,855 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:53,856 - sqlalchemy.engine.Engine - INFO - [cached since 151.1s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:53,858 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:53,899 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:53,943 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995133371}
2025-04-30 14:38:53,944 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 268 次
2025-04-30 14:38:54,443 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:54,459 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995133887}
2025-04-30 14:38:54,460 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 269 次
2025-04-30 14:38:54,875 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:54,877 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:54,880 - sqlalchemy.engine.Engine - INFO - [cached since 152.2s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:54,884 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:54,970 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:54,988 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995134415}
2025-04-30 14:38:54,989 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 270 次，继续等待...
2025-04-30 14:38:55,512 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:55,552 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995134968}
2025-04-30 14:38:55,553 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 271 次
2025-04-30 14:38:55,890 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:55,892 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:55,892 - sqlalchemy.engine.Engine - INFO - [cached since 153.2s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:55,895 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:56,060 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:56,183 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995135566}
2025-04-30 14:38:56,186 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 272 次
2025-04-30 14:38:56,700 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:56,729 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995136156}
2025-04-30 14:38:56,729 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 273 次
2025-04-30 14:38:56,917 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:56,919 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:56,919 - sqlalchemy.engine.Engine - INFO - [cached since 154.2s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:56,923 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:57,243 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:57,338 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995136705}
2025-04-30 14:38:57,338 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 274 次
2025-04-30 14:38:57,850 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:57,870 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995137297}
2025-04-30 14:38:57,870 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 275 次
2025-04-30 14:38:57,944 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:57,947 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:57,951 - sqlalchemy.engine.Engine - INFO - [cached since 155.2s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:57,956 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:58,377 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:58,456 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995137852}
2025-04-30 14:38:58,456 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 276 次
2025-04-30 14:38:58,982 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:58,983 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:38:58,984 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:38:58,985 - sqlalchemy.engine.Engine - INFO - [cached since 156.3s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:38:58,986 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:38:59,071 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995138489}
2025-04-30 14:38:59,072 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 277 次
2025-04-30 14:38:59,592 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:38:59,691 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995139059}
2025-04-30 14:38:59,692 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 278 次
2025-04-30 14:39:00,013 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:00,021 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:00,022 - sqlalchemy.engine.Engine - INFO - [cached since 157.3s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:00,027 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:00,214 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:00,284 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995139688}
2025-04-30 14:39:00,285 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 279 次
2025-04-30 14:39:00,808 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:00,824 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995140252}
2025-04-30 14:39:00,824 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 280 次，继续等待...
2025-04-30 14:39:01,037 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:01,039 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:01,039 - sqlalchemy.engine.Engine - INFO - [cached since 158.3s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:01,041 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:01,331 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:01,357 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995140786}
2025-04-30 14:39:01,357 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 281 次
2025-04-30 14:39:01,873 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:01,899 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995141325}
2025-04-30 14:39:01,900 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 282 次
2025-04-30 14:39:02,049 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:02,049 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:02,049 - sqlalchemy.engine.Engine - INFO - [cached since 159.3s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:02,051 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:02,408 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:02,450 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995141878}
2025-04-30 14:39:02,453 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 283 次
2025-04-30 14:39:02,948 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:02,969 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995142398}
2025-04-30 14:39:02,970 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 284 次
2025-04-30 14:39:03,059 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:03,059 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:03,060 - sqlalchemy.engine.Engine - INFO - [cached since 160.3s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:03,061 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:03,475 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:03,489 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995142919}
2025-04-30 14:39:03,490 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 285 次
2025-04-30 14:39:03,988 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:04,019 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995143446}
2025-04-30 14:39:04,020 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 286 次
2025-04-30 14:39:04,053 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:04,054 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:04,055 - sqlalchemy.engine.Engine - INFO - [cached since 161.3s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:04,055 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:04,536 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:04,595 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995144023}
2025-04-30 14:39:04,596 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 287 次
2025-04-30 14:39:05,065 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:05,067 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:05,071 - sqlalchemy.engine.Engine - INFO - [cached since 162.3s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:05,076 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:05,114 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:05,142 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995144569}
2025-04-30 14:39:05,143 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 288 次
2025-04-30 14:39:05,658 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:05,730 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995145155}
2025-04-30 14:39:05,731 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 289 次
2025-04-30 14:39:06,094 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:06,095 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:06,096 - sqlalchemy.engine.Engine - INFO - [cached since 163.4s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:06,097 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:06,248 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:06,276 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995145704}
2025-04-30 14:39:06,277 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 290 次，继续等待...
2025-04-30 14:39:06,778 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:06,806 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995146234}
2025-04-30 14:39:06,807 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 291 次
2025-04-30 14:39:07,105 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:07,106 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:07,107 - sqlalchemy.engine.Engine - INFO - [cached since 164.4s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:07,109 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:07,322 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:07,368 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995146794}
2025-04-30 14:39:07,369 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 292 次
2025-04-30 14:39:07,867 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:07,914 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995147341}
2025-04-30 14:39:07,915 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 293 次
2025-04-30 14:39:08,117 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:08,119 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:08,120 - sqlalchemy.engine.Engine - INFO - [cached since 165.4s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:08,121 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:08,409 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:08,454 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995147880}
2025-04-30 14:39:08,455 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 294 次
2025-04-30 14:39:08,952 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:08,976 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995148403}
2025-04-30 14:39:08,977 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 295 次
2025-04-30 14:39:09,137 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:09,137 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:09,138 - sqlalchemy.engine.Engine - INFO - [cached since 166.4s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:09,138 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:09,492 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:09,510 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995148938}
2025-04-30 14:39:09,510 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 296 次
2025-04-30 14:39:10,018 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:10,063 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995149489}
2025-04-30 14:39:10,065 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 297 次
2025-04-30 14:39:10,129 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:10,131 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:10,132 - sqlalchemy.engine.Engine - INFO - [cached since 167.4s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:10,134 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:10,567 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:10,593 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995150012}
2025-04-30 14:39:10,595 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 298 次
2025-04-30 14:39:11,107 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:11,129 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995150555}
2025-04-30 14:39:11,132 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 299 次
2025-04-30 14:39:11,132 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:11,135 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:11,138 - sqlalchemy.engine.Engine - INFO - [cached since 168.4s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:11,141 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:11,636 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:11,655 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995151083}
2025-04-30 14:39:11,657 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 300 次，继续等待...
2025-04-30 14:39:12,163 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:12,165 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:12,167 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:12,168 - sqlalchemy.engine.Engine - INFO - [cached since 169.4s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:12,170 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:12,187 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995151613}
2025-04-30 14:39:12,188 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 301 次
2025-04-30 14:39:12,689 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:12,707 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995152134}
2025-04-30 14:39:12,707 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 302 次
2025-04-30 14:39:13,170 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:13,171 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:13,173 - sqlalchemy.engine.Engine - INFO - [cached since 170.4s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:13,177 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:13,219 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:13,267 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995152688}
2025-04-30 14:39:13,269 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 303 次
2025-04-30 14:39:13,788 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:13,998 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995153412}
2025-04-30 14:39:13,999 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 304 次
2025-04-30 14:39:14,194 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:14,196 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:14,196 - sqlalchemy.engine.Engine - INFO - [cached since 171.5s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:14,198 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:14,504 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:14,539 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995153963}
2025-04-30 14:39:14,539 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 305 次
2025-04-30 14:39:15,046 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:15,108 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995154518}
2025-04-30 14:39:15,110 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 306 次
2025-04-30 14:39:15,220 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:15,226 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:15,226 - sqlalchemy.engine.Engine - INFO - [cached since 172.5s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:15,230 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:15,611 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:15,655 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995155082}
2025-04-30 14:39:15,656 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 307 次
2025-04-30 14:39:16,157 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:16,176 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995155602}
2025-04-30 14:39:16,177 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 308 次
2025-04-30 14:39:16,250 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:16,251 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:16,251 - sqlalchemy.engine.Engine - INFO - [cached since 173.5s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:16,252 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:16,685 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:16,745 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995156158}
2025-04-30 14:39:16,746 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 309 次
2025-04-30 14:39:17,122 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:17,124 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.id, vwed_taskrecord.def_id, vwed_taskrecord.def_label, vwed_taskrecord.def_version, vwed_taskrecord.ended_on, vwed_taskrecord.ended_reason, vwed_taskrecord.status, vwed_taskrecord.input_params, vwed_taskrecord.path, vwed_taskrecord.agv_id, vwed_taskrecord.parent_task_record_id, vwed_taskrecord.root_task_record_id, vwed_taskrecord.state_description, vwed_taskrecord.executor_time, vwed_taskrecord.first_executor_time, vwed_taskrecord.if_have_child_task, vwed_taskrecord.periodic_task, vwed_taskrecord.priority, vwed_taskrecord.root_block_state_id, vwed_taskrecord.work_stations, vwed_taskrecord.work_types, vwed_taskrecord.task_def_detail, vwed_taskrecord.variables, vwed_taskrecord.call_work_station, vwed_taskrecord.call_work_type, vwed_taskrecord.source_type, vwed_taskrecord.source_system, vwed_taskrecord.source_user, vwed_taskrecord.source_device, vwed_taskrecord.source_ip, vwed_taskrecord.source_time, vwed_taskrecord.source_client_info, vwed_taskrecord.source_remarks, vwed_taskrecord.allow_restart_same_location, vwed_taskrecord.created_at, vwed_taskrecord.updated_at, vwed_taskrecord.is_deleted 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.status = %s AND vwed_taskrecord.first_executor_time < %s
2025-04-30 14:39:17,125 - sqlalchemy.engine.Engine - INFO - [cached since 180s ago] (<TaskStatus.RUNNING: 1001>, datetime.datetime(2025, 4, 30, 13, 39, 17, 121350))
2025-04-30 14:39:17,128 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:17,230 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:17,265 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995156678}
2025-04-30 14:39:17,266 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 310 次，继续等待...
2025-04-30 14:39:17,267 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:17,267 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:17,267 - sqlalchemy.engine.Engine - INFO - [cached since 174.5s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:17,269 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:17,756 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:17,833 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995157259}
2025-04-30 14:39:17,833 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 311 次
2025-04-30 14:39:18,285 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:18,286 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:18,287 - sqlalchemy.engine.Engine - INFO - [cached since 175.6s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:18,289 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:18,348 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:18,379 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995157795}
2025-04-30 14:39:18,380 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 312 次
2025-04-30 14:39:18,879 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:18,926 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995158354}
2025-04-30 14:39:18,927 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 313 次
2025-04-30 14:39:19,300 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:19,301 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:19,301 - sqlalchemy.engine.Engine - INFO - [cached since 176.6s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:19,303 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:19,440 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:19,458 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995158884}
2025-04-30 14:39:19,459 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 314 次
2025-04-30 14:39:19,968 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:19,990 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995159417}
2025-04-30 14:39:19,993 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 315 次
2025-04-30 14:39:20,325 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:20,325 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:20,326 - sqlalchemy.engine.Engine - INFO - [cached since 177.6s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:20,328 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:20,497 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:20,607 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995160034}
2025-04-30 14:39:20,608 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 316 次
2025-04-30 14:39:21,100 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:21,154 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995160575}
2025-04-30 14:39:21,156 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 317 次
2025-04-30 14:39:21,336 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:21,338 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:21,341 - sqlalchemy.engine.Engine - INFO - [cached since 178.6s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:21,343 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:21,644 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:21,682 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995161111}
2025-04-30 14:39:21,683 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 318 次
2025-04-30 14:39:22,189 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:22,206 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995161634}
2025-04-30 14:39:22,207 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 319 次
2025-04-30 14:39:22,361 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:22,362 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:22,363 - sqlalchemy.engine.Engine - INFO - [cached since 179.6s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:22,364 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:22,719 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:22,740 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995162166}
2025-04-30 14:39:22,741 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 320 次，继续等待...
2025-04-30 14:39:23,246 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:23,297 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995162724}
2025-04-30 14:39:23,299 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 321 次
2025-04-30 14:39:23,383 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:23,385 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:23,387 - sqlalchemy.engine.Engine - INFO - [cached since 180.7s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:23,388 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:23,819 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:23,844 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995163268}
2025-04-30 14:39:23,844 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 322 次
2025-04-30 14:39:24,331 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:24,350 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995163777}
2025-04-30 14:39:24,351 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 323 次
2025-04-30 14:39:24,395 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:24,397 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:24,397 - sqlalchemy.engine.Engine - INFO - [cached since 181.7s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:24,398 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:24,861 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:24,889 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995164315}
2025-04-30 14:39:24,892 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 324 次
2025-04-30 14:39:25,392 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:25,394 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:25,394 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:25,395 - sqlalchemy.engine.Engine - INFO - [cached since 182.7s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:25,397 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:25,408 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995164836}
2025-04-30 14:39:25,409 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 325 次
2025-04-30 14:39:25,912 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:25,928 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995165357}
2025-04-30 14:39:25,929 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 326 次
2025-04-30 14:39:26,414 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:26,415 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:26,415 - sqlalchemy.engine.Engine - INFO - [cached since 183.7s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:26,416 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:26,444 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:26,493 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995165892}
2025-04-30 14:39:26,495 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 327 次
2025-04-30 14:39:27,005 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:27,024 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995166452}
2025-04-30 14:39:27,024 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 328 次
2025-04-30 14:39:27,426 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:27,428 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:27,429 - sqlalchemy.engine.Engine - INFO - [cached since 184.7s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:27,430 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:27,532 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:27,555 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995166981}
2025-04-30 14:39:27,557 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 329 次
2025-04-30 14:39:28,074 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:28,146 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995167521}
2025-04-30 14:39:28,146 - services.sync_service - INFO - 任务块 1917468057480134658 动作未完成(actionStatus为空)，已尝试 330 次，继续等待...
2025-04-30 14:39:28,432 - sqlalchemy.engine.Engine - INFO - BEGIN (implicit)
2025-04-30 14:39:28,434 - sqlalchemy.engine.Engine - INFO - SELECT vwed_taskrecord.status 
FROM vwed_taskrecord 
WHERE vwed_taskrecord.id = %s
2025-04-30 14:39:28,437 - sqlalchemy.engine.Engine - INFO - [cached since 185.7s ago] ('578a4ef8-5b03-4bd1-899f-5c804bbb5dcb',)
2025-04-30 14:39:28,438 - sqlalchemy.engine.Engine - INFO - COMMIT
2025-04-30 14:39:28,648 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
2025-04-30 14:39:28,692 - services.sync_service - INFO - 成功获取任务块动作详情: 1917468057480134658 具体详情: {'success': True, 'message': 'success', 'code': 200, 'result': {'id': '1917468057480134658', 'tenantId': 1000, 'taskId': '1917468043915755521', 'taskBlockId': '1917468044662341634', 'amrId': '1912328602264645634', 'amrName': '1921681101', 'stationId': '1910169077583466497', 'stationName': 'PT02', 'action': 'JackUnload', 'status': 1, 'completeTime': None, 'createTime': '2025-04-30 14:36:24'}, 'timestamp': 1745995168120}
2025-04-30 14:39:28,692 - services.sync_service - DEBUG - 任务块 1917468057480134658 动作未完成，已尝试 331 次
2025-04-30 14:39:29,206 - services.sync_service - INFO - 正在获取任务块动作详情: 1917468057480134658
